/* Link ページ専用CSS */

/* ページヘッダー - About Meと同じトーン */
.page-header {
  height: 50vh;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: linear-gradient(135deg, #2c5f7d 0%, #4a7c9e 30%, #6b9ab8 60%, #5a8aa8 100%);
  z-index: 1;
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 2;
}

.page-header-content {
  position: relative;
  z-index: 3;
  text-align: center;
  animation: fadeInUp 1.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-title {
  font-size: 4.5rem;
  font-weight: 200;
  letter-spacing: 0.4em;
  margin: 0;
  color: white;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.08em;
  animation: fadeInUp 1.4s ease;
}

.title-line {
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, transparent, white, transparent);
  margin: 0 auto;
  animation: expandLine 1.5s ease;
}

@keyframes expandLine {
  from { width: 0; opacity: 0; }
  to { width: 150px; opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* サイト情報セクション */
.site-info-section {
  max-width: 800px;
  margin: 60px auto 70px;
  padding: 0 20px;
}

.site-info-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.site-info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-info-item:last-child {
  border-bottom: none;
}

.site-info-label {
  font-size: 0.8rem;
  color: #6b9ab8;
  letter-spacing: 0.15em;
  font-weight: 500;
  text-transform: uppercase;
  min-width: 100px;
  flex-shrink: 0;
}

.site-info-value {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
}

/* バナー情報セクション */
.banner-info-section {
  max-width: 800px;
  margin: 0 auto 70px;
  padding: 0 20px;
  text-align: center;
}

.banner-info-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.banner-info-title {
  font-size: 1.3rem;
  font-weight: 400;
  color: white;
  margin-bottom: 30px;
  letter-spacing: 0.1em;
}

.banner-image-wrapper {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.banner-image {
  height: auto;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  display: inline-block;
}

/* 200×40px バナー */
.banner-image.large {
  max-width: 200px;
  max-height: 40px;
}

/* 88×31px バナー */
.banner-image.small {
  max-width: 88px;
  max-height: 31px;
}

.banner-image:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(107, 154, 184, 0.4);
  border-color: rgba(107, 154, 184, 0.5);
}

.banner-code {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  text-align: left;
}

.banner-code-label {
  font-size: 0.8rem;
  color: #6b9ab8;
  letter-spacing: 0.15em;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.banner-code-text {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  word-break: break-all;
  line-height: 1.6;
}

/* リンクセクション */
.links-section {
  margin-bottom: 80px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 2rem;
  font-weight: 400;
  color: white;
  margin-bottom: 50px;
  letter-spacing: 0.2em;
  text-align: center;
}

.header-icon {
  font-size: 2.2rem;
}

/* リンクグリッド */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* リンクカテゴリーセクション */
.link-category {
  margin-bottom: 70px;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: white;
  margin-bottom: 35px;
  letter-spacing: 0.15em;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(107, 154, 184, 0.5);
  position: relative;
}

.category-title::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #6b9ab8, transparent);
}

.category-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
}

/* リンクカード */
.link-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 25px;
  text-decoration: none;
  color: white;
  transition: all 0.4s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}

.link-card.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.link-card:nth-child(1) { transition-delay: 0.05s; }
.link-card:nth-child(2) { transition-delay: 0.1s; }
.link-card:nth-child(3) { transition-delay: 0.15s; }
.link-card:nth-child(4) { transition-delay: 0.2s; }
.link-card:nth-child(5) { transition-delay: 0.25s; }
.link-card:nth-child(6) { transition-delay: 0.3s; }

.link-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 45px rgba(107, 154, 184, 0.4);
  border-color: rgba(107, 154, 184, 0.4);
}

/* バナーコンテナ */
.banner-container {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

/* 複数バナーサイズ対応 */
.link-banner {
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block;
  height: auto;
}

/* 200×40px バナー */
.link-banner.large {
  max-width: 200px;
  max-height: 40px;
  width: 100%;
}

/* 88×31px バナー */
.link-banner.small {
  max-width: 88px;
  max-height: 31px;
  width: 100%;
}

.link-card:hover .link-banner {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(107, 154, 184, 0.35);
}

/* サイト名 */
.link-name {
  font-size: 1rem;
  font-weight: 400;
  color: white;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}

/* 説明文 */
.link-description {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  letter-spacing: 0.05em;
}

/* HOMEリンク */
.back-link {
  text-align: center;
  margin-top: 70px;
  padding-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  padding: 16px 40px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  transition: all 0.4s ease;
  font-weight: 300;
  background: rgba(255, 255, 255, 0.05);
}

.back-button:hover {
  background: rgba(107, 154, 184, 0.25);
  border-color: rgba(107, 154, 184, 0.6);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(107, 154, 184, 0.35);
}

.back-arrow {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.back-button:hover .back-arrow {
  transform: translateX(-5px);
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .links-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .category-links {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 3rem;
    letter-spacing: 0.3em;
  }
  
  .header-intro {
    font-size: 1rem;
  }
  
  .intro-text p {
    font-size: 1rem;
  }
  
  .site-info-card {
    padding: 30px 24px;
  }
  
  .site-info-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 8px;
  }
  
  .banner-info-card {
    padding: 30px 24px;
  }
  
  .banner-image-wrapper {
    gap: 15px;
  }
  
  .links-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .category-links {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
  }
  
  .link-card {
    padding: 20px 16px;
  }
  
  .banner-container {
    gap: 10px;
  }
  
  .link-name {
    font-size: 0.95rem;
  }
  
  .link-description {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .page-header {
    height: 40vh;
    min-height: 300px;
  }
  
  .page-title {
    font-size: 2.2rem;
    letter-spacing: 0.2em;
  }
  
  .links-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .category-links {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .link-card {
    padding: 16px 12px;
  }
}