/* =========================================
   1. サイト全体・共通設定
   ========================================= */
/* 一番上にこれを追加します！ */
@import url('https://fonts.googleapis.com/css2?family=Zen+Kurenaido&display=swap');

   
   body {
  margin: 0;
  padding: 0;
  color: #ffffff;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background-image: url("../images/kyannpasu.jpg"); 
  background-size: cover; 
  background-position: center; 
  background-attachment: fixed; 
  background-color: rgba(0, 0, 0, 0.4); 
  background-blend-mode: darken;
}

h2 {
  text-align: center;
  margin: 20px 0;
}




/*header*/
.menu-toggle {
  position: fixed;
  right: 20px;
  top: 20px;
  width: 50px;
  height: 30px;
  cursor: pointer;
  z-index: 300;
  font-weight: bold;
  font-size: 40px;
  z-index: 20000;
}
.menu {
  display: none;
  position: absolute;
  top: 60px;
  right: 20px;
  background:rgba(0, 0, 0, 0.836);
  color: white;
  width: 150px;
  box-shadow: 0 4px 6px rgba(0, 0, 0);
  z-index: 20000;
  

}
.menu a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: white;
  border-bottom: 1px solid #ddd;
  z-index: 20000;
}
.menu a:last-child {
  border-bottom: none;

}

/* 汎用アニメーション */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 1s ease-out forwards; }


/* =========================================
   2. 委員一覧ページ（リスト）
   ========================================= */
.member-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 5px;
  gap: 10px 4%;
}

.member-card {
  width: 48%; /* スマホで2列 */
  margin-bottom: 20px;
  text-decoration: none;
  color: #ffffff;
  text-align: center;
}

.member-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 180px;
  background-color: #eee;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-name {
  font-weight: bold;
  font-size: 14px;
  margin-top: 8px;
}


/* =========================================
   3. 各委員の個別インタビューページ（チャット等）
   ========================================= */
.interview-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link {
  text-decoration: none;
  color: #003366;
  font-weight: bold;
  font-size: 12px;
}

/* ヒーローセクション（自己紹介） */
.hero-section {
  padding: 30px 20px;
  text-align: center;
  background: transparent
}

.hero-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.hero-text .sub-title {
  color: #ff0000;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.hero-text h2 {
  font-size: 20px;
  margin: 10px 0;
  line-height: 1.5;
}

.profile-meta {
  font-size: 13px;
  color: #dddddd;
}

/* チャットデザイン */
.chat-section {
  padding: 20px;
  background-color: #7494c0;
}

.chat-row {
  display: flex;
  margin-bottom: 25px;
}
/* 左配置（質問） */
.chat-row.left {
  flex-direction: row;
  justify-content: flex-start;
}
/* 右配置（回答） */
.chat-row.right {
  flex-direction: row; /* ★元の右配置の指定が重複していたので、最終版に統一 */
  justify-content: flex-end;
}

.chat-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.interviewer { background-color: #003366; color: #fff; }
.person img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.chat-bubble {
  padding: 12px 16px;
  font-size: 15px; /* ★手書きフォントは少し大きい方が読みやすいです */
  line-height: 1.6;
  border-radius: 18px;
  position: relative;
  color: #333333; /* ★吹き出しの中の文字は黒に戻す */
  font-family: 'Zen Kurenaido', sans-serif; /* ★手書き風フォントを適用！ */
}
.left .chat-bubble {
  background-color: #f0f2f5;
  margin-left: 10px;
  border-bottom-left-radius: 2px;
}
.right .chat-bubble {
  background-color: #fff;
  border: 1px solid #ddd;
  margin-right: 10px;
  border-bottom-right-radius: 2px;
}

/* 最後のメッセージカード */
.message-card {
  margin-top: 40px;
  padding: 25px;
  background-color: #003366;
  color: #fff;
  border-radius: 15px;
  text-align: center;
}
.message-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}


/* =========================================
   4. インタビューページ：オープニングアニメーション（最終確定版のみ）
   ========================================= */
.opening-animation {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: #fcfcfc;
  z-index: 9999;
  overflow: hidden;
  animation: fadeOutScreen 0.5s ease-in 3.5s forwards;
}

.opening-layout {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* 上揃え */
}

/* 背景の慶應ブルー斜め装飾 */
.opening-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: #f4f4f4;
  z-index: -1;
}
.opening-bg::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 60%; height: 100%;
  background-color: #003366;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.1;
}

/* 中央の等身大写真 */
.center-photo {
  height: 90vh; /* 画面の高さ9割 */
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1;
  animation: photoIn 1s ease-out forwards;
}
.center-photo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* 縦書き役職 */
.vertical-role {
  position: absolute;
  left: 23px;
  top: 10%;
  writing-mode: vertical-rl;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: #ccf405;
  border-right: 1px solid #ccf405
  ;
  padding-right: 5px;
  font-weight: bold;
  z-index: 10;
  animation: fadeInFromLeft 1s ease-out 0.8s both; /* ★元のfadeInと競合しないよう専用名に変更 */
}

/* 右下の名前エリア */
.bottom-name-area {
  position: absolute;
  bottom: 8%;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  z-index: 20;
  animation: fadeInFromLeft 1s ease-out 1.2s both;
}

.name-box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-right: 6px solid #ff0000;
  box-shadow: -5px 5px 15px rgba(0,0,0,0.1);
  margin-right: 15px;
}
.name-box h1 {
  font-size: 28px;
  margin: 0;
  color: #000;
  line-height: 1;
}
.en-name {
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
  font-weight: bold;
}

/* --- オープニング専用アニメーションキーフレーム --- */
@keyframes photoIn {
  from { opacity: 0; transform: scale(1.05) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fadeInFromLeft {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOutScreen {
  to { transform: translateY(-100%); visibility: hidden; }
}

/* 縦書きの中の数字をまっすぐ立たせる（縦中横） */
.tate {
  text-combine-upright: all;
  font-size: 1.1em; 
  letter-spacing: 0; /* ★ここを追加！親要素の隙間設定をリセットしてくっつけます */
}