@charset "UTF-8";

/* =======================================================
   ベーススタイルとフォント
   ======================================================= */
body{
    background-color: #F9F9F9; 
    color: #444444; 
    /* Open Sansを先に指定し、日本語は Noto Sans JP を適用させる */
    font-family: 'Open Sans', 'Noto Sans JP', sans-serif; 
    line-height: 1.7; 
    margin: 0;
    padding: 0;
}

h1, h2 {
    /* Playfair Display または 游明朝 (見出し用アクセントフォント) */
    font-family: 'Playfair Display', '游明朝', 'YuMincho', serif;
}

/* =======================================================
   タイポグラフィ
   ======================================================= */
h1 {
    color: #CCB3B7; /* メインカラー: くすみピンク */
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 3rem; 
    width: 100%; 
}

h2 {
    color: #604D4E; /* H2カラー: 濃いココアブラウン */
    font-size: 1.8rem;
    font-weight: 600;
    border-bottom: 2px solid #E5E5E5; 
    padding-bottom: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

/* =======================================================
   レイアウトコンテナ
   ======================================================= */
section {
    max-width: 960px; 
    margin: 0 auto;
    padding: 0 20px;
}

/* プロフィールカードセクション (全体を中央寄せ) */
#profile-card {
    display: flex; 
    flex-direction: column;
    align-items: center; 
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =======================================================
   プロフィールカード (横並び)
   ======================================================= */
.flex-container {
    display: flex; 
    align-items: center;
    gap: 40px; 
    padding: 30px;
    background-color: #FFFFFF; 
    border-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); 
    max-width: 800px; 
    width: 100%;
}

/* テキストコンテンツの設定 (左側) */
.text-content {
    flex-grow: 1; 
    text-align: left; 
}

/* 画像の設定 (右側) */
.flex-container figure {
    flex-shrink: 0; 
    margin: 0;
    width: 400px; 
    height: 400px; 
    overflow: hidden;
    border-radius: 50%; /* 正円 */
}

.flex-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}


/* =======================================================
   テーブル (映画・ドラマ)
   ======================================================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

th {
    background-color: #F0E5E7; /* ごく薄いくすみピンク */
    color: #604D4E; 
    text-align: left;
    padding: 12px 15px;
    font-weight: bold;
}

/* 奇数行の背景色（ゼブラストライプ） */
tbody tr:nth-child(odd) {
    background-color: #F5F5F5;
}

/* 偶数行の背景色（ゼブラストライプ） */
tbody tr:nth-child(even) {
    background-color: #F9F9F9;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #E5E5E5; 
}

/* ホバーエフェクト */
tbody tr:hover { 
    background-color: #EEDDDF; 
    cursor: pointer;
}

/* リンクボタン風 */
td a {
    color: #CCB3B7; /* リンクの色をくすみピンクに */
    text-decoration: none;
    border: 1px solid #CCB3B7;
    padding: 4px 8px;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.3s;
}

td a:hover {
    background-color: #CCB3B7;
    color: #FFFFFF;
}

/* =======================================================
   フォームのスタイリング
   ======================================================= */
#suggestion-form {
    padding-bottom: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #604D4E;
    margin-bottom: 5px;
}

/* 入力欄 */
#suggestion-form input[type="text"],
#suggestion-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #E5E5E5;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: inherit; /* フォントを継承 */
    transition: border-color 0.3s;
}

#suggestion-form input[type="text"]:focus,
#suggestion-form textarea:focus {
    border-color: #CCB3B7; /* フォーカス時にくすみピンクの枠線 */
    outline: none;
}

#suggestion-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* 送信ボタン */
#suggestion-form input[type="submit"] {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #604D4E; /* 濃いココアブラウンを背景に */
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

#suggestion-form input[type="submit"]:hover {
    background-color: #8C7A7B; /* ホバーで少し明るい色に */
}

/* =======================================================
   レスポンシブ対応
   ======================================================= */
@media (max-width: 768px) {
    /* プロフィールカードを縦並びに */
    .flex-container {
        flex-direction: column; 
        gap: 20px;
        text-align: center;
    }
    .text-content {
        text-align: center; /* スマホでは中央揃えに */
    }
    .flex-container figure {
        width: 150px;
        height: 150px;
    }

    /* H1のサイズを小さく */
    h1 {
        font-size: 2rem;
    }

    /* H2のサイズを小さく */
    h2 {
        font-size: 1.5rem;
    }
}

/* =======================================================
   【新規】ポップアップ機能のスタイリング
   ======================================================= */

/* 1. 画像コンテナの修正（メッセージ表示とクリックカーソル） */
.flex-container figure {
    /* 既存のスタイルを壊さないよう、これだけ追加 */
    position: relative; /* メッセージ配置の基準点 */
    cursor: pointer; /* マウスカーソルを指の形にする */
}

/* 2. 「押してね！」メッセージのスタイル */
.click-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 中央寄せ */
    background-color: #CCB3B7; /* くすみピンク（アクセント色） */
    color: #FFFFFF;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    opacity: 0.9;
    pointer-events: none; /* クリックイベントがメッセージではなく画像に伝わるようにする */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

/* ホバー時の強調（PC用） */
.flex-container figure:hover .click-message {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}


/* 3. モーダル（ポップアップの全体背景）のスタイル */
.modal {
    display: none; /* JavaScriptで表示するまで非表示 */
    position: fixed;
    z-index: 2000; /* 最前面に表示 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* 半透明の黒い背景 */
    justify-content: center; /* 中央寄せ */
    align-items: center; /* 中央寄せ */
    animation: fadeIn 0.3s; /* フェードイン */
}

/* 4. モーダルの中身（画像とキャプションのコンテナ）のスタイル */
.modal-content {
    position: relative;
    background-color: #FFFFFF; /* 背景色 */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s; /* ズームイン */
}

.modal-content img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 70vh; /* 画面の高さの70%まで */
    margin: 0 auto 15px;
    border-radius: 5px;
}

.modal-caption {
    text-align: center;
    font-size: 1rem;
    color: #444444;
}

/* 5. 閉じるボタン（×）のスタイル */
.close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    color: #444444; 
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: #CCB3B7; /* アクセントカラー */
}

/* 6. アニメーション定義 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}