@charset "utf-8";

/* ==========================================================================
   1. Reset & Base Settings
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* 崩れ防止のために追加を推奨 */
    position: relative;
}

html {
    scroll-behavior: smooth;
}

body {
    /* 全体の基本フォントをゴシック体に設定 */
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
}

h1, h2, h3, h4, h5, p {
    /* 明朝体の指定を削除し、ゴシック体を継承または明示 */
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
    font-weight: 500;
    font-style: normal;
}

a {
    word-break: break-all;
    text-decoration: none;
}

/* ドット背景 */
.dot-background {
    background-color: #ffffff; /* ここを白に変更 */
    min-height: 100vh;
    width: 100%;
}

/* ==========================================================================
   2. Layout
   ========================================================================== */
.container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
    width: 100%;
    z-index: 10;
}

/* 固定ヘッダー */
.header {
    width: 100%;
    z-index: 20;
}

.header-box {
    height: 74px;
    width: 100%;
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-inner {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.chuou-logo { height: 30px; margin-right: 40px; }
.life-cbs-logo { height: 30px; margin-left: 5px; }

@media screen and (max-width: 480px) {
    .header-box { height: 48px; }
    .chuou-logo { height: 25px; margin-right: 20px; }
    .life-cbs-logo { height: 15px; }
}

/* ==========================================================================
   3. Common Components (再利用パーツ)
   ========================================================================== */

/* 共通セクションタイトル（下線付き） */
.title-text {
    width: 88.2vw;
    max-width: 881px;
    margin: 109px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #313131; /* 既存の微細なスペルミス #0021B78 を修正（必要であれば） */
    font-weight: light;
    font-size: 25px;
    line-height: 1.5;

    /* --- ここを追加 --- */
    font-family: "A-OTF A1Mincho Std", "A-OTF A1明朝 Std", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "MS P明朝", "MS PMincho", serif;
    /* ------------------ */
}

.title-text::after {
    content: "";
    display: block;
    width: 100%;
    height: 8px;
    background-color: #E6E600;
    margin-top: 15px;
}

.title-text h3 {
    font-size: 25px;
    margin: 0 40px;
}

@media screen and (max-width: 599px) {
    .title-text { margin-top: 80px; width: 85vw; }
    .title-text h3 { font-size: 18px; margin: 0 20px; }
}

/* 会話文（Teacher / Student） */
.teacher, .student {
    margin: 20px auto 0;
    width: 80vw;
    max-width: 700px;
    display: flex;
    align-items: flex-start;
}

.teacher-name, .student-name {
    width: 48px;
    font-size: 16px;
    line-height: 32px;
    flex-shrink: 0;
}

.teacher-name { color: #717171; }
.student-name { color: #002B78; }
.teacher-name, .student-name {
    width: 48px;
    font-size: 16px;
    line-height: 32px;
    flex-shrink: 0;
    /* ここを追加 */
    text-align: right;   /* 文字を右側に寄せる */
    margin-right: 12px;  /* テキストとの間の隙間（お好みで調整） */
}

.teacher-text, .student-text {
    line-height: 32px;
    flex: 1;
    /* ここを追加 */
    text-align: justify;
    text-justify: inter-character; /* 日本語をきれいに揃えるための設定 */
}

.teacher-text { color: #717171; }
.student-text { color: #313131; }

@media screen and (max-width: 480px) {
    .teacher, .student { width: auto; margin: 24px 20px 0; }
}

/* ==========================================================================
   4. Section Specific Styles
   ========================================================================== */

/* Top Section */
.top-space { height: 72px; }
.top-image { width: 100%; }

@media screen and (max-width: 480px) {
    .top-space { height: 48px; }
}

/* Intro Section */
.intro { margin-top: 72px; }
.intro-index { border-bottom: 1px solid #313131; }

/* イントロ用のイエロー〜シアンのグラデーション */
.title-text.type-intro::after {
    content: "";
    display: block;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #F9F191 0%, #91D9E8 100%);
    margin-top: 15px;
}

/* イントロボックス内の個別調整（前回の提案分） */
.title-text.intro-title {
    margin: 40px auto 20px;
    width: 90%;
    /* 明朝体の指定を優先させるため、フォントウェイトなどを調整 */
    font-family: "A-OTF A1Mincho Std", "A-OTF A1明朝 Std", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "MS P明朝", "MS PMincho", serif;
    font-weight: bold;
    font-size: 30px;
}

.title-text.intro-title h3 {
    font-family: inherit;
    font-weight: inherit;
}

.intro-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}


.intro-text {
    margin: 0 60px;
    font-family: "A-OTF A1Mincho Std", "A-OTF A1明朝 Std", serif;
    font-weight: bold;
    line-height: 32px;
    color: #313131;
    text-align: justify;
    text-justify: inter-character; /* 日本語の文字間を調整して端を揃える */
}

@media screen and (max-width: 599px) {
    .title-text {
        margin-top: 60px;
        width: 90vw;     /* 横幅を画面いっぱいに近づける */
    }
    .title-text h3 {
        font-size: 1.2rem; /* 5. スマホで適切なサイズに */
        margin: 0 10px;    /* 左右の余白を削って改行を防ぐ */
        line-height: 1.4;
    }
    .title-text.intro-title {
        margin-top: 20px;
    }
}

/* Interview Image (Footer-ish) */
.interview-image {
display: block;      /* ブロック要素に変更 */
    margin-left: auto;   /* 左右の余白を自動調整して中央へ */
    margin-right: auto;
    width: 100%;         /* コンテナ幅いっぱいに広げる */
    max-width: 500px;   /* 最大幅を指定 */
    margin-top: 20px;
}

/* Information & Buttons */
.information {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.information-image, .information-image-top {
    max-width: 360px;
    width: 100%;
    margin-top: 5px;
}

.information-image-top { margin-top: 80px; }

.back-button-box {
    margin: 80px 0 30px;
    text-align: center;
}

.back-button { height: 40px; }

@media screen and (max-width: 480px) {
    .information-image { width: 85%; }
}

/* ==========================================================================
   Member Introduction Section
   ========================================================================== */
.member-intro {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* 背景に少し白を敷く */
    border-radius: 8px;
}

.member-title {
    color: #002B78;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    padding-left: 10px;
}

.member-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.member-card {
    width: calc(20% - 16px); /* 5人並び */
    min-width: 150px;
    text-align: center;
}

.member-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%; /* 円形にする */
    object-fit: cover;
    border: 1px solid #002B78;
    margin-bottom: 8px;
}

.member-work {
    font-size: 11px;
    color: #717171;
    line-height: 1.4;
    margin-bottom: 4px;
    min-height: 2.8em; /* 2行分確保して高さを揃える */
}

.member-name {
    font-size: 14px;
    font-weight: bold;
    color: #313131;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .member-card {
        width: calc(33.33% - 20px); /* スマホ・タブレットで3人並び */
    }
}

@media screen and (max-width: 480px) {
    .member-card {
        width: calc(50% - 20px); /* 小さなスマホで2人並び */
    }
    .member-photo {
        width: 80px;
        height: 80px;
    }
    .member-name {
        font-size: 13px;
    }
}

/* ==========================================================================
   More Knowledge Section
   ========================================================================== */
.more-knowledge {
    margin: 80px auto;
    padding: 0 20px;
}

.knowledge-title {
    font-size: 20px;
    color: #313131;
    border-bottom: 1px solid #313131;
    margin-bottom: 30px;
    padding-bottom: 5px;
}

.knowledge-flex {
    display: flex;
   flex-direction: column; /* 縦に積む */
    gap: 40px;
}

/* 著書紹介（左カラム） */
.books-column {
   display: flex;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

.book-item {
    flex: 1; /* 2つの本を均等幅に */
    display: flex;
    margin-bottom: 0; /* 縦並びの時のマージンを解除 */
    gap: 15px;
    padding: 10px;
}

.book-img {
   width: 90px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.book-text {
    font-size: 12px;
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 8px;
    text-align: justify;
    text-justify: inter-character; /* 日本語の文字間隔を調整して端を合わせる */
}

.book-title-sub {
    font-size: 13px;
    margin-bottom: 4px;
}

.book-author {
    font-size: 12px;
    color: #717171;
}

/* 教授プロフィール（右カラム） */
.professor-card {
    width: 100%;
    background-color: #ffffff;
    border-radius: 20px;
    display: flex;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
   align-items: center;
}

.prof-inner {
    flex: 1;
}

.prof-header {
    text-align: center;
    border-bottom: 1px solid #313131;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.prof-univ {
    font-size: 12px;
    margin-bottom: 5px;
}

.prof-name {
    font-size: 22px;
    color: #313131;
}

.en-name {
    font-size: 16px;
    margin-left: 10px;
}

.prof-details {
    font-size: 13px;
    line-height: 1.8;
}

.detail-row {
    display: flex;
    margin-bottom: 10px;
}

.detail-label {
    width: 70px;
    flex-shrink: 0;
    color: #717171;
}

.prof-img {
    width: 220px;
    height: auto;
    margin-left: 10px;
    margin-bottom: 0px; /* カードからはみ出させる演出（画像次第で調整） */
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .books-column {
        flex-direction: column; /* スマホでは本も縦並び */
    }
    
    .professor-card {
        flex-direction: column;
        padding: 20px;
    }
    
    .prof-img {
        width: 180px;
        margin-left: 0;
        margin-top: 20px;
    }
    
    .detail-row {
        flex-direction: column;
    }
}

.title-text.type-A::after {
    background: linear-gradient(90deg, #E6A6B8, #D1D9F3);
}

.title-text.type-B::after {
    background: linear-gradient(90deg, #F3D0D9, #F9D8B1);
}

.title-text.type-C::after {
    background: linear-gradient(90deg, #C6E5F1, #E79997);
}

.title-text.type-D::after {
    background: linear-gradient(90deg, #BFDFF4, #E9EF95);
}

.title-text.type-E::after {
    background: linear-gradient(90deg, #F6BC8F, #E9A7B6);
}