:root {
  --primary-color: #2563eb;
  --primary-light: #3b82f6;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --background: #ffffff;
  --surface: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--background);
}

.hero-section {
  background: var(--gradient);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  animation: float 20s linear infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100px); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.logo {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(255,255,255,0.3));
  display: block;
}

.section-number {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #ffffff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 40px;
  opacity: 0.95;
}

.content-section {
  padding: 80px 0;
  background: var(--surface);
}

.service-description {
  background: white;
  border-radius: 20px;
  padding: 50px;
  margin-bottom: 60px;
  box-shadow: 0 10px 30px var(--shadow);
  border: 1px solid var(--border);
}

.service-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
}

.service-description-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* 新しいサービス説明カードスタイル */
.service-description-cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-card.main-feature {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--text-primary);
  padding: 30px;
  text-align: center;
  flex-direction: column;
  gap: 15px;
  border: 2px solid var(--primary-color);
}

.service-card.main-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

.service-card-icon {
  font-size: 2.2rem;
  min-width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 12px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.service-card.main-feature .service-card-icon {
  background: white;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 2.8rem;
  min-width: 70px;
  height: 70px;
  margin-bottom: 5px;
}

.service-card:hover .service-card-icon {
  transform: scale(1.05);
  background: var(--primary-color);
  color: white;
}

.service-card-content {
  flex: 1;
  text-align: left;
}

.service-card.main-feature .service-card-content {
  text-align: center;
}

.service-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
  line-height: 1.3;
}

.service-card.main-feature .service-card-title {
  color: var(--primary-color);
  font-size: 1.3rem;
}

.service-card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.service-card.main-feature .service-card-text {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 8px 25px var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow);
}

.feature-point {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1;
  text-align: center;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

.message-section {
  background: white;
  border-radius: 20px;
  padding: 60px;
  text-align: center;
  box-shadow: 0 10px 30px var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 60px;
}

.message-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.message-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.message-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: left;
}

.message-item {
  color: var(--text-secondary);
  line-height: 1.8;
  position: relative;
  padding-left: 20px;
}

.message-item::before {
  content: '✨';
  position: absolute;
  left: 0;
  top: 0;
}

.service-buttons {
  background: white;
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  box-shadow: 0 10px 30px var(--shadow);
  border: 1px solid var(--border);
}

.service-buttons-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.button-group {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.entry-btn {
  background: var(--gradient);
  color: white;
  padding: 20px 40px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 25px var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 200px;
}

.entry-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--shadow);
}

.btn-label {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.btn-url {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.9;
}

.admin-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px var(--shadow);
  border: 1px solid var(--border);
  z-index: 1000;
  min-width: 250px;
  max-height: 90vh;
  overflow-y: auto;
}

.admin-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-primary);
  text-align: center;
}

.admin-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.admin-control:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.admin-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-switch.active {
  background: var(--primary-color);
}

.toggle-switch::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle-switch.active::before {
  transform: translateX(26px);
}

.feature-card.disabled,
.entry-btn.disabled,
.subsite-card.disabled {
  opacity: 0.5;
  filter: grayscale(100%);
  pointer-events: none;
}

.feature-card.disabled::after,
.entry-btn.disabled::after,
.subsite-card.disabled::after {
  content: 'メンテナンス中';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 10;
}

/* 新しいアセット管理関連のスタイル */

/* ロゴモジコンテナのスタイル */
.logomoji-container {
  margin: 20px 0;
  transition: all 0.3s ease;
}

.logomoji {
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
  transition: all 0.3s ease;
}

.logomoji:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

/* サブテーマコンテナのスタイル */
.subtheme-container {
  margin: 20px 0;
  padding: 10px;
  transition: all 0.3s ease;
}

.subtheme {
  max-width: 550px;
  height: auto;
  opacity: 0.9;
  transition: all 0.3s ease;
  filter: contrast(1.15) brightness(1.1);
}

.subtheme:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* アセット表示制御の改良 */
.asset-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.asset-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

/* アセット管理パネルの拡張 */
.admin-panel .admin-control[data-asset] {
  border-left: 3px solid var(--accent-color);
  padding-left: 15px;
  background: rgba(245, 158, 11, 0.05);
}

/* アニメーション強化 */
.asset-fade-in {
  animation: assetFadeIn 0.6s ease-out;
}

@keyframes assetFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* レスポンシブ対応の改良 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .service-description,
  .message-section,
  .service-buttons {
    padding: 30px 20px;
  }
    .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-point {
    width: 65px;
    height: 65px;
    font-size: 0.9rem;
  }
  
  .button-group {
    flex-direction: column;
    gap: 20px;
  }
    .admin-panel {
    position: relative;
    top: auto;
    right: auto;
    margin: 20px;
  }
  
  .logo {
    width: 140px;
  }
  
  .logomoji {
    max-width: 240px;
  }
    .subtheme {
    max-width: 320px;
  }
  
  .logomoji-container,
  .subtheme-container {
    margin: 15px 0;
  }
}

/* サービスカードのレスポンシブ対応 */
@media (max-width: 768px) {
  .service-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 15px;
  }
  
  .service-card.main-feature {
    padding: 25px 20px;
  }
  
  .service-card-icon {
    font-size: 2rem;
    min-width: 55px;
    height: 55px;
  }
  
  .service-card.main-feature .service-card-icon {
    font-size: 2.5rem;
    min-width: 65px;
    height: 65px;
  }
  
  .service-card-content {
    text-align: center;
  }
  
  .service-card-title {
    font-size: 1.1rem;
  }
  
  .service-card-text {
    font-size: 0.95rem;
  }
  
  .service-card.main-feature .service-card-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .service-description-cards {
    gap: 15px;
  }
  
  .service-card {
    padding: 18px 15px;
    gap: 12px;
  }
  
  .service-card.main-feature {
    padding: 22px 18px;
  }
  
  .service-card-icon {
    font-size: 1.8rem;
    min-width: 50px;
    height: 50px;
  }
  
  .service-card.main-feature .service-card-icon {
    font-size: 2.2rem;
    min-width: 60px;
    height: 60px;
  }
  
  .service-card-title {
    font-size: 1rem;
  }
  
  .service-card-text {
    font-size: 0.9rem;
  }
  
  .service-card.main-feature .service-card-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 120px;
  }
  
  .feature-point {
    width: 60px;
    height: 60px;
    font-size: 0.85rem;
  }
  
  .logomoji {
    max-width: 200px;
  }
  
  .subtheme {
    max-width: 220px;
  }
}

/* アセット読み込み時のスケルトン */
.asset-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* アセット管理追加スタイル */
.admin-panel {
  max-height: 90vh;
  overflow-y: auto;
}

.admin-control:hover {
  background-color: var(--surface);
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.toggle-switch:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.asset-loading {
  opacity: 0.6;
  filter: blur(1px);
  transition: all 0.3s ease;
}

/* アセット表示制御の改善 */
.asset-visible {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  justify-content: center !important;
}

.asset-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
}

/* ロゴ表示の修正 */
.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.logo-container .logo {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ロゴモジとサブテーマの追加スタイル */
.logomoji-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.logomoji {
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: all 0.3s ease;
}

.subtheme-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
  transition: all 0.3s ease;
}

.subtheme {
  max-width: 380px;
  height: auto;
  opacity: 0.8;
  transition: all 0.3s ease;
}

/* アニメーション改善 */
.asset-fade-in {
  animation: assetFadeIn 0.5s ease-in-out;
}

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

/* レスポンシブ対応の追加 */
@media (max-width: 768px) {
  .logomoji {
    max-width: 240px !important;
  }
    .subtheme {
    max-width: 420px !important;
  }
}

/* 管理パネル非表示 */
.admin-panel {
  display: none !important;
}

/* 機能制御の状態表示 */
.feature-status {
  position: relative;
}

.feature-status.maintenance::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 193, 7, 0.1);
  border: 2px dashed #ffc107;
  border-radius: 8px;
  z-index: 1;
}

/* アンケートセクション */
.survey-section {
  margin-top: 50px;
  padding: 40px 30px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 20px;
  border: 2px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.survey-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
  animation: float 15s linear infinite;
}

.survey-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.survey-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.survey-button-container {
  position: relative;
  z-index: 2;
}

.survey-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 25px 40px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  text-decoration: none;
  border-radius: 15px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
  position: relative;
  overflow: hidden;
  min-width: 280px;
}

.survey-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.survey-btn:hover::before {
  left: 100%;
}

.survey-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.survey-btn:active {
  transform: translateY(-1px);
}

.survey-icon {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.survey-text {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.survey-note {
  font-size: 0.85rem;
  opacity: 0.9;
  font-weight: 400;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .survey-section {
    margin-top: 40px;
    padding: 30px 20px;
  }
  
  .survey-title {
    font-size: 1.3rem;
  }
  
  .survey-description {
    font-size: 0.95rem;
  }
  
  .survey-btn {
    padding: 20px 30px;
    min-width: 240px;
  }
  
  .survey-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .survey-btn {
    min-width: 200px;
    padding: 18px 25px;
  }
  
  .survey-text {
    font-size: 0.95rem;
  }
  
  .survey-note {
    font-size: 0.8rem;
  }
}

/* サブサイト詳細説明 */
.subsites-detail {
  margin-top: 80px;
}

.subsite-card {
  background: white;
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.subsite-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.subsite-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.subsite-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.subsite-card:hover .subsite-img {
  transform: scale(1.05);
}

.subsite-content {
  padding: 40px;
}

.subsite-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subsite-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
}

.subsite-features {
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.subsite-feature {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.subsite-feature:hover {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
  transform: translateY(-2px);
  border-color: var(--primary-light);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.feature-icon {
  font-size: 2rem;
  margin-right: 15px;
  margin-top: 2px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.feature-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.system-features, .how-to-start {
  margin-bottom: 25px;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
}

.system-features h4, .how-to-start h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.system-features ul {
  list-style: none;
  padding: 0;
}

.system-features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.system-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.how-to-start ol {
  padding-left: 20px;
  color: var(--text-secondary);
}

.how-to-start li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.subsite-btn {
  display: inline-flex;
  align-items: center;
  background: var(--gradient);
  color: white;
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.subsite-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  color: white;
}

/* ========================================
   動画セクションのスタイル
   ======================================== */

.video-section {
  padding: 60px 0;
  background: var(--surface);
  position: relative;
}

.video-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 45%; /* 16:9 アスペクト比 */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  background: #000;
}

.video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
}

/* 動画（iframe）保護 */
iframe {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  -webkit-touch-callout: none !important;
  pointer-events: auto; /* 動画の操作は可能にする */
}

/* 動画コンテナの右クリック防止 */
.video-container {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .video-section {
    padding: 40px 0;
  }
  
  .video-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
  
  .video-container {
    margin: 0 20px;
    max-width: calc(100% - 40px);
    padding-bottom: 56.25%; /* モバイルでは少し縦長に */
    border-radius: 12px;
  }
  
  .video-iframe {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .video-section {
    padding: 30px 0;
  }
  
  .video-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
  }
  
  .video-container {
    margin: 0 15px;
    max-width: calc(100% - 30px);
    border-radius: 8px;
  }
  
  .video-iframe {
    border-radius: 8px;
  }
}

/* ========================================
   画像保護追加スタイル
   ======================================== */

/* 画像右クリック・ドラッグ・選択防止（HTML内インラインから移動） */
img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  -webkit-touch-callout: none;
}

/* 画像ポインターを表示させない */
img:hover {
  cursor: default !important;
}

/* 全体的な右クリック防止 */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* セキュリティ警告表示用 */
.security-warning {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 0, 0, 0.9);
  color: white;
  padding: 20px;
  border-radius: 10px;
  z-index: 9999;
  display: none;
  font-weight: bold;
  text-align: center;
}

/* 開発者ツール検知時のオーバーレイ */
.devtools-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  font-size: 2rem;
  font-weight: bold;
}

/* ブラウザ固有の画像保存機能無効化 */
img::-webkit-any-link {
  -webkit-user-drag: none;
}

/* 画像選択時のハイライト除去 */
*::selection {
  background: transparent;
}

*::-moz-selection {
  background: transparent;
}

/* ========================================
   動的画像保護強化スタイル
   ======================================== */

/* 保護された画像の識別 */
img[data-protected="true"] {
  position: relative;
  isolation: isolate;
}

/* 画像上に透明な保護レイヤー */
img[data-protected="true"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
  pointer-events: auto;
}

/* フォーカス時の追加保護 */
img:focus {
  outline: none;
  /* blur効果を無効化 - 通常表示を優先 */
}

/* 画像ホバー時の保護強化 */
img:hover {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  /* pointer-events削除でホバー効果を正常化 */
}

/* ページがアクティブでない時の保護 - 軽減 */
html:not(:focus-within) img {
  /* blur効果を無効化 - 通常表示を優先 */
  opacity: 0.95;
}

/* 開発者ツール検知時の追加スタイル */
.dev-tools-detected img {
  filter: blur(3px) !important; /* blur効果を軽減 */
  opacity: 0.7 !important; /* 透明度を軽減 */
  transform: scale(0.95) !important; /* スケールを軽減 */
}

/* セキュリティ警告の改良 */
.security-warning {
  animation: securityPulse 1s infinite;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

@keyframes securityPulse {
  0%, 100% { 
    opacity: 0.9; 
    transform: translate(-50%, -50%) scale(1);
  }
  50% { 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* ネットワークアクティビティ検知時 */
.network-activity-detected {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff6b35;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
  z-index: 9998;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 画像読み込み時の保護 */
img[src^="data:"] {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  /* pointer-events削除で画像表示を正常化 */
}

/* モバイルデバイスでの追加保護 */
@media (hover: none) and (pointer: coarse) {
  img {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
}

/* 高解像度ディスプレイでの保護 */
@media (-webkit-min-device-pixel-ratio: 2) {
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ダークモード検知時の追加保護 */
@media (prefers-color-scheme: dark) {
  img {
    filter: brightness(0.9) contrast(1.1);
  }
}

/* ページ非表示時の保護 */
@media (prefers-reduced-motion: reduce) {
  img {
    animation: none;
    transition: none;
  }
}

/* 印刷プレビュー時の完全非表示 */
@media print {
  img, .subsite-img, .logo, .logomoji, .subtheme {
    display: none !important;
    visibility: hidden !important;
  }
  
  /* 印刷時に代替テキストを表示 */
  img::after {
    content: "[画像: " attr(alt) "]";
    display: block;
    color: #666;
    font-style: italic;
  }
}

/* 開発者ツール警告メッセージ */
.devtools-message {
  font-size: 1rem;
  margin-top: 20px;
}
