@charset "UTF-8";

/* --- 全体の基本設定 --- */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333333;
    line-height: 1.6;
    margin: 0;
    padding: 40px 20px;
}

/* --- メインの白い箱（カード） --- */
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* --- 見出しのデザイン --- */
h1 {
    font-family: 'Poppins', sans-serif; /* おしゃれなフォントを適用 */
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    text-align: center; /* タイトルも中央揃えに */
    letter-spacing: 2px; /* 文字の間隔を少し開けてスタイリッシュに */
}

h2 {
    color: #34495e;
    margin-top: 40px;
    border-left: 5px solid #3498db; /* 左側に青いアクセントラインを追加 */
    padding-left: 10px;
}

h3 {
    color: #2c3e50;
    margin-top: 30px;
    font-size: 1.1em;
}

/* --- 各エピソードのまとまり --- */
.activity-section {
    margin-bottom: 50px; /* エピソードごとの間隔をしっかりあけて読みやすく */
}

/* --- リスト（箇条書き）のデザイン --- */
ul {
    background-color: #f8f9fa;
    padding: 20px 20px 20px 40px;
    border-radius: 5px;
}

li {
    margin-bottom: 10px;
}

/* --- メディア（画像・動画）のレイアウト設定 --- */

/* 画像と動画を包む箱の設定 */
.media-wrapper {
    display: flex;           /* 横並びにする魔法のコマンド */
    gap: 20px;               /* 画像と動画の間の余白 */
    margin-top: 20px;        /* 文章との間の余白 */
    /* align-items: flex-start; */ /* これを削除して、中央揃えに変更 */
    align-items: center;     /* 縦方向の中央に揃える */
    justify-content: center; /* 横方向の中央に寄せる (追加) */
}

/* 画像と動画、それぞれの共通設定 */
.portfolio-media {
    width: 40%;              /* ここを25%（1/4）に変更 */
    max-width: 400px;        /* 大きくなりすぎないように上限を設定 */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* --- レスポンシブデザイン（スマホ対応）の設定 --- */

/* 画面幅が 768px 以下（一般的なスマホ）になった時のルール */
@media (max-width: 768px) {
    .media-wrapper {
        flex-direction: column; /* 横並びを解除して、縦並びにする */
    }

    .portfolio-media {
        width: 100%;         /* スマホでは画面いっぱいの幅にする */
        max-width: none;     /* スマホでは最大幅制限を解除 (追加) */
        margin-bottom: 15px; /* 縦並びになった時の上下の隙間 */
    }
}

.profile-icon {
    display: block;
    margin: 0 auto 20px auto; /* 中央揃えにして、下部に余白を作る */
    width: 180px;             /* アイコンの大きさ（お好みで変更OK） */
    height: 180px;            /* 幅と同じにして正方形にする */
    object-fit: cover;        /* 画像の比率を保ったまま綺麗に収める */
    border-radius: 50%;       /* 完全な丸型に切り抜く魔法 */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* ふんわりとした影をつける */
}

.audio-comparison {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.audio-item audio {
    width: 100%;     /* プレイヤーの幅を枠いっぱいに広げる */
    height: 40px;    /* プレイヤーの高さを少しスリムに */
    outline: none;   /* 選択時の青い枠線を消す */
}