/* ========== 基本スタイル ========== */
body {
  margin: 0;
  padding: 80px 0 0 0;
  background-color: #ffffff;
  color: #1c1c1c;
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  line-height: 1.6;
}

/* ========== ナビゲーション ========== */
.nav-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #ffffff;
  z-index: 10;
  border-bottom: 1px solid #eee;
}

.nav {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

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

.nav a {
  text-decoration: none;
  color: #1c1c1c;
  font-weight: 600;
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  transition: opacity 0.3s ease;
}

.nav a:hover,
.nav a:focus {
  opacity: 0.6;
  outline: none;
}

/* ========== ヒーローセクション ========== */
.hero {
  text-align: center;
  padding: 120px 20px;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  margin: 0;
}

.tagline {
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 40px;
  color: #333;
}

.comingtext {
  font-size: 50px;
  color: #888;
  font-style: italic;
  margin-top: 10px;
  opacity: 0;
  animation: fadeInImage 5s ease-out 0.5s forwards;
}

/* ========== フェードイン ========== */
@keyframes fadeInImage {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* ========== リンク系共通 ========== */
.link,
.linked-description {
  text-decoration: none;
  color: #1c1c1c;
  border-bottom: 1px solid #1c1c1c;
  padding-bottom: 2px;
  transition: opacity 0.3s ease;
}

.link:hover,
.link:focus,
.linked-description:hover,
.linked-description:focus {
  opacity: 0.7;
  outline: none;
}

.linked-description {
  font-size: 18px;
}

/* ========== トップイメージ / サブテキスト ========== */
.teaser-img {
  max-width: 90%;
  height: auto;
  margin-top: 40px;
  opacity: 0;
  transform: scale(0.98);
  animation: fadeInImage 2.5s ease-out 0.5s forwards;
}

.subtext {
  font-size: 14px;
  color: #888;
  font-style: italic;
  margin-top: 10px;
  opacity: 0;
  animation: fadeInImage 3s ease-out 1.5s forwards;
}

/* ========== メインセクション（共通） ========== */
.philosophy {
  max-width: 800px;
  margin: 80px auto;
  padding: 0 20px;
  font-size: 18px;
  line-height: 1.8;
  color: #1c1c1c;
  font-family: 'Source Serif 4', serif;
  animation: fadeInText 2s ease-out forwards;
  opacity: 0; /* ← 初期非表示にしてアニメに制御 */
}

.philosophy p {
  margin-bottom: 24px;
}

.philosophy ul {
  margin-left: 1.2em;
  list-style-position: inside;
}

.works-section {
  margin: 80px auto;
  padding: 0 20px;
}

.section-title {
  font-size: 28px;
  font-family: 'Cormorant Garamond', serif;
  margin-bottom: 12px;
}

/* ========== タイトル＋サブタイトル横並び ========== */

.page-title-left {
  font-size: 48px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  text-align: left;
  margin: 80px auto 60px auto;
  line-height: 1.2;
}

.title-with-subtitle {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.title-with-subtitle .section-title {
  margin: 0;
}

.title-with-subtitle .section-subtitle {
  font-size: 16px;
  font-style: italic;
  color: #666;
  margin: 0;
}

/* モバイル用に縦並び */
@media (max-width: 600px) {
  .title-with-subtitle {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========== サブタイトル中央・左用 ========== */
.section-subtitle-left {
  font-size: 18px;
  color: #444;
  font-style: italic;
  text-align: left;
  max-width: 800px;
  margin: -10px auto 20px auto;
  padding: 0 20px;
}

.section-subtitle-center {
  text-align: center;
  font-size: 18px;
  color: #555;
  font-style: italic;
  margin-bottom: 20px;
}

/* ========== Astro記事ページ用 ========== */
.main-content {
  max-width: 640px;
  margin: 80px auto;
  padding: 0 20px;
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  line-height: 1.8;
}

.main-content p {
  margin-bottom: 24px;
}

.main-content h1 {
  text-align: center;
  margin-bottom: 48px;
}

.main-content a {
  color: #6633cc;
  text-decoration: underline;
  font-weight: 500;
}

/* ========== モバイル用フォントサイズ調整 ========== */
@media (max-width: 600px) {
  .linked-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
    display: inline-block; /* ← 左揃えに効く */
  }

  .section-title {
    font-size: 24px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  .philosophy {
    font-size: 16px;
  }

  .philosophy ul {
    list-style-position: outside;
    padding-left: 1.5em;
    margin-left: 0;
  }

  .works-section ul {
    padding-left: 1.5em;
    margin-left: 0;
  }
}
