/* リセットCSS (簡易版) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f0f0; /* 全体の背景色 */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px; /* ヘッダーとフォームの間にスペース */
}

header {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
    max-width: 800px;
    position: relative;
}

header h1 {
    font-size: 3em;
    font-weight: bold;
    color: #333;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

header .subtitle {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

.breadcrumb {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.9em;
    color: #777;
}

.breadcrumb a {
    color: #777;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.current-page {
    color: #333;
}


main {
    width: 100%;
    max-width: 800px; /* フォーム全体の最大幅 */
    padding: 20px;
}

/* グレーの枠と中の文章 */
.info-box {
    background-color: #e0e0e0; /* グレーの背景色 */
    padding: 20px 30px; /* 内側の余白 */
    border-radius: 8px; /* 角を少し丸くする */
    margin-bottom: 30px; /* フォームとの間に余白 */
    text-align: center; /* テキストを中央寄せ */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 軽い影 */
}

.info-box p {
    font-size: 1em;
    color: #555;
    line-height: 1.8;
}

/* フォーム機能なしの表示コンテナ */
.contact-display { /* 旧 .contact-form の代わり */
    background-color: #fff;
    padding: 40px 50px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #444;
}

.required {
    background-color: #e91e63; /* ピンク系の色 */
    color: #fff;
    font-size: 0.7em;
    padding: 3px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.arbitrary {
    background-color: #9e9e9e; /* グレー系の色 */
    color: #fff;
    font-size: 0.7em;
    padding: 3px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}
/* フォーム入力欄の代わりに表示されるテキストのスタイル */
.display-value {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd; /* 入力欄風のボーダー */
    border-radius: 5px;
    font-size: 1em;
    color: #555;
    background-color: #f9f9f9; /* 入力欄風の背景色 */
    line-height: 1.5; /* テキストの行の高さ */
    min-height: 44px; /* 入力欄と同じくらいの高さに */
    display: flex; /* テキストの垂直方向中央揃え用 */
    align-items: center; /* テキストの垂直方向中央揃え用 */
}

/* テキストエリア風の表示用 */
.display-value.textarea-like {
    min-height: 120px; /* テキストエリアと同じくらいの高さに */
    display: block; /* display:flexをやめてblockに */
    white-space: pre-wrap; /* 改行を反映させる */
    align-items: flex-start; /* 上寄せ */
}

/* チェックボックスの表示用 */
.checkbox-group {
    padding-left: 5px; /* インデント */
}

.display-checkbox {
    margin-bottom: 10px;
    font-weight: normal;
    color: #555;
    display: flex;
    align-items: center;
    /* チェックマークの記号はHTML側で直接記述 */
}

.privacy-policy, .confirmation {
    display: flex;
    align-items: center;
    margin-top: 25px;
}

.privacy-policy .required {
    margin-right: 10px;
}

.submit-button-link {
    display: block;
    width: 200px;
    padding: 15px 20px;
    margin: 40px auto 0; /* 中央寄せ */
    background-color: #333; /* 黒系の色 */
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    text-align: center; /* テキストを中央寄せ */
    text-decoration: none; /* デフォルトのアンダーラインを消す */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;

 } 

/* レスポンシブ対応 (前回のものをそのまま使用) */
@media (max-width: 768px) {
    body {
        padding-top: 30px;
    }

    header h1 {
        font-size: 2.5em;
    }

    .contact-display { /* .contact-form の代わりに .contact-display */
        padding: 30px;
    }

    .info-box {
        padding: 15px 20px;
    }

    .breadcrumb {
        position: static;
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }

    .contact-display { /* .contact-form の代わりに .contact-display */
        padding: 20px;
    }

    .info-box p {
        font-size: 0.9em;
    }
}
