@charset "UTF-8";

/* 全体設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #1c355e; /* 紺色の背景 */
  color: #ffffff;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  overflow-x: hidden;
  position: relative;
}

/* リンク色設定（訪問済みでも紫色にならない設定） */
a, a:visited {
  color: inherit;
  text-decoration: none;
}

/* ヘッダーエリア */
header {
  margin-bottom: 20px;
  z-index: 10;
}

h1 {
  font-size: 1.8rem;
  font-weight: normal;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.header-link, .header-link:visited {
  color: #ffffff;
  text-decoration: none;
}

.subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
  letter-spacing: 0.15em;
  margin-top: 4px;
}

/* -----------------------------------
   トップページ用（斜めに開いた本）
   ----------------------------------- */
.book-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  margin: 20px 0;
}

.open-book {
  position: relative;
  width: 320px;
  height: 480px;
  background-color: #e8e8e8; /* 薄い灰色 */
  color: #1c355e;
  border-radius: 6px;
  transform: rotate(-20deg); /* スマホで見やすい角度に調整 */
  box-shadow: 
    -5px 5px 0px #d0d0d0,
    -10px 10px 0px #b8b8b8,
    -15px 15px 25px rgba(0, 0, 0, 0.5);
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.menu-list li a, .menu-list li a:visited {
  color: #1c355e; /* クリック後も紺色を維持 */
  font-size: 1.1rem;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.menu-list li a:hover {
  opacity: 0.7;
}

.menu-list .note {
  font-size: 0.8rem;
  font-weight: normal;
  opacity: 0.85;
}

/* -----------------------------------
   学校案内（自己紹介ページ）用
   ----------------------------------- */
.page-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 0 30px;
  width: 100%;
}

.profile-card {
  width: 100%;
  max-width: 650px;
  background-color: #e8e8e8; /* 薄い灰色 */
  color: #1c355e;
  padding: 30px 20px;
  border-radius: 6px;
  box-shadow: -6px 6px 0px #b8b8b8, -10px 10px 20px rgba(0, 0, 0, 0.4);
}

.page-title {
  font-size: 1.4rem;
  font-weight: normal;
  text-align: center;
  letter-spacing: 0.15em;
  padding-bottom: 12px;
  border-bottom: 2px solid #1c355e;
  margin-bottom: 20px;
}

.profile-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-group {
  display: flex;
  flex-direction: column;
  border-bottom: 1px dashed rgba(28, 53, 94, 0.25);
  padding-bottom: 10px;
}

.profile-group dt {
  font-weight: bold;
  font-size: 0.95rem;
  color: #1c355e;
  margin-bottom: 4px;
}

.profile-group dd {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 自己紹介内のリンク設定 */
.link-list {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link-list a, .link-list a:visited {
  color: #1c355e; /* 紫にならず紺色を維持 */
  font-weight: bold;
  text-decoration: underline;
}

.link-list a:hover {
  opacity: 0.6;
}

.back-nav {
  margin-top: 25px;
  text-align: center;
}

.back-nav a, .back-nav a:visited {
  color: #1c355e;
  border: 1px solid #1c355e;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
  display: inline-block;
}

/* フッターエリア */
.site-info {
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.8;
  color: #ffffff;
}

/* -----------------------------------
   PC向け調整
   ----------------------------------- */
@media (min-width: 768px) {
  body {
    padding: 40px;
  }
  h1 {
    font-size: 2.5rem;
  }
  .open-book {
    width: 400px;
    height: 560px;
    transform: rotate(-30deg);
  }
  .profile-card {
    padding: 45px 40px;
  }
  .profile-group {
    flex-direction: row;
    align-items: baseline;
  }
  .profile-group dt {
    width: 140px;
    flex-shrink: 0;
  }
}

/* ===================================
   校友会（相互リンクページ）用スタイル
   =================================== */

.link-section {
  margin-bottom: 30px;
}

.link-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-card-item {
  background-color: rgba(28, 53, 94, 0.04);
  border: 1px dashed rgba(28, 53, 94, 0.3);
  border-radius: 4px;
  padding: 16px;
}

.link-card-item .site-name, .link-card-item .site-name:visited {
  font-size: 1.1rem;
  font-weight: bold;
  color: #1c355e;
  text-decoration: underline;
  display: inline-block;
  margin-bottom: 4px;
}

.link-card-item .site-name:hover {
  opacity: 0.7;
}

.link-card-item .site-owner {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 8px;
}

.link-card-item .site-desc {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* 当サイトのリンク案内枠 */
.my-link-info {
  border-top: 2px solid #1c355e;
  padding-top: 20px;
  margin-top: 30px;
}

.info-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.info-text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.info-details {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 6px 10px;
  font-size: 0.85rem;
  background-color: #ffffff;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid rgba(28, 53, 94, 0.2);
}

.info-details dt {
  font-weight: bold;
}

/* ===================================
   校友日誌（ブログ記事）用スタイル
   =================================== */

.blog-article {
  max-width: 700px;
}

.article-header {
  border-bottom: 2px solid #1c355e;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.article-date {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 6px;
}

.article-title {
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

/* 本文内のスタイル */
.article-body {
  font-size: 0.98rem;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: bold;
  border-left: 3px solid #1c355e;
  padding-left: 10px;
  margin-top: 15px;
  margin-bottom: 5px;
}

/* 本の一節などの引用枠 */
.article-body blockquote {
  background-color: rgba(28, 53, 94, 0.05);
  border-left: 4px solid #1c355e;
  padding: 12px 16px;
  margin: 10px 0;
  font-style: italic;
  font-size: 0.93rem;
}

/* ===================================
   図書室（読書記録ページ）用スタイル
   =================================== */

.library-card {
  max-width: 700px;
}

.book-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 1冊ごとの外枠（蔵書カード風） */
.book-item {
  background-color: rgba(28, 53, 94, 0.04);
  border: 1px dashed rgba(28, 53, 94, 0.3);
  border-radius: 4px;
  padding: 20px;
}

.book-header {
  border-bottom: 1px solid rgba(28, 53, 94, 0.15);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.book-date {
  font-size: 0.8rem;
  opacity: 0.75;
  display: block;
  margin-bottom: 4px;
}

.book-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1c355e;
  line-height: 1.4;
  margin-bottom: 4px;
}

.book-author {
  font-size: 0.88rem;
  opacity: 0.85;
}

.book-content {
  font-size: 0.95rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 心に残った引用枠 */
.book-quote {
  background-color: rgba(28, 53, 94, 0.06);
  border-left: 3px solid #1c355e;
  padding: 10px 14px;
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.6;
}

.book-review {
  color: #1c355e;
}
