@charset "utf-8";

/* ============================================================
   監修者ブロック機能 - スタイル定義
   ============================================================ */

/* メインコンテナ */
.supervisor-block {
  margin: 40px 0;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  clear: both;
}

/* タイトル */
.supervisor-block-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #800000; /* サイトのブランドカラー */
}

/* コンテンツ構造 */
.supervisor-block-content {
  display: flex;
  flex-direction: column;
}

.supervisor-block-user {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* 写真 */
.supervisor-block-photo {
  width: 120px !important;
  height: 120px !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  border: 2px solid #800000 !important; /* サイトのブランドカラー */
  flex-shrink: 0 !important;
}

.supervisor-block-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border: none !important;
}

/* メタ情報 */
.supervisor-block-meta {
  flex: 1;
  min-width: 0;
}

.supervisor-block-name {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

/* 名前のリンク */
.supervisor-name-link {
  color: #800000 !important; /* サイトのブランドカラー */
  text-decoration: none;
  transition: color 0.3s ease;
}

.supervisor-name-link:hover {
  color: #a00000 !important;
  text-decoration: underline;
}

/* 説明文 */
.supervisor-block-description {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.supervisor-block-description p {
  margin: 8px 0;
}

/* テキストリンク（Markdown記法） */
.supervisor-text-link {
  color: #800000; /* サイトのブランドカラー */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.supervisor-text-link:hover {
  color: #a00000;
  text-decoration: none;
}

/* 自動リンク */
.supervisor-auto-link {
  color: #800000; /* サイトのブランドカラー */
  text-decoration: underline;
  transition: color 0.3s ease;
  word-break: break-all;
}

.supervisor-auto-link:hover {
  color: #a00000;
}

/* ソーシャルメディアリンク */
.supervisor-block-social {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-link .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.social-link::before {
  content: '';
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Instagramアイコン */
.icon-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.icon-instagram::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z'/%3E%3C/svg%3E");
}

/* TikTokアイコン */
.icon-tiktok {
  background-color: #000000;
}

.icon-tiktok::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-5.2 1.74 2.89 2.89 0 0 1 2.31-4.64 2.93 2.93 0 0 1 .88.13V9.4a6.84 6.84 0 0 0-1-.05A6.33 6.33 0 0 0 5 20.1a6.34 6.34 0 0 0 10.86-4.43v-7a8.16 8.16 0 0 0 4.77 1.52v-3.4a4.85 4.85 0 0 1-1-.1z'/%3E%3C/svg%3E");
}

/* トグル機能 */
.supervisor-toggle-wrapper {
  margin-top: 8px;
}

.supervisor-toggle-btn {
  background: #800000; /* サイトのブランドカラー */
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.3s ease;
}

.supervisor-toggle-btn:hover {
  background: #a00000;
}

.supervisor-description-short,
.supervisor-description-full {
  margin-bottom: 0;
}

/* レスポンシブデザイン (768px以下) */
@media (max-width: 768px) {
  .supervisor-block {
    margin: 30px 0;
    padding: 15px;
  }
  
  .supervisor-block-user {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
  }
  
  .supervisor-block-photo {
    width: 90px !important;
    height: 90px !important;
  }
  
  .supervisor-block-name {
    font-size: 16px;
    text-align: center;
  }
  
  .supervisor-block-description {
    font-size: 13px;
    text-align: left;
  }

  .supervisor-block-description .supervisor-block-position {
    text-align: center;
    margin-bottom: 8px !important;
  }
  
  .supervisor-block-social {
    margin-top: 10px;
    justify-content: center;
  }
  
  .social-link {
    width: 28px;
    height: 28px;
  }
  
  .social-link::before {
    width: 14px;
    height: 14px;
  }
}
