@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&display=swap');

body {
    background-color: #f4f1ea; /* 暖かみのあるオフホワイト */
    color: #5d5d5d; /* 柔らかいダークグレー */
    font-family: 'Noto Serif JP', serif;
    line-height: 1.8;
    margin: 0;
    padding: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    max-width: 700px; /* 少し幅を広げる */
    width: 100%;
    text-align: center;
    background-color: #ffffff;
    padding: 2em 3em;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

header {
    margin-bottom: 2.5em; /* 少しマージンを増やす */
}

h1 {
    font-weight: 700;
    color: #333;
}

.subtitle {
    font-size: 0.9em;
    color: #a09a8d;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 各セクションのマージンを統一 */
section {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid #e0e0e0;
}
/* 最初のセクションの上ボーダーは不要 */
section:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}


h2 {
    color: #4a7c59; /* 落ち着いたグリーン */
    font-weight: 700;
    margin-bottom: 1.5em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #f0f0f0; /* 見出しの区切りを明確に */
    display: inline-block; /* 下線がテキスト幅に合うように */
}

p {
    text-align: left; /* 長文は左揃えに */
    margin-bottom: 1.5em;
}

/* Philosophyセクションの画像 */
#philosophy img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Testimonials（体験者の声）セクション */
#testimonials blockquote {
    border-left: 4px solid #4a7c59;
    padding-left: 1.5em;
    margin: 2em 0;
    text-align: left;
    font-style: italic;
}
#testimonials blockquote footer {
    font-style: normal;
    font-size: 0.9em;
    color: #888;
    text-align: right;
    margin-top: 0.5em;
}


/* パズルセクション */
.hint {
    font-style: italic;
    color: #888;
    text-align: center;
}

.description {
    text-align: center;
}

.description .emphasis {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.input-area {
    margin: 2em 0;
}

#password {
    background-color: #f9f9f9;
    color: #333;
    border: 1px solid #ccc;
    padding: 12px;
    font-size: 1em;
    text-align: center;
    width: 180px;
    font-family: 'Noto Serif JP', serif;
    border-radius: 4px;
}

#submit-button {
    background-color: #4a7c59;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 1em;
    cursor: pointer;
    font-family: 'Noto Serif JP', serif;
    border-radius: 4px;
    margin-left: 10px;
    transition: background-color 0.3s;
}

#submit-button:hover {
    background-color: #3b6347;
}

#message {
    margin-top: 1em;
    font-weight: bold;
    color: #c0392b; /* エラーメッセージ用の赤 */
    height: 20px;
    text-align: center;
}

/* 結果セクション */
#result h2 {
    border-bottom: none;
}
#result p {
    text-align: center;
}

.next-stage {
    font-size: 1.5em;
    font-weight: bold;
    color: #000;
    background-color: #f0e68c; /* ハイライトカラー */
    padding: 5px 10px;
    display: inline-block;
    margin-top: 1em;
    text-decoration: none;
    border-radius: 4px;
}

footer {
    margin-top: 3em;
    padding-top: 1em;
    border-top: 1px solid #e0e0e0;
    font-size: 0.8em;
    color: #aaa;
}

.hidden {
    display: none;
}