/* --- Global Base --- */
:root {
    --color-primary: #b22222; /* Deep Beef Red */
    --color-gold: #d4af37;
    --color-bg-page: #fdfaf7; /* Very pale cream, closer to white */
    --color-bg-card: #FFFAF9; /* Even lighter pearl-pink-white for a cleaner look */
    --color-text: #2c2c2c;
    --color-text-light: #666666;
    --container-width: 600px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
    --color-gray-light: #f9f9f9; /* Even lighter gray */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', "游ゴシック体", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg-page);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* 横揺れ防止 */
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    animation: fadeInUp 0.8s forwards;
}

/* Background Texture Effect */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../images/bg_pattern.png');
    background-repeat: repeat;
    background-size: 800px; /* Restore to original spacing */
    opacity: 0.25; /* Increased opacity as requested */
    z-index: -1;
}

/* --- Layout --- */
.page-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 0 0 40px 0;
}

.content-frame {
    width: 100%;
    max-width: var(--container-width);
    background: var(--color-bg-card);
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
    position: relative;
    border-radius: var(--radius-lg); /* Rounded all corners for a complete card look */
    border-top: 5px solid var(--color-primary); /* Use border-top for perfect rounding alignment */
}

/* Progress Bar Sticky styling */
#progress-container {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

/* --- Components --- */

/* Header (Smartphone-app style slim red bar) */
header.site-header {
    display: none; /* Hidden in favor of content-frame border-top */
}

header.site-header h1 {
    display: none; /* Text deleted as requested */
}

/* Main Visual (Hero Image) */
.main-visual {
    margin: 30px 24px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.main-visual img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.main-visual:hover img {
    transform: scale(1.03);
}

/* Section Container - Increased spacing for premium feel */
section {
    padding: 60px 24px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-gold);
}

/* Spacing within sections */
section p {
    margin-bottom: 32px;
}

.intro-text {
    margin-bottom: 48px !important;
}

.button-container {
    margin: 48px 0 20px;
}

/* Gradient Divider based on image */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, rgba(178, 34, 34, 0), rgba(178, 34, 34, 0.4), rgba(178, 34, 34, 0));
    margin: 60px 0;
    border: none;
}

/* Cards / Blocks */
.info-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.info-card-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 4px;
}

.info-card.accent {
    background: #fff;
    border-left: 5px solid var(--color-primary);
    padding: 40px 24px; /* Increased vertical padding by ~40% */
}

/* Notes Card based on image */
.notes-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px 24px;
    box-shadow: var(--shadow-sm);
    margin-top: 40px;
}

.notes-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid var(--color-primary);
}

.notes-card-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--color-text);
}

.notes-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notes-card-item {
    display: flex;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--color-text);
}

.notes-card-item::before {
    content: "○";
    color: var(--color-gold);
    font-weight: bold;
}

/* Background classes */
.bg-gray-section {
    background-color: var(--color-gray-light);
    background-image: radial-gradient(#e5e5e5 1.2px, transparent 1.2px);
    background-size: 24px 24px;
}
.btn-primary {
    display: inline-block;
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary), #8b0000);
    color: #fff;
    padding: 20px 32px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(178, 34, 34, 0.3);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 3px 10px rgba(178, 34, 34, 0.4);
}

.btn-outline {
    display: inline-block;
    width: 100%;
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 18px 32px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    margin-top: 15px;
    transition: all 0.2s ease;
}

.btn-outline:active {
    background-color: rgba(178, 34, 34, 0.05);
    transform: translateY(1px);
}

/* Forms */
.form-group {
    margin-bottom: 32px;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-required {
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fcfcfc;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(178, 34, 34, 0.1);
}

.form-error-msg {
    color: var(--color-primary);
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
    display: none;
}

.is-error .form-control {
    border-color: var(--color-primary);
    background-color: #fff5f5;
}

/* Footer */
footer.site-footer {
    padding: 40px 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-light);
    border-top: 1px solid #eee;
}

/* Responsive utilities */
@media screen and (max-width: 900px) {
    .content-frame {
        box-shadow: none;
        border-radius: 0;
    }
}
.br-sp {
    display: none;
}

@media screen and (max-width: 600px) {
    .section-title {
        font-size: 1.4rem;
    }
    .br-sp {
        display: inline;
    }
}
