/* 共通 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;

  font-family: sans-serif;
  display: flex;
  flex-direction: column;
}


header {
  height: 150px;
  flex-shrink: 0;
}

header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* ← 必須！余白を消す */
  vertical-align: bottom;
  /* ← 念のため補強 */
}


.main {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap; 
  min-height: calc(100vh - 150px);
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: auto;
  gap: 20px; 
}

.sidebar {
  width: 300px;
  background-color: #080746;
  padding: 40px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  height: auto;
  color: #fff;
  overflow-y: auto;
  min-height: 100%;
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background-color: #fff;
  min-width: 0;
}

.page-nav a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.page-nav a:hover {
  border-bottom: 1px solid #ffffff;
  color: #c2e9fb;
}

section {
  margin-bottom: 180px;  /* 下に120pxの余白 */
}


/* 個別？ */


.intro-left {
  flex: 0 0 280px;
  /* 幅を固定気味に */
  text-align: left;
}

.intro-right {
  flex: 1;
  text-align: left;
  color: #444;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.intro-left h1,
.intro-right h2 {
  font-size: 1.3em;
  color: #333366;
  margin-bottom: 0.5em;
}

.intro-left p,
.intro-right p {
  font-size: 0.95em;
  line-height: 1.6;
}

button {
  padding: 0.8em 1.5em;
  margin: 1em;
  font-size: 1.2em;
  border-radius: 0px;
  background: linear-gradient(to bottom, #c2e9fb, #031635);
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
  color: white;
}

button:hover {
  transform: scale(1.05);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  font-size: 1em;
}

th,
td {
  border: 1px solid #ccc;
  padding: 0.8em;
  text-align: left;
}

th {
  background-color: #f5f5f5;
  color: #333;
}




.site-intro h1 {
  font-size: 2em;
  margin: 0.3em 0;
}

.profile-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  max-width: 600px;
  margin: 0 auto;
  padding-top: 0.5em;
}

.profile-intro .avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

h2 a {
  text-decoration: none;
  color: inherit;
}

h2 a:hover {
  text-decoration: underline;
}

h3 a {
  text-decoration: none;
  color: inherit;
}

h3 a:hover {
  text-decoration: underline;
}

html {
  scroll-behavior: smooth;
}

.natal-frame {
  max-width: 700px;
  margin: 2em auto;
  padding: 1em;
  background-color: #f9f9ff;
  border-left: 5px solid #8eaef2;
  border-radius: 8px;
  line-height: 1.6;
}

.natal-frame h2 {
  color: #333366;
  font-size: 1.4em;
  margin-bottom: 1em;
}

.natal-frame li {
  margin-bottom: 0.5em;
}


/* リンクリスト内のリンク間に余白 */
.link-list h3 {
  margin: 0 0 12px !important;  /* 下に12pxの余白 */
}

/* リンク群とタイトル（日付）の間の余白 */
.link-list {
  margin-bottom: 40px !important; /* 下に40pxの余白 */
}

/* ページタイトル（日付の見出し）に余白 */
.page-title {
  margin-top: 20px; /* 上に20px余白 */
  margin-bottom: 20px; /* 下も少し空ける */
}
