/* ========================================
   CSS Reset & Base Styles
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* ========================================
   Typography
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Noto Sans JP', serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-weight: 400;
}

/* ========================================
   Utility Classes
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    color: #333333;
    position: relative;
    margin-bottom: 4rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #F8E8E8, #D4AF37);
    border-radius: 2px;
}

/* ========================================
   Header Section
======================================== */
.header {
    min-height: 100vh;
    background: linear-gradient(135deg, #F8E8E8 0%, #FFFFFF 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
}

.header-text {
    flex: 1;
    text-align: center;
}

.bride-groom-names {
    font-size: 4rem;
    color: #333333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.groom-name, .bride-name {
    position: relative;
}

.ampersand {
    font-size: 3rem;
    color: #D4AF37;
    font-style: italic;
}

.wedding-date {
    font-size: 1.5rem;
    color: #666666;
    margin-bottom: 1rem;
    font-weight: 300;
}

.catchphrase {
    font-size: 1.2rem;
    color: #888888;
    font-style: italic;
    margin-bottom: 2rem;
}

.header-image {
    flex: 1;
    text-align: center;
}

.main-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.main-photo:hover {
    transform: scale(1.05);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #666666;
}

.scroll-text {
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: #D4AF37;
    margin: 0 auto;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #D4AF37;
    border-bottom: 2px solid #D4AF37;
    transform: rotate(45deg);
}

/* ========================================
   Navigation
======================================== */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.navigation.visible {
    transform: translateY(0);
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: #F8E8E8;
    color: #D4AF37;
}

/* Mobile tip */
.mobile-tip {
    text-align: center;
    margin-top: 0.5rem;
    opacity: 0.7;
}

.tip-text {
    font-size: 0.75rem;
    color: #888888;
    font-style: italic;
    display: none;
}

/* Show tip only on mobile devices */
@media (max-width: 767.98px) {
    .tip-text {
        display: inline;
    }
}

/* Hide tip when in landscape mode */
@media (max-width: 767.98px) and (orientation: landscape) {
    .tip-text {
        display: none;
    }
}

/* ========================================
   Profile Section
======================================== */
.profiles {
    padding: 6rem 0;
    background: #FFFFFF;
}

.profiles-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.profile-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.profile-image {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #F8E8E8;
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.1);
}

.profile-name {
    text-align: center;
    color: #333333;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.profile-info {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #F0F0F0;
}

.info-label {
    font-weight: 500;
    color: #666666;
}

.info-value {
    color: #333333;
}

.profile-description {
    line-height: 1.8;
    color: #555555;
    margin-bottom: 2rem;
}

.favorites h4 {
    color: #D4AF37;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.favorites ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.favorites li {
    padding: 0.5rem 1rem;
    background: #F8E8E8;
    border-radius: 20px;
    text-align: center;
    color: #333333;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.favorites li:hover {
    background: #D4AF37;
    color: #FFFFFF;
}

/* Meeting Story */
.meeting-story {
    background: linear-gradient(135deg, #F8E8E8, #FFFFFF);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 2rem;
}

.story-title {
    text-align: center;
    color: #333333;
    margin-bottom: 2rem;
}

.story-content p {
    line-height: 1.8;
    color: #555555;
    margin-bottom: 1.5rem;
}

/* ========================================
   Timeline Section
======================================== */
.timeline {
    padding: 6rem 0;
    background: linear-gradient(135deg, #F8F8F8, #FFFFFF);
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #F8E8E8, #D4AF37);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    width: 120px;
    padding: 1rem;
    background: #D4AF37;
    color: #FFFFFF;
    text-align: center;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    padding: 2rem;
    background: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 2rem;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h4 {
    color: #333333;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: #666666;
    margin-bottom: 1rem;
}

.timeline-image {
    margin-top: 1rem;
}

.timeline-image img {
    width: 100%;
    max-width: 200px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.timeline-image img:hover {
    transform: scale(1.05);
}

/* ========================================
   Memory Section (Updated Gallery)
======================================== */
.memory-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 800px;
    width: 100%;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 2rem;
}

.central-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.couple-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #D4AF37;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.couple-photo:hover {
    transform: scale(1.1);
}

.memory-bubble {
    position: absolute;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 280px;
    min-width: 240px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
    z-index: 5;
}

.memory-bubble.animate {
    opacity: 1;
    transform: scale(1);
}

.bubble-content h4 {
    color: #D4AF37;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
}

.bubble-content p {
    color: #555555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

/* Bubble positioning - 四隅配置 */
.bubble-top {
    top: 50px;
    left: 50px;
    transform: scale(0.8);
}

.bubble-top.animate {
    transform: scale(1);
}

.bubble-right {
    top: 50px;
    right: 50px;
    transform: scale(0.8);
}

.bubble-right.animate {
    transform: scale(1);
}

.bubble-bottom {
    bottom: 50px;
    right: 50px;
    transform: scale(0.8);
}

.bubble-bottom.animate {
    transform: scale(1);
}

.bubble-left {
    bottom: 50px;
    left: 50px;
    transform: scale(0.8);
}

.bubble-left.animate {
    transform: scale(1);
}

/* Bubble arrows - 中央の写真に向かうように調整 */
.bubble-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border: 15px solid transparent;
}

/* 左上の吹き出し -> 右下方向に矢印 */
.arrow-down {
    bottom: -30px;
    right: 30px;
    border-top-color: #FFFFFF;
    border-left-color: #FFFFFF;
    border-top-width: 15px;
    border-left-width: 15px;
    border-right-width: 0;
    border-bottom-width: 0;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.1));
}

/* 右上の吹き出し -> 左下方向に矢印 */
.arrow-left {
    bottom: 30px;
    left: -30px;
    border-top-color: #FFFFFF;
    border-right-color: #FFFFFF;
    border-top-width: 15px;
    border-right-width: 15px;
    border-left-width: 0;
    border-bottom-width: 0;
    filter: drop-shadow(-2px 2px 5px rgba(0, 0, 0, 0.1));
}

/* 右下の吹き出し -> 左上方向に矢印 */
.arrow-up {
    top: -30px;
    left: 30px;
    border-bottom-color: #FFFFFF;
    border-right-color: #FFFFFF;
    border-bottom-width: 15px;
    border-right-width: 15px;
    border-left-width: 0;
    border-top-width: 0;
    filter: drop-shadow(2px -2px 5px rgba(0, 0, 0, 0.1));
}

/* 左下の吹き出し -> 右上方向に矢印 */
.arrow-right {
    top: 30px;
    right: -30px;
    border-bottom-color: #FFFFFF;
    border-left-color: #FFFFFF;
    border-bottom-width: 15px;
    border-left-width: 15px;
    border-right-width: 0;
    border-top-width: 0;
    filter: drop-shadow(-2px -2px 5px rgba(0, 0, 0, 0.1));
}

/* Hover effects - 四隅配置用 */
.memory-bubble:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.bubble-top:hover {
    transform: scale(1.05);
}

.bubble-right:hover {
    transform: scale(1.05);
}

.bubble-bottom:hover {
    transform: scale(1.05);
}

.bubble-left:hover {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #FFFFFF;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #D4AF37;
}

/* ========================================
   Footer Section
======================================== */
.footer {
    padding: 4rem 0;
    background: linear-gradient(135deg, #F8E8E8, #FFFFFF);
    text-align: center;
}

.footer-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 2rem;
}

.footer-names {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #333333;
    margin-bottom: 1rem;
}

.footer-date {
    font-size: 1.2rem;
    color: #D4AF37;
    font-weight: 500;
}

/* ========================================
   Placeholder Images
======================================== */
img[src*="placeholder"],
img[src=""],
img:not([src]) {
    background: linear-gradient(45deg, #F8E8E8, #E0E0E0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-size: 0.9rem;
}

img[src*="placeholder"]::before,
img[src=""]::before,
img:not([src])::before {
    content: "画像を配置してください";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
