/* /home/avenof/IP_correction/public/css/qa-style.css */

/* Google Fontsのインポート */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

/* 基本設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f5f0eb; /* 少し暖かみのある、よりはっきりした背景色 */
    color: #5D5D5D;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 20px 0;
}

/* 全体を囲むコンテナ */
.container {
    max-width: 720px;
    margin: 40px auto;
    padding: 30px 40px;
    background-color: #ffffff; /* 白 */
    border: 1px solid #e0e0e0; /* 薄いグレーの境界線を追加 */
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* シャドウをより強調 */
}

/* ユーザープロフィールエリア */
.profile-area {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background-color: #fef5f5;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* プロフィールエリアにもシャドウを追加 */
}

.profile-area img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.profile-area .display-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

.profile-area .username {
    color: #888;
}

/* 見出し */
h2 {
    font-size: 1.5em;
    color: #e59a9a; /* アクセントカラー（くすみピンク） */
    border-bottom: 2px solid #fce8e8;
    padding-bottom: 10px;
    margin-bottom: 25px;
    text-align: left;
}

p {
    margin-bottom: 1em;
}

a {
    color: #e59a9a;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* フォームのテキストエリア */
textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
    transition: box-shadow 0.3s, border-color 0.3s;
    background-color: #fcfcfc;
    font-family: 'Noto Sans JP', sans-serif;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #e59a9a;
    box-shadow: 0 0 8px rgba(229, 154, 154, 0.4);
}

/* ボタン */
button, .button-style {
    display: inline-block;
    background: linear-gradient(45deg, #f7b2b2, #e59a9a);
    color: white !important;
    border: none;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 154, 154, 0.4);
    letter-spacing: 1px;
    white-space: nowrap; /* ボタン内のテキストが改行されないように */
    text-align: center;
}

button:hover, .button-style:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(229, 154, 154, 0.6);
    text-decoration: none;
    filter: brightness(1.05); /* ホバー時に少し明るく */
}

/* フォームのフッター（カウンターとボタンをまとめる） */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -5px; /* テキストエリアとの隙間を調整 */
}

/* 文字数カウンター */
.char-counter {
    font-size: 0.9em;
    color: #aaa;
    padding-left: 5px;
}
.char-counter.limit-exceeded {
    color: #e53935; /* 上限を超えたら赤色に */
    font-weight: bold;
}

/* 質問リストの各項目 */
.question-item {
    background-color: #fff;
    border: 1px solid #f0f0f0;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); /* シャドウを少し強めに */
    transition: box-shadow 0.3s;
}

.question-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.question-item p { text-align: left; }

/* ログイン案内 */
.login-prompt {
    text-align: center;
    padding: 40px 0;
}
.login-prompt h2 { text-align: center; }

/* 共有URLボックス */
.share-url-box {
    padding: 15px;
    border: 1px solid #fce8e8;
    border-radius: 10px;
    background-color: #fef5f5;
    margin-bottom: 30px;
}
.share-url-box p { margin: 0; word-break: break-all; }

/* 共有ボタンコンテナ */
.share-buttons-container {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap; /* 画面が小さい場合にボタンを折り返す */
    gap: 10px; /* ボタン間の隙間 */
}

/* 汎用テキスト寄せクラス */
.text-align-right {
    text-align: right;
}
.text-align-center {
    text-align: center;
}

/* 汎用マージンクラス */
.mt-1 { margin-top: 1em; }
.mt-2 { margin-top: 2em; }
.mb-1 { margin-bottom: 1em; }

/* フォームの送信後ステータス */
.status-message {
    text-align: center;
    margin-top: 1em;
    color: #e59a9a;
    font-weight: bold;
}

/* --- レスポンシブ対応 (スマートフォンなど) --- */
@media (max-width: 768px) {
    .container {
        margin: 20px 15px;
        padding: 25px 20px;
    }

    .profile-area {
        flex-direction: column;
        align-items: flex-start;
    }

    h2 {
        font-size: 1.4em; /* スマホでの見出しサイズを少し大きく */
    }
}