:root {
    --primary-color: #9C8C7D; /* Elegant soft brown/gold */
    --secondary-color: #E6DFD6; /* Warm off-white */
    --text-main: #333333;
    --text-light: #666666;
    --bg-main: #FAFAF8;
    --bg-card: #FFFFFF;
    --error: #D9534F;
    --success: #5CB85C;
    --transition: all 0.3s ease;
    
    --font-heading: 'Cormorant Garamond', 'Noto Serif JP', serif;
    --font-body: 'Noto Serif JP', serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, .names, .date {
    font-family: var(--font-heading);
    font-weight: 400;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    animation: slowZoom 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.hero-content {
    z-index: 1;
    padding: 2rem;
    animation: fadeInDown 1.5s ease-out;
}

.names {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    letter-spacing: 3px;
}

.date {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    letter-spacing: 5px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: transparent;
    color: white;
    text-decoration: none;
    border: 1px solid white;
    font-size: 1.1rem;
    letter-spacing: 2px;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: white;
    color: var(--text-main);
}

/* Sections */
section {
    padding: 6rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

/* Signature */
.signature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
    width: fit-content;
    margin: 2rem auto 0;
    line-height: 2;
}

.family-name {
    text-align: right;
}

.given-name {
    text-align: left;
    font-size: 1.05rem;
}

.maiden-name {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-left: 0.5rem;
}

/* Message Section */
.message-section p {
    font-size: 0.95rem;
}

.message-section p span {
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: var(--primary-color);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Details Section */
.details-card {
    background: var(--bg-card);
    padding: 4rem 2rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.details-card h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.details-card h3:first-child {
    margin-top: 0;
}

/* Special Request Card (For Guest of Honor) */
.special-request-section {
    padding: 2rem;
}

.request-card {
    background-color: var(--bg-card);
    border: 1px double var(--primary-color); /* 二重線でフォーマルに */
    padding: 3rem 2rem;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.request-card p {
    font-size: 0.95rem; /* ご挨拶と統一して上品に */
    color: var(--text-main);
    line-height: 2.2;
    letter-spacing: 0.05em;
}

.request-card p span,
.schedule-note span {
    display: inline-block;
    white-space: nowrap; /* <span>の中身を絶対に途中で改行させない */
}

@media (max-width: 480px) {
    .request-card {
        padding: 2.5rem 1rem; /* スマホでは左右の余白を狭めて文字幅を確保 */
    }
}

/* 付箋のような小さな装飾 */
.request-card::before {
    content: 'Request';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-main);
    padding: 0 15px;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.2rem;
    font-style: italic;
}

.schedule-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--secondary-color);
    line-height: 2;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.map-container {
    margin-top: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.08);
    border: 1px solid var(--secondary-color);
    line-height: 0;
    transition: var(--transition);
}

.map-container iframe {
    filter: grayscale(30%) sepia(10%) contrast(90%);
    transition: filter 0.5s ease;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.map-container:hover iframe {
    filter: grayscale(0%) sepia(0%) contrast(100%);
}

/* RSVP Form */
.rsvp-deadline {
    margin-bottom: 3rem;
    color: var(--text-light);
}

.rsvp-form {
    text-align: left;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-row {
    display: flex;
    gap: 2rem;
}

.form-group {
    margin-bottom: 2rem;
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.required {
    color: var(--error);
    margin-left: 4px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #E0E0E0;
    border-radius: 2px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #FAFAF8;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 2px rgba(156, 140, 125, 0.2);
}

textarea {
    resize: vertical;
}

/* Radio Buttons */
.attendance-group {
    text-align: center;
    margin-bottom: 3rem;
}

.radio-options {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1rem;
}

.radio-label {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    height: 24px;
    width: 24px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
}

.radio-label input:checked ~ .radio-custom {
    background-color: var(--primary-color);
}

.radio-custom:after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

.radio-label input:checked ~ .radio-custom:after {
    display: block;
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 1.2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-family: inherit;
    font-size: 1.1rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-button:hover {
    background-color: #8A7B6D;
}

.submit-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Loader */
.button-loader {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

.hidden {
    display: none !important;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Status */
.form-status {
    margin-top: 1rem;
    text-align: center;
    padding: 1rem;
    border-radius: 2px;
}

.form-status.success {
    background-color: #E8F5E9;
    color: var(--success);
    border: 1px solid #C8E6C9;
}

.form-status.error {
    background-color: #FFEBEE;
    color: var(--error);
    border: 1px solid #FFCDD2;
}

footer {
    text-align: center;
    padding: 3rem;
    background-color: var(--bg-card);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .names { font-size: 3rem; }
    .form-row { flex-direction: column; gap: 0; }
    .rsvp-form { padding: 2rem 1rem; }
    .radio-options { gap: 1.5rem; }
    .message-section p { font-size: 0.9rem; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
