/* ヒーローセクション */
#visual {
  position: relative;
  min-height: 100vh; /* 100vh → 90vh に変更 */
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-secondary) 50%, #e8e3d8 100%);
  overflow: hidden;
}

/* 和風装飾パターン */
#visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(184, 134, 11, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(160, 82, 45, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(44, 62, 80, 0.02) 0%, transparent 60%);
  pointer-events: none;
}

/* 刀剣装飾要素 */
#visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 L55 40 L50 90 L45 40 Z" fill="%23b8860b" opacity="0.01"/></svg>');
  background-size: 150px 150px;
  background-position: 0 0, 75px 75px;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.hero-container {
  display: flex;
  min-height: 90vh; /* calc(100vh - 70px) → 90vh に変更 */
  position: relative;
  z-index: 1;
}

/* 左側：画像セクション（60%） */
.hero-image-section {
  position: relative;
  width: 60%;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.1) saturate(1.1);
}

.image-caption {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
}

.caption-text {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
  color: var(--text-light);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  backdrop-filter: blur(5px);
  font-weight: 500;
  border: 1px solid var(--accent-gold);
  font-family: 'Noto Sans JP', sans-serif;
}

/* 右側：コンテンツセクション（40%） */
.hero-content-section {
  width: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, 
    rgba(250, 248, 243, 0.95) 0%, 
    rgba(240, 237, 229, 0.98) 50%,
    rgba(232, 227, 216, 0.95) 100%
  );
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

/* 和風装飾ボーダー */
.hero-content-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent-gold), var(--accent-red), var(--accent-gold));
}

.hero-content {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
  position: relative;
}

/* タイトルロゴ（画像） */
.title-logo-container {
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.main-title {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.main-title img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
  filter: drop-shadow(0 4px 8px rgba(44, 62, 80, 0.1));
}

/* 情報カード */
.hero-info-cards {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

.info-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 15px 18px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: var(--text-dark);
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
  border: 1px solid var(--accent-gold);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-red), var(--accent-gold));
  border-radius: 8px 8px 0 0;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 62, 80, 0.15);
}

.card-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  color: var(--accent-red);
  margin-top: 2px;
}

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.card-label {
  font-size: 1rem;
  color: #666;
  margin-bottom: 5px;
  font-weight: 500;
  font-family: 'Noto Sans JP', sans-serif;
}

.card-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  word-wrap: break-word;
  line-height: 1.4;
  overflow-wrap: break-word;
  hyphens: auto;
  font-family: 'Noto Sans JP', sans-serif;
}

/* 特別なカード装飾 */
.info-card--date .card-icon {
  color: var(--primary-dark);
}

.info-card--price .card-value {
  color: var(--accent-red);
  font-size: 1.15rem;
  font-weight: 700;
}

.info-card--deadline {
  animation: urgentPulse 3s ease-in-out infinite;
}

@keyframes urgentPulse {
  0%, 100% { 
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
  }
  50% { 
    box-shadow: 0 4px 12px rgba(160, 82, 45, 0.2);
  }
}

/* CTAボタン */
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow: hidden;
  font-family: 'Noto Sans JP', sans-serif;
  position: relative;
}

.hero-btn--primary {
  background: linear-gradient(45deg, var(--accent-red), var(--primary-dark));
  color: var(--text-light);
  border: 1px solid var(--accent-gold);
}

.hero-btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.3), transparent);
  transition: left 0.5s ease;
}

.hero-btn--primary:hover::before {
  left: 100%;
}

.hero-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(160, 82, 45, 0.3);
}

.hero-btn--secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary-dark);
}

.hero-btn--secondary:hover {
  background: var(--primary-dark);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 62, 80, 0.2);
}

.btn-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.btn-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* タブレット・モバイル：縦レイアウト */
@media (max-width: 1200px) {
  #visual {
    min-height: 100vh; /* タブレット以下では100vhに戻す */
  }
  
  .hero-container {
    flex-direction: column;
    min-height: calc(100vh - 70px);
  }
  
  .hero-image-section {
    width: 100%;
    height: 70vh;
    min-height: 600px;
  }
  
  .hero-content-section {
    width: 100%;
    padding: 50px 30px;
    min-height: auto;
    background: linear-gradient(135deg, 
      rgba(250, 248, 243, 0.98) 0%, 
      rgba(240, 237, 229, 0.99) 50%,
      rgba(232, 227, 216, 0.98) 100%
    );
  }
  
  .hero-content-section::before {
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-red), var(--accent-gold));
  }
  
  .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  .main-title img {
    max-width: 600px;
  }
  
  .hero-info-cards {
    flex-direction: row;
    gap: 18px;
  }
  
  .info-card {
    flex: 1;
    min-width: 0;
    padding: 15px 18px;
  }
  
  .card-value {
    font-size: 1rem;
  }
  
  .info-card--price .card-value {
    font-size: 1.05rem;
  }
  
  .hero-cta {
    flex-direction: row;
    gap: 20px;
  }
  
  .hero-btn {
    flex: 1;
    min-width: 0;
    padding: 16px 25px;
    font-size: 1.1rem;
  }
  
  .image-caption {
    top: 15px;
    right: 15px;
  }
}

/* モバイル */
@media (max-width: 768px) {
  #visual {
    min-height: 100vh;
  }
  
  .hero-container {
    min-height: calc(100vh - 60px);
  }
  
  .hero-image-section {
    height: 55vh;
    min-height: 350px;
  }
  
  .hero-content-section {
    padding: 40px 20px;
  }
  
  .hero-content {
    padding: 0 10px;
  }
  
  .main-title img {
    max-width: 450px;
  }
  
  .hero-info-cards {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  
  .info-card {
    padding: 16px 20px;
  }
  
  .card-icon {
    font-size: 1.6rem;
  }
  
  .card-label {
    font-size: 1rem;
  }
  
  .card-value {
    font-size: 1.1rem;
  }
  
  .info-card--price .card-value {
    font-size: 1.15rem;
  }
  
  .hero-btn {
    padding: 16px 25px;
    font-size: 1.1rem;
  }
  
  .image-caption {
    top: 3px;
    right: 15px;
  }
  
  .caption-text {
    padding: 6px 10px;
    font-size: 0.6rem;
  }
}

/* 小さなモバイル */
@media (max-width: 480px) {
  .hero-image-section {
    height: 45vh;
    min-height: 300px;
  }
  
  .hero-content-section {
    padding: 30px 15px;
  }
  
  .hero-content {
    padding: 0 5px;
  }
  
  .main-title img {
    max-width: 380px;
  }
  
  .info-card {
    padding: 14px 16px;
    gap: 12px;
  }
  
  .card-icon {
    font-size: 1.5rem;
  }
  
  .card-label {
    font-size: 0.95rem;
  }
  
  .card-value {
    font-size: 1rem;
  }
  
  .info-card--price .card-value {
    font-size: 1.05rem;
  }
  
  .hero-btn {
    padding: 14px 20px;
    font-size: 1rem;
  }
  
  .btn-icon {
    font-size: 1.1rem;
  }
}

/* 375px以下：タイトルを下に移動、高さ調整 */
@media (max-width: 375px) {
  .hero-container {
    flex-direction: column;
    position: relative;
  }
  
  .hero-image-section {
    height: 50vh;
    min-height: 300px;
    order: 1;
  }
  
  .hero-content-section {
    padding: 20px 10px;
    order: 2;
    position: relative;
    background: linear-gradient(135deg, 
      rgba(250, 248, 243, 0.98) 0%, 
      rgba(240, 237, 229, 0.99) 50%,
      rgba(232, 227, 216, 0.98) 100%
    );
    color: var(--text-dark);
    margin-top: -30px;
    border-radius: 20px 20px 0 0;
    z-index: 2;
    border: 2px solid var(--accent-gold);
    border-bottom: none;
  }
  
  .hero-content {
    padding: 0;
  }
  
  .main-title img {
    max-width: 320px;
  }
  
  .info-card {
    padding: 12px 14px;
    gap: 10px;
  }
  
  .card-icon {
    font-size: 1.4rem;
  }
  
  .card-label {
    font-size: 0.9rem;
  }
  
  .card-value {
    font-size: 0.95rem;
  }
  
  .info-card--price .card-value {
    font-size: 1rem;
  }
  
  .hero-btn {
    padding: 12px 18px;
    font-size: 0.95rem;
  }
  
  .image-caption {
    top: 3px;
    right: 10px;
  }
  
  .caption-text {
    padding: 4px 8px;
    font-size: 0.5rem;
  }
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes sparkle {
  0%, 100% { 
    opacity: 0.6; 
    transform: translateY(-50%) scale(1); 
  }
  50% { 
    opacity: 1; 
    transform: translateY(-50%) scale(1.1); 
  }
}

/* 情報カードのアニメーション（3つすべてに適用） */
.info-card:nth-child(1) {
  animation: fadeInLeft 0.8s ease-out 0.2s both;
}

.info-card:nth-child(2) {
  animation: fadeInLeft 0.8s ease-out 0.4s both;
}

.info-card:nth-child(3) {
  animation: fadeInLeft 0.8s ease-out 0.6s both;
}

/* CTAボタンのアニメーション */
.hero-cta {
  animation: fadeInUp 0.8s ease-out 0.8s both;
}