/* === リセット & ベーススタイル === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  background-color: #f4f4f4;
  color: #333;
  padding-top: 60px;
  margin: 0;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus {
  outline: 2px dashed #00bfa6;
  outline-offset: 4px;
}

/* === ローディング画面 === */
#loading-screen {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: #000;
  color: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  letter-spacing: 2px;
  animation: fadeOut 1s ease 2s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* === フェードインアニメーション === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* === ナビゲーションバー === */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 20px;
}

.nav-menu li a {
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s;
}

.nav-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: 20px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  
  margin: 4px 0;
  border-radius: 2px;
}

.weather-box {
  position: absolute;
  top: 50px;
  right: 0;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  /*display: flex;
  flex-direction: column;
  align-items: flex-end;*/
  z-index: 1001;
}

.weather-info {
  display: flex;
  align-items: center;
}

.weather-info img {
  width: 32px;
  height: 32px;
  margin-right: 6px;
  object-fit: contain;
}

/* === トップ画像とヒーローテキスト === */
#top-image-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#top-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  animation: fadeIn 2s ease-in;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.tagline {
  font-size: 1.2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: white;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* === 各セクションスタイル === */
.section-title {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

.about-section,
.like-section,
.skills,
.works-section {
  max-width: 1000px !important;
  margin: 60px auto !important;
  padding: 60px 20px;
  border-radius: 12px;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
    flex-direction: column;
    align-items: center;
}

.profile-photo {
  width: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.like-grid,
.skill-grid,
.works-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.like-card,
.skill-card,
.work-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.like-card:hover,
.skill-card:hover,
.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.skill-card i,
.like-card i,
.work-card i {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.work-card img {
  border-radius: 8px;
  margin-bottom: 10px;
}

/* === フッター === */
.footer {
  background: #222;
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.footer .social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.footer .social-links a {
  color: white;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.footer .social-links a:hover {
  transform: scale(1.15);
}

.footer .social-links i {
  font-size: 2rem;
  margin-bottom: 8px;
}

.footer .copyright {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 20px;
}

/* === トップへ戻るボタン === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #4CAF50;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: #388E3C;
  transform: translateY(-5px);
}

/* === レスポンシブ === */
@media screen and (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    width: 200px;
    border-radius: 10px;
    padding: 10px 0;
  }
  .nav-menu.active li {
    margin: 10px 0;
    text-align: right;
    padding: 0 20px;
  }
  .hamburger {
    display: flex;
  }
 .hamburger span {
  background-color: #fff; /* 線を白に */
  height: 3px;
  width: 25px;
  margin: 4px 0;
  border-radius: 2px;
}
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .tagline {
    font-size: 1rem;
  }
  .about-content {
    flex-direction: column;
    align-items: center;
  }
  .profile-photo {
    margin-bottom: 20px;
  }
  .like-grid,
  .skill-grid,
  .works-grid {
    grid-template-columns: 1fr;
  }
  .weather-box {
    right: 10px;
    top: 65px;
  }
}

/* === セクション背景色 === */
.about-section { background-color: #fffdf7; }
.like-section { background-color: #f9f4ff; }
.skills { background-color: #f7fcff; }
.works { background-color: #fff8f5; }

/* === セクション見出しの装飾 === */
.section-title {
  position: relative;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 30px;
  padding-bottom: 10px;
  text-align: center;
  color: #333;
  z-index: 1;
  /*display: inline-block;*/
}

.section-title::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, #00bfa6, #8e44ad);
  transform: translateX(-50%);
  border-radius: 2px;
  z-index: -1;
}

.section-title::after {
  content: "■";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  color: #00bfa6;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* === アイコンカラー（Like） === */
.icon-vtuber { color: #d95fdf; }
.icon-camera { color: #ff9900; }
.icon-gadget { color: #00bfa6; }
.icon-guitar { color: #d92c2c; }
.icon-karaoke { color: #007bff; }
.icon-mix { color: #8e44ad; }

.like-card h3 {
  margin: 10px 0 5px;
  font-size: 1.2rem;
}
.like-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* === アイコンカラー（Skill） === */
.skill-card.htmlcss i { color: #E34F26; }
.skill-card.wordpress i { color: #21759B; }
.skill-card.photoshop i { color: #31A8FF; }
.skill-card.illustrator i { color: #FF7C00; }
.skill-card.premiere i { color: #9999FF; }
.skill-card.ai i { color: #5C6BC0; }
.skill-card.kindle i { color: #FF9900; }
.skill-card.office i { color: #2B579A; }
.skill-card.repair i { color: #607D8B; }

/* === Workカード構成 === */
.work-card h3 {
  margin: 10px 0 5px;
  font-size: 1.2rem;
}
.work-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* === ナビメニュー強化（色・影） === */
.nav-bar {
  background: linear-gradient(to right, #333399, #00bfa6);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* === ハンバーガーメニュー展開デザイン === */
.nav-menu.active {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}
.nav-menu.active li a {
  color: #333;
}
.nav-menu.active li a:hover {
  background: rgba(0, 191, 166, 0.1);
}

/* === トップへ戻るボタンカラー調整 === */
.back-to-top {
  background: #8e44ad;
}
.back-to-top:hover {
  background: #6c2f99;
}

/* === 天気ウィジェットの位置修正（トップ画像左上） === */
.weather-box {
  position: absolute;
  top: 20px;
  left: 20px;
  right: auto;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 10px 15px;
}

/* === SNSブランドカラー（アイコン色） === */
.social-links a.youtube i {
  background-color: #FF0000;
}
.social-links a.x-twitter i {
  background-color: #000000;
}
.social-links a.instagram i {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5);
}
.social-links a.tiktok i {
  background-color: #000000;
}
.social-links i {
  color: white;
  border-radius: 50%;
  padding: 15px;
}

/* === セクション背景の左右余白をなくして全幅化 === */
.about-section,
.like-section,
.skills,
.works-section,
.footer {
  max-width: 100%;
  border-radius: 0;
  margin: 0;
}

/* === 各セクションの背景色（明確に変更）=== */
.about-section { background-color: #fef8f4; }
.like-section { background-color: #f4f6ff; }
.skills        { background-color: #f1fff9; }
.works-section { background-color: #fff6f9; }
.footer        { background-color: #2c2c2c; }


/* === Contactセクションの文字色強調 === */
.footer p,
.footer .section-title {
  color: #f0f0f0;
}

/* === Worksセクション グリッド設定 === */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
  max-width: 1100px;
  margin-inline: auto;
}

/* === Worksカード設定（Skillと同様のスタイル） === */
.work-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  text-align: center;
}
.work-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}
.work-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.work-card p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
}


/* === コンテナ中央寄せ設定 === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}


/* === セクション要素の中央寄せ & 余白調整 === */
section {
  
  margin: 60px auto;
  padding: 60px 20px;
  max-width: 1000px;
  border-radius: 10px;
  scroll-margin-top: 100px;
}

/* === セクションタイトルの中央表示 === */
.section-title, section > h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

/* === アーティクルの余白 === */
article {
  margin: 80px 0;
}