/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: #5a4a42;
    background-color: #FFF8F0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('jewerlly_pic_1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 248, 231, 0.75) 0%,
            rgba(255, 229, 229, 0.70) 50%,
            rgba(212, 232, 212, 0.75) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.petals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.petal {
    position: absolute;
    width: 15px;
    height: 15px;
    background: radial-gradient(ellipse at center, #FFD7D7 0%, #FFC0CB 50%, rgba(255, 192, 203, 0.3) 100%);
    border-radius: 50% 0 50% 0;
    animation: petalFall linear infinite, petalSway ease-in-out infinite;
}

.petal:nth-child(1) {
    left: 10%;
    animation-duration: 12s, 4s;
    animation-delay: 0s, 0s;
}

.petal:nth-child(2) {
    left: 20%;
    animation-duration: 15s, 5s;
    animation-delay: 2s, 1s;
}

.petal:nth-child(3) {
    left: 30%;
    animation-duration: 10s, 3s;
    animation-delay: 4s, 2s;
}

.petal:nth-child(4) {
    left: 40%;
    animation-duration: 13s, 4.5s;
    animation-delay: 1s, 0.5s;
}

.petal:nth-child(5) {
    left: 50%;
    animation-duration: 11s, 3.5s;
    animation-delay: 3s, 1.5s;
}

.petal:nth-child(6) {
    left: 60%;
    animation-duration: 14s, 4.2s;
    animation-delay: 5s, 2.5s;
}

.petal:nth-child(7) {
    left: 70%;
    animation-duration: 12.5s, 3.8s;
    animation-delay: 1.5s, 0.8s;
}

.petal:nth-child(8) {
    left: 80%;
    animation-duration: 13.5s, 4.8s;
    animation-delay: 3.5s, 1.8s;
}

.petal:nth-child(9) {
    left: 90%;
    animation-duration: 11.5s, 3.2s;
    animation-delay: 2.5s, 1.2s;
}

.petal:nth-child(10) {
    left: 15%;
    animation-duration: 14.5s, 5.2s;
    animation-delay: 4.5s, 2.2s;
}

.hero-content {
    text-align: center;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
    margin-top: -60px;
}

.main-title {
    font-family: 'Shippori Mincho', serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-bottom: 15px;
}

.title-top {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 500;
    color: #6B5340;
    letter-spacing: 0.3em;
    text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.9);
}

.title-main {
    font-weight: 700;
    background: linear-gradient(135deg, #C08585 0%, #7FAF7F 50%, #C08585 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 8px rgba(139, 115, 85, 0.3);
    position: relative;
    display: flex;
    /* Added for column layout */
    flex-direction: column;
    /* Added for column layout */
    align-items: center;
    /* Center the lines */
    line-height: 1.2;
    /* Adjust line height for better spacing */
}

.title-main-line {
    font-size: clamp(2.5rem, 6vw, 5rem);
    /* Inherit or set large font size */
    white-space: nowrap;
    /* Ensure each line stays on one line */
}

.title-main::before,
.title-main::after {
    content: '✦';
    position: absolute;
    font-size: 1.5rem;
    color: #B89080;
    opacity: 0.8;
}

.title-main::before {
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
}

.title-main::after {
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
}

.title-year {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 600;
    color: #7FAF7F;
    letter-spacing: 0.2em;
}

.hero-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #4A3A2F;
    letter-spacing: 0.1em;
    font-weight: 400;
    margin: 0;
}

.hero-cta {
    margin: 0;
}

.btn-primary {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, #FFB5B5 0%, #B8D8B8 100%);
    color: #3A2A1F;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(192, 133, 133, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(192, 133, 133, 0.5);
    background: linear-gradient(135deg, #FFC8C8 0%, #C8E8C8 100%);
}

/* ===== About Section ===== */
.about {
    padding: 100px 20px;
    background: linear-gradient(180deg, #FFF8F0 0%, #FFF8E7 100%);
    text-align: center;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 350px;
    height: 350px;
    background-image: url('gems_pic.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 350px;
    height: 350px;
    background-image: url('gems_pic.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    transform: scaleX(-1);
    pointer-events: none;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #8B7355;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
    overflow: visible;
    opacity: 0;
}

.section-title.animate {
    animation: slideInFromLeft 1.2s ease-out forwards;
}

.sparkle {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    --float-y: 0px;
}

.sparkle::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 250, 205, 0.95) 30%, rgba(255, 240, 200, 0.6) 60%, transparent 100%);
    border-radius: 50%;
    box-shadow:
        0 0 12px rgba(255, 255, 255, 1),
        0 0 18px rgba(255, 250, 205, 0.8),
        0 0 25px rgba(255, 240, 200, 0.6);
    animation: twinkle var(--twinkle-duration, 0.6s) ease-in-out infinite;
}

.sparkle::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow:
        0 0 5px rgba(255, 255, 255, 1),
        0 0 8px rgba(255, 250, 205, 0.9);
    top: 2px;
    left: 2px;
}

.sparkle.animate {
    animation: sparkleFloat 2.8s ease-out forwards;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #D4A5A5 0%, #A8C4A8 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #6B5B4F;
    letter-spacing: 0.05em;
    font-weight: 300;
}

.about-description {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.1);
}

.about-description p {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: #5a4a42;
    line-height: 2.2;
    letter-spacing: 0.08em;
    font-weight: 400;
    text-align: center;
}

.about-description .highlight {
    font-weight: 700;
    color: #C08585;
    font-size: 1.15em;
    background: linear-gradient(135deg, rgba(255, 200, 200, 0.3) 0%, rgba(200, 230, 200, 0.3) 100%);
    padding: 2px 8px;
    border-radius: 5px;
    display: inline-block;
}

/* ===== Gallery Section ===== */
.gallery {
    padding: 80px 20px;
    background: #FFFFFF;
}

.gallery-note {
    text-align: center;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: #6B5B4F;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(139, 115, 85, 0.1);
    transition: all 0.4s ease;
    aspect-ratio: 1;
    opacity: 0.8;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(139, 115, 85, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ===== Special Gift Section ===== */
.special-gift {
    padding: 80px 20px;
    background: linear-gradient(135deg, #FFF0F5 0%, #FFF8F0 100%);
    /* overflow: hidden; Removed to allow sparkles to be visible */
}

.gift-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.gift-image {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    /* border-radius: 20px; Moved to img/container specific handling if needed, but keeping here is fine if we want the whole block to rotate */
    /* overflow: hidden;  Removing this from container so note isn't clipped if we want it outside, but note is inside. */
    /* Actually, let's keep the rotation on a wrapper or the image itself. */
    position: relative;
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.gift-image:hover {
    transform: rotate(0deg) scale(1.02);
}

.gift-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    /* Moved radius to image */
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.15);
}

.image-note {
    font-size: 0.8rem;
    color: #8B7355;
    margin-top: 10px;
    text-align: right;
    opacity: 0.8;
}

.gift-text {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.gift-subtitle {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: #8B7355;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 600;
}

.gift-note {
    font-size: 0.9rem;
    color: #C08585;
    font-weight: 500;
}

@media (max-width: 768px) {
    .gift-content {
        flex-direction: column;
        gap: 30px;
    }

    .gift-image {
        transform: rotate(0);
        max-width: 100%;
    }
}

/* ===== Event Info Section ===== */
.event-info {
    padding: 100px 20px;
    position: relative;
    background:
        linear-gradient(135deg, rgba(255, 229, 229, 0.85) 0%, rgba(232, 245, 233, 0.85) 50%, rgba(255, 248, 231, 0.85) 100%),
        url('jewerlly_pic_2.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 165, 165, 0.2);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(139, 115, 85, 0.15);
}

.info-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.info-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

.info-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.3rem;
    color: #8B7355;
    letter-spacing: 0.1em;
    text-align: center;
    white-space: nowrap;
}

.info-content {
    flex: 1;
    text-align: left;
    color: #5a4a42;
}

.date-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #D4A5A5;
    gap: 15px;
}

.date-item:last-child {
    border-bottom: none;
}

.date-day {
    font-weight: 600;
    color: #8B7355;
    font-size: 1.1rem;
}

.date-time {
    color: #6B5B4F;
    font-size: 1.1rem;
    font-weight: 500;
}

.venue-name {
    font-weight: 600;
    font-size: 1.2rem;
    color: #8B7355;
    margin-bottom: 15px;
    text-align: left;
}

.venue-address,
.venue-access {
    margin-bottom: 10px;
    text-align: left;
    color: #5a4a42;
}

.venue-access {
    font-weight: 500;
    color: #A8C4A8;
    margin-bottom: 25px;
}

.location-image {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.15);
}

.location-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.location-image:hover img {
    transform: scale(1.05);
}

.btn-map {
    display: inline-block;
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #A8C4A8 0%, #8FB88F 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(168, 196, 168, 0.3);
}

.btn-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 196, 168, 0.4);
    background: linear-gradient(135deg, #8FB88F 0%, #7DA87D 100%);
}

/* ===== Message Section ===== */
.message {
    padding: 100px 20px;
    background: linear-gradient(180deg, #FFF8F0 0%, #FFE5E5 100%);
}

.message-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.1);
}

.message-title {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: #8B7355;
    margin-bottom: 30px;
    letter-spacing: 0.08em;
    position: relative;
    display: inline-block;
    overflow: visible;
    opacity: 0;
}

.message-title.animate {
    animation: slideInFromLeft 1.2s ease-out forwards;
}

.message-text {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: #5a4a42;
    line-height: 2;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
}

.message-signature {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.5rem;
    color: #D4A5A5;
    font-weight: 500;
    letter-spacing: 0.2em;
}

.message-author-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 20px auto 10px;
    display: block;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.2);
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFD7D7 0%, #D4E8D4 100%);
    border-radius: 50%;
    color: #6B5B4F;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.2);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.3);
    background: linear-gradient(135deg, #FFC0C0 0%, #B8D8B8 100%);
}

.social-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.social-icon.shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* ===== Footer ===== */
.footer {
    padding: 40px 20px;
    background: linear-gradient(135deg, #8B7355 0%, #6B5B4F 100%);
    text-align: center;
    color: #FFF8F0;
}

.footer-text {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.8;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shineEffect {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

@keyframes sparkleFloat {
    0% {
        transform: translateX(0) translateY(0) scale(0) rotate(0deg);
        opacity: 0;
    }

    5% {
        opacity: 0.7;
    }

    15% {
        opacity: 1;
    }

    50% {
        transform: translateX(400px) translateY(var(--float-y)) scale(1) rotate(180deg);
        opacity: 1;
    }

    85% {
        opacity: 0.8;
    }

    100% {
        transform: translateX(800px) translateY(calc(var(--float-y) * 0.5)) scale(0.3) rotate(360deg);
        opacity: 0;
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.8);
        filter: brightness(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
        filter: brightness(1.3);
    }
}

@keyframes petalFall {
    0% {
        top: -10%;
        opacity: 0.8;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}

@keyframes petalSway {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(30px) rotate(90deg);
    }

    50% {
        transform: translateX(-30px) rotate(180deg);
    }

    75% {
        transform: translateX(20px) rotate(270deg);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {

    .about,
    .gallery,
    .event-info,
    .message {
        padding: 80px 20px;
    }

    .about-description {
        padding: 30px 20px;
    }

    .message-content {
        padding: 50px 30px;
    }
}

@media (max-width: 768px) {

    .hero {

        min-height: 500px;

    }



    .title-main-line {

        font-size: clamp(2.5rem, 7vw, 5rem);
        /* Increased font size for each line */

    }



    .title-main::before,

    .title-main::after {

        display: none;

    }



    .hero-bottom {

        flex-direction: column;

        gap: 20px;

    }



    .gallery-grid {

        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

        gap: 20px;

    }



    .info-card {

        flex-direction: column;

        align-items: center;

        text-align: center;

    }



    .info-header {

        width: 100%;

    }



    .info-content {

        width: 100%;

    }



    .date-item {

        flex-direction: column;

        gap: 5px;

    }



    .venue-name,

    .venue-address,

    .venue-access {

        text-align: center;

    }



    .message-content {

        padding: 40px 25px;

    }



    .section-header {

        margin-bottom: 40px;

    }



    .section-title {

        white-space: nowrap;
        /* Ensure "大自然が生み出した宝物" is on one line */

    }



    .social-icons {

        gap: 20px;

    }



    .about::before,
    /* Hide top-left image on mobile */

    .about::after {
        /* Hide bottom-right image on mobile */

        display: none;

    }

}



@media (max-width: 576px) {

    .about,
    .gallery,
    .event-info,
    .message {

        padding: 60px 15px;

    }



    .title-main-line {

        font-size: clamp(2.2rem, 6.5vw, 4.5rem);
        /* Further increased font size for each line */

    }



    .title-top {

        letter-spacing: 0.2em;

    }



    .btn-primary {

        padding: 15px 35px;

        font-size: 0.9rem;

    }



    .about-description p {

        font-size: clamp(0.9rem, 2.2vw, 1.1rem);

        line-height: 2;

    }



    .info-card {

        padding: 30px 20px;

    }



    .gallery-grid {

        grid-template-columns: 1fr;

    }



    .social-icon {

        width: 50px;

        height: 50px;

    }



    .social-icon img {

        width: 30px;

        height: 30px;

    }

}

/* ===== Smooth Scrolling ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Selection Styling ===== */
::selection {
    background: #FFD7D7;
    color: #5a4a42;
}

::-moz-selection {
    background: #FFD7D7;
    color: #5a4a42;
}