/* ===============================
   ベース設定
================================= */
body {
  margin: 0;
  height: 100vh; /* 画面全体を基準に */
  flex-direction: column;
  justify-content: center; /* ← 左右中央揃え */
  align-items: flex-start; /* ← 上寄せ。中央にしたいなら center に変更 */
  font-family: "EB Garamond", yu-mincho-pr6n, serif;
  font-weight: 400;
  font-style: normal;
  color: #595757;
  background: #ffffff;
}

/* ===============================
   レイアウト全体
================================= */
.container {
  display: flex;
  flex-direction: column; /* ← footerを下に積む */
  min-height: 100vh;
}

/* コンテナ */
.content-area {
  display: flex;
  flex-direction: row; /* ← サイドバーと本文を横並び */
  flex: 1; /* ← footer以外の部分を伸縮可能に */
  margin-top: 80px;
}


/* ヘッダー */
.header {
  display: flex;
    flex-direction: row;
  align-items: flex-start;
  padding: 20px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-style: normal;
  font-size: 19px;
  position: fixed;
}


/* ===============================
   左カラム（サイドバー）
================================= */

.site-title a {
  margin: 0;
  letter-spacing: 0px; 
  text-decoration: none;
  color: #595757;
}

.site-subtitle  {
  margin-left: 28px;
  letter-spacing: 0px 
}

.nav {
  font-size: 14px;
  letter-spacing: 0px; 
  display: flex;
  flex-direction: column;
  margin-top: 100px;
  gap: 13px;
  /* align-items: flex-end; 右端に寄せる */
  text-align: left;     /* テキストも右揃えに */
  padding: 20px;
  position: fixed;
}

.nav a {
  text-decoration: none;
  color: #595757;
}

.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px; /* ← 下線を下に */
  text-decoration-thickness: 1px; /* 線を細く */
  text-decoration-color: #595757;
}

.nav a.active {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: #595757;
}

/* 本文 */
.main {
  font-family: "EB Garamond", yu-mincho-pr6n, serif ;
  font-weight: 400;
  flex: 1;
  display: flex;
  align-items: flex-start;
  margin-top: 100px;
  margin-left: 170px;
  padding: 22px 20px 15px 0px;
}

/* テキストコンテナ */
section {
  font-family: "EB Garamond", yu-mincho-pr6n, serif ;
  font-weight: 400;
  max-width: 560px;
  width: 100%;
  text-align: left;
  line-height: 1.25;
}

footer {
  font-family: "EB Garamond" ;
  font-weight: 400;
  max-width: 560px;
  text-align: left; 
  font-size: 12px;
  letter-spacing: 0.1px;
  padding: 50px 20px 20px 20px;  
}

/* ===============================
   レスポンシブ対応
================================= */
@media (max-width: 560px) {
  
  .container {
    flex-direction: column;
  }

  .content-area {
    flex-direction: column; 
    margin-top: 0px;
  }

  .header {
    flex-direction: column;
    position: static;
  }
  .site-subtitle  {
    margin-left: 0px;
  }
  
  .main {
    height: 60vh;
    margin-left: 0px;
    margin-top: 30px;
    padding: 30px 20px 20px 20px;
  }

  .nav {
    flex-direction: row;
    margin-top: 0px;
    position: static;
    gap: 28px;
    font-size: 16px;
  }

}
