@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Inter:wght@400;600&display=swap');

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  color: #111827;
  background-color: #F9FAFB;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: white;
  border-bottom: 1px solid #E5E7EB;
}

header h1 {
  font-size: 1.4rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #111827;
  font-weight: 500;
}

.sns-icons a {
  margin-left: 12px;
  font-size: 1.4rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 16px;
  background: linear-gradient(180deg, #E0F2FE, #F9FAFB);
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

/* Section Common */
section {
  max-width: 960px;
  margin: 80px auto;
  padding: 0 16px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  border-left: 4px solid #3B82F6;
  padding-left: 8px;
}

/* Works Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列固定 */
  gap: 24px; /* カード同士の余白 */
  max-width: 900px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;

  /* 追加（カードの高さを揃えるために必要） */
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: auto;       /* 忘れずに追加 */
  border-radius: 8px;
  margin-bottom: 12px;
}

.button {
  display: inline-block;
  padding: 8px 16px;
  background: #3B82F6;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  margin-top: 16px;
}

.card .button {
  margin-top: auto; /* カード最下部に揃う */
}

.card .tags {
  margin-bottom: 16px; /* ← タグの下に余白を作る */
}

/* Audio */
.audio-links a {
  display: inline-block;
  margin-right: 16px;
  color: #3B82F6;
  font-weight: 600;
  text-decoration: none;
}

/* Music Portfolio Section */
.music-portfolio {
  background: white;
  padding: 80px 16px;
  text-align: center;
}

.music-portfolio h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: #1E3A8A;
}

.music-portfolio .intro {
  color: #4B5563;
  margin-bottom: 48px;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Music Cards */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.music-card {
  background: #F9FAFB;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.music-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.music-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.music-content {
  padding: 20px;
  text-align: left;
}

.music-content h4 {
  color: #1E40AF;
  margin: 0 0 8px;
}

.music-content .desc {
  font-size: 0.9rem;
  color: #4B5563;
  margin-bottom: 12px;
  line-height: 1.6;
}

.music-content audio {
  width: 100%;
  margin-bottom: 12px;
  accent-color: #3B82F6;
}

/* Links and Tags */
.music-content .links a {
  margin-right: 16px;
  color: #3B82F6;
  font-weight: 600;
  text-decoration: none;
}

.music-content .links a:hover {
  text-decoration: underline;
}

.tags {
  margin-top: 8px;
}

.tags span {
  background: #E0F2FE;
  color: #0369A1;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
  margin-right: 6px;
}


/* Footer */
footer {
  text-align: center;
  padding: 48px 16px;
  background: #F3F4F6;
}

footer .sns-icons a {
  margin: 0 8px;
}

.credit {
  font-size: 0.8rem;
  color: #6B7280;
  margin-top: 16px;
}

/* =============================
   ハンバーガーメニュー対応
============================= */

/* ボタンの基本デザイン */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  color: #333;
}

/* スマホサイズ対応 */
@media (max-width: 768px) {
  header {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  /* 追加：Works を 1列表示に変更 */
  .work-grid {
    grid-template-columns: 1fr;
  }
}

  header h1 {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1001; /* メニューより前面に */
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px; /* ハンバーガーの下に配置 */
    right: 16px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 12px 0;
    width: 180px;
    text-align: right;
    z-index: 1000;
  }

  nav ul.active {
    display: flex;
  }

  nav li {
    margin: 0;
  }

  nav a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
  }

  nav a:hover {
    background-color: #f0f0f0;
  }

  .sns-icons {
    margin-top: 8px;
  }

  .inline-icon {
  height: 1em;           /* 文字の高さに合わせる */
  vertical-align: middle; /* 絵文字のように文字と揃える */
  }

  /* 通常時のリンクの色（例：青色、下線なし） */
.link-pipoya {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s; /* 色の変化を滑らかにする */
}

/* マウスオーバー時の色（例：オレンジ色、下線あり） */
.link-pipoya:hover {
  color: #ff6600;
  text-decoration: underline;
}