/* DANKUプロフィールサイト - クリーンアップ版 */

/* ===========================================
   フォント設定
   =========================================== */
body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  color: #444;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  color: #222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ===========================================
   リンクカード
   =========================================== */
.link-card {
  padding: 1.75rem !important;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  min-width: 280px;
  width: 100%;
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.link-card:hover {
  box-shadow: 0 8px 25px -5px rgba(139, 92, 246, 0.25);
  background-color: #fefefe;
  border-color: rgba(139, 92, 246, 0.3);
}

.link-card:hover .text-sm {
  color: #333;
}

/* リンクカードタイトル */
.link-card h3,
.link-card h4 {
  line-height: 1.0;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  color: #333;
  margin: 0 0 1rem 0;
  height: 3rem;
  display: flex;
  align-items: center;
}

/* ruby要素の調整 - ルビ上部配置 */
.link-card h4 ruby {
  ruby-align: center;
  display: inline-block;
  vertical-align: baseline;
  ruby-position: over;
  position: relative;
}

.link-card h4 rt {
  font-size: 0.5em;
  line-height: 1;
  color: #666;
  text-align: center;
  display: block;
  width: 100%;
  position: absolute;
  top: -1.5em;
  left: 0;
}

/* モバイルでのルビ調整 */
@media (max-width: 767px) {
  .link-card h4 rt {
    font-size: 0.45em;
    top: -1.3em;
  }
  
  section h2 rt {
    font-size: 0.35em;
    top: -1.1em;
  }
  
  /* Twitch配信セクションのモバイル調整 */
  #twitch .twitch-info-section {
    text-align: center;
    padding: 0 1rem;
  }
  
  #twitch .twitch-info-section h3 {
    text-align: center;
  }
  
  #twitch .twitch-info-section p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }
  
  #twitch .twitch-button-group {
    text-align: center;
    display: flex;
    justify-content: center;
  }
  
  /* 配信通知部分の調整 */
  #twitch .bg-purple-50 {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 2rem 2rem;
    line-height: 1.6;
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #twitch .bg-purple-50 p {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    margin: 0;
    padding: 0;
  }
}

/* セクションタイトルのruby要素調整 */
section h2 ruby {
  ruby-align: center;
  display: inline-block;
  vertical-align: baseline;
  ruby-position: over;
  position: relative;
}

section h2 rt {
  font-size: 0.4em;
  line-height: 1;
  color: #666;
  text-align: center;
  display: block;
  width: 100%;
  position: absolute;
  top: -1.2em;
  left: 0;
}

/* セクション間の余白統一 - レスポンシブ対応 */
section {
  padding: 2rem 1rem !important;
}

/* タブレット以上でより大きな余白 */
@media (min-width: 768px) {
  section {
    padding: 4rem 1rem !important;
  }
}

/* ヘッダー直後のセクション調整 */
section:first-of-type {
  padding-top: 1rem !important;
}

@media (min-width: 768px) {
  section:first-of-type {
    padding-top: 2rem !important;
  }
}

/* CryptoNinjaセクションタイトルの位置調整 */
#cryptoninja h2 {
  margin-top: -1rem;
  padding-top: 1rem;
  transform: translateY(-0.5rem);
}

/* リンクカード説明文 */
.link-card .text-sm {
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #555;
  font-weight: 500;
  max-width: 20em;
}

.link-card .text-sm p {
  margin-bottom: 0.25rem;
}

/* アイコンとタイトルの配置 */
.link-card .w-12.h-12 {
  width: 3rem !important;
  height: 3rem !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.link-card .flex.items-center {
  align-items: center !important;
  display: flex !important;
  height: 3rem;
}

.link-card .flex.items-center h3,
.link-card .flex.items-center h4 {
  margin: 0 !important;
  line-height: 1.0 !important;
  display: flex !important;
  align-items: center !important;
  height: 3rem;
}

/* カラー変数 */
:root {
  --accent: #8BD4E3;
  --accent-hover: #FFC88A;
  --lavender: #D7CCFF;
  --base: #E6F6F5;
  --text-primary: #34495E;
  --shadow-lavender: rgba(215, 204, 255, 0.15);
}

/* Tailwind CSS カスタムユーティリティ */
@layer utilities {
  .gradient-hero {
    background: linear-gradient(135deg, #E6F6F5 0%, #D7CCFF 100%);
  }
  
  .shadow-lavender {
    box-shadow: 0 4px 6px -1px var(--shadow-lavender), 0 2px 4px -1px var(--shadow-lavender);
  }

  /* お問い合わせフォーム */
  .contact-form-container form {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .form-group label {
    font-weight: 600;
    color: #374151;
  }
  
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group textarea {
    font-size: 16px;
    line-height: 1.5;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
    outline: none;
  }
  
  .form-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
  }
}  
  #submit-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
  }
  
  #submit-btn:active {
    transform: translateY(0);
  }
  
  /* ラジオボタンのカスタムスタイル */
  .form-group input[type="radio"] + span {
    transition: color 0.2s ease;
  }
  


  /* Twitchセクション全体のレイアウト改善 */
  #twitch {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
  }
  
  #twitch .max-w-6xl {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
  }
  
  #twitch .bg-white {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    margin: 0 auto;
  }
  
  /* Twitchプレイヤーの中央配置 */
  .twitch-player-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto 2rem auto;
  }
  
  .twitch-player-compact {
    position: relative;
    width: 800px;
    height: 450px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px -5px rgba(139, 92, 246, 0.2), 0 4px 10px -2px rgba(139, 92, 246, 0.1);
    margin: 0 auto;
    display: block;
  }

  .twitch-player-compact iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    display: block;
  }
  
  /* 配信情報セクション */
  .twitch-info-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .twitch-info-section h3 {
    margin-bottom: 0.5rem;
  }
  
  .twitch-info-section p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }
  
  /* ボタングループ */
  .twitch-button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1.5rem auto;
  }
  
  @media (min-width: 640px) {
    .twitch-button-group {
      flex-direction: row;
      justify-content: center;
    }
  }
  
  /* レスポンシブ対応 */
  @media (max-width: 850px) {
    .twitch-player-compact {
      width: 90vw;
      height: calc(90vw * 9 / 16);
      margin: 0 auto;
    }
    
    #twitch {
      padding: 2rem 1rem;
    }
    
    #twitch .bg-white {
      padding: 1.5rem;
    }
  }
  
  @media (max-width: 480px) {
    .twitch-player-compact {
      width: 95vw;
      height: calc(95vw * 9 / 16);
    }
    
    .twitch-button-group {
      flex-direction: column;
    }
  }
  
  .shadow-lavender {
    box-shadow: 0 4px 6px -1px var(--shadow-lavender), 0 2px 4px -1px var(--shadow-lavender);
  }
  
  .text-primary {
    color: var(--text-primary);
  }
  
  .border-lavender {
    position: relative;
    display: inline-block;
  }
  
  .border-lavender::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--lavender);
    border-radius: 2px;
  }
  
  .btn-primary {
    background-color: var(--accent);
    transition: background-color 0.3s ease;
  }
  
  .btn-primary:hover {
    background-color: var(--accent-hover);
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
}
