/* ==================== Accessibility Utilities ==================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== Loading Animation ==================== */
html.no-loading #loading {
    display: none !important;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFE5EC 0%, #E0BBE4 50%, #D4F1F4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    position: relative;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto 2rem;
}

.loading-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.loading-circle:nth-child(1) {
    border: 4px solid transparent;
    border-top-color: #FFB7C5;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loading-circle:nth-child(2) {
    border: 4px solid transparent;
    border-right-color: #E0BBE4;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    animation-delay: 0.2s;
}

.loading-circle:nth-child(3) {
    border: 4px solid transparent;
    border-bottom-color: #D4F1F4;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    animation-delay: 0.4s;
}

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

.loading-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3),
                 0 0 20px rgba(255, 183, 197, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.loading-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FFB7C5;
    animation: bounce 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
    background: #E0BBE4;
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    background: #D4F1F4;
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
}

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

:root {
    /* Pastel Color Palette */
    --primary-pink: #FFB7C5;
    --primary-lavender: #E0BBE4;
    --primary-mint: #D4F1F4;
    --primary-peach: #FFD6E0;
    --primary-cream: #FFF5E4;

    /* Text Colors */
    --text-dark: #5A4A6A;
    --text-light: #8B7B9B;
    --text-white: #FFFFFF;

    /* Backgrounds */
    --bg-gradient: linear-gradient(135deg, #FFE5EC 0%, #E0BBE4 50%, #D4F1F4 100%);
    --bg-light: #FFFBF5;
    --bg-white: #FFFFFF;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(227, 188, 228, 0.15);
    --shadow-md: 0 4px 16px rgba(227, 188, 228, 0.2);
    --shadow-lg: 0 8px 32px rgba(227, 188, 228, 0.25);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

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

/* ==================== Header ==================== */
.header {
    position: relative;
    width: 100%;
    max-width: 100vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    overflow-x: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(90deg,
        var(--primary-pink) 0%,
        var(--primary-lavender) 25%,
        var(--primary-mint) 50%,
        var(--primary-peach) 75%,
        var(--primary-pink) 100%);
    animation: headerShine 8s linear infinite;
    clip-path: polygon(
        0% 0%,
        2% 70%, 4% 80%, 6% 70%, 8% 50%, 10% 30%, 12% 20%, 14% 30%,
        16% 50%, 18% 70%, 20% 80%, 22% 70%, 24% 50%, 26% 30%, 28% 20%, 30% 30%,
        32% 50%, 34% 70%, 36% 80%, 38% 70%, 40% 50%, 42% 30%, 44% 20%, 46% 30%,
        48% 50%, 50% 70%, 52% 80%, 54% 70%, 56% 50%, 58% 30%, 60% 20%, 62% 30%,
        64% 50%, 66% 70%, 68% 80%, 70% 70%, 72% 50%, 74% 30%, 76% 20%, 78% 30%,
        80% 50%, 82% 70%, 84% 80%, 86% 70%, 88% 50%, 90% 30%, 92% 20%, 94% 30%,
        96% 50%, 98% 70%, 100% 80%,
        100% 0%
    );
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
    background-size: 15px 15px;
    background-position: 0 0;
    animation: headerDots 20s linear infinite;
    pointer-events: none;
    clip-path: polygon(
        0% 0%,
        2% 70%, 4% 80%, 6% 70%, 8% 50%, 10% 30%, 12% 20%, 14% 30%,
        16% 50%, 18% 70%, 20% 80%, 22% 70%, 24% 50%, 26% 30%, 28% 20%, 30% 30%,
        32% 50%, 34% 70%, 36% 80%, 38% 70%, 40% 50%, 42% 30%, 44% 20%, 46% 30%,
        48% 50%, 50% 70%, 52% 80%, 54% 70%, 56% 50%, 58% 30%, 60% 20%, 62% 30%,
        64% 50%, 66% 70%, 68% 80%, 70% 70%, 72% 50%, 74% 30%, 76% 20%, 78% 30%,
        80% 50%, 82% 70%, 84% 80%, 86% 70%, 88% 50%, 90% 30%, 92% 20%, 94% 30%,
        96% 50%, 98% 70%, 100% 80%,
        100% 0%
    );
}

@keyframes headerShine {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

@keyframes headerDots {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 0;
    }
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 0.5rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-lavender));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.05em;
}

.nav {
    display: flex;
    gap: 2rem;
    padding-bottom: 1rem;
    width: 100%;
    justify-content: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-pink), var(--primary-lavender));
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-pink);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ==================== Hero Section ==================== */
.hero {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 80vh;
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    overflow: visible;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-pink);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-lavender);
    top: 50%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: var(--primary-mint);
    bottom: 10%;
    left: 30%;
    animation-delay: 10s;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: var(--primary-peach);
    top: 30%;
    right: 30%;
    animation-delay: 15s;
}

.shape-5 {
    width: 250px;
    height: 250px;
    background: var(--primary-pink);
    bottom: 20%;
    right: 20%;
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 50px) scale(0.9);
    }
    75% {
        transform: translate(40px, 30px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 600px;
    animation: fadeInUp 1s ease;
    background: rgba(255, 255, 255, 0.6);
    padding: 5rem;
    border-radius: 0 20px 0 0;
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%),
                linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 100%);
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%),
                        linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 100%);
    -webkit-mask-composite: source-in;
}

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

/* ==================== Scroll Animation Classes ==================== */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

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

/* About section specific animations */
.about-text.fade-in {
    animation: slideInLeft 0.8s ease forwards;
}

.about-avatar.fade-in {
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-white);
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 8px 16px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 2.5rem;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 3px 6px rgba(0, 0, 0, 0.6),
        0 6px 12px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-lavender));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(255, 183, 197, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 183, 197, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    border: 2px solid var(--primary-pink);
}

.btn-outline:hover {
    background: var(--primary-pink);
    color: var(--text-white);
    transform: translateY(-3px);
}

/* ==================== Hero Photo Frame Gallery ==================== */
.hero-gallery-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 0;
    overflow: hidden;
    background: repeating-linear-gradient(
        125deg,
    rgba(255, 183, 197, 0.1),
    rgba(255, 183, 197, 0.1) 40px,
    rgba(255, 255, 255, 0) 40px,
    rgba(255, 255, 255, 0) 90px
    );
}

/* 降るピンクの●エフェクト（背景） */
.hero-gallery-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-gallery {
    position: relative;
    width: 100%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 10;
    padding-bottom: 3rem;
}

.hero-frame {
    position: absolute;
    width: 40%;
    height: 100%;
    opacity: 0;
    visibility: visible;
    transition: opacity 1s ease-in-out;
    z-index: 0;
    pointer-events: none;
}

/* フォトフレームのスタイル - Pattern 20: 太め額縁風 */
.frame-inner {
    width: 100%;
    height: 100%;
    position: relative;
    background: white;
    padding: 0.8rem;
    border: 4px solid #FFB7C5;
    border-radius: 45px;
    box-shadow:
      inset 0 0 0 6px white,
      inset 0 0 0 9px #FFCCD6,
      0 4px 12px rgba(255,183,197,0.15);
}

.frame-inner::before {
    content: '';
    position: absolute;
    inset: 1.2rem;
    border: none;
    pointer-events: none;
    border-radius: 2px;
}

.frame-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    border-radius: 35px;
}

/* 配置: 左（4枚目）、中央（1枚目）、右（2枚目） */
.hero-frame.position-left {
    left: -13.33%;
    z-index: 1;
    transform: scale(0.9);
}

.hero-frame.position-center {
    left: 50%;
    transform: translateX(-50%) scale(1);
    z-index: 3;
}

.hero-frame.position-right {
    right: -13.33%;
    z-index: 2;
    transform: scale(0.9);
}

/* アクティブな画像は中央に配置 */
.hero-frame.active {
    z-index: 3;
}

.hero-nav-dots {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-pink);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot:hover {
    transform: scale(1.2);
    background: var(--primary-peach);
}

.hero-dot.active {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-lavender));
    border-color: var(--primary-lavender);
    transform: scale(1.3);
}

/* ==================== Gallery Section ==================== */
.gallery-section {
    position: relative;
    width: 100%;
    max-width: 100vw;
    padding: 2rem 0 6rem 0;
    margin-bottom: -16px;
    background: linear-gradient(to bottom, #fcfaf7 0%, #fff5e4 100%);
    overflow: visible;
    z-index: 1;
}



.section-title {
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-lavender));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
}

/* Gallery title image */
.gallery-title-image,
.link-title-image,
.contact-title-image,
.about-title-image {
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    border: none;
    position: relative;
    z-index: 100;
}

.title-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: inline-block;
}

.section-subtitle {
    position: relative;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
}

.filter-tabs {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
}

.filter-btn {
    position: relative;
    padding: 0.7rem 2rem;
    border: 2px solid var(--primary-lavender);
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1rem;
    z-index: 10;
}

.filter-btn:hover {
    background: var(--primary-lavender);
    color: var(--text-white);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-lavender));
    color: var(--text-white);
    border-color: transparent;
}

.gallery-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    z-index: 10;
}

.gallery-item {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-normal);
    z-index: 10;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item-inner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 10;
}

.gallery-item-inner:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.gallery-placeholder {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--primary-peach), var(--primary-mint));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 500;
}

.gallery-item-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3/4;
    display: block;
}

.gallery-item-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    line-height: 1.4;
    display: none;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(90, 74, 106, 0.95), transparent);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.gallery-item-inner:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item-title {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    order: 2;
}

.gallery-item-date {
    color: var(--primary-cream);
    font-size: 0.9rem;
    display: none;
}

/* ==================== About Section ==================== */
.about-section {
    position: relative;
    width: 100%;
    max-width: 100vw;
    padding: 2rem 0 6rem 0;
    margin-bottom: -15px;
    background: #FFE5EC;
    z-index: 10;
    overflow: visible;
    -webkit-overflow-scrolling: auto;
}

.about-section .section-title {
    opacity: 0;
    transform: translateY(30px);
}

.about-section::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: #FFE5EC;
    clip-path: polygon(
        0% 100%,
        2% 30%, 4% 20%, 6% 30%, 8% 50%, 10% 70%, 12% 80%, 14% 70%,
        16% 50%, 18% 30%, 20% 20%, 22% 30%, 24% 50%, 26% 70%, 28% 80%, 30% 70%,
        32% 50%, 34% 30%, 36% 20%, 38% 30%, 40% 50%, 42% 70%, 44% 80%, 46% 70%,
        48% 50%, 50% 30%, 52% 20%, 54% 30%, 56% 50%, 58% 70%, 60% 80%, 62% 70%,
        64% 50%, 66% 30%, 68% 20%, 70% 30%, 72% 50%, 74% 70%, 76% 80%, 78% 70%,
        80% 50%, 82% 30%, 84% 20%, 86% 30%, 88% 50%, 90% 70%, 92% 80%, 94% 70%,
        96% 50%, 98% 30%, 100% 20%,
        100% 100%
    );
    z-index: 100;
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: #FFE5EC;
    clip-path: polygon(
        0% 0%,
        2% 70%, 4% 80%, 6% 70%, 8% 50%, 10% 30%, 12% 20%, 14% 30%,
        16% 50%, 18% 70%, 20% 80%, 22% 70%, 24% 50%, 26% 30%, 28% 20%, 30% 30%,
        32% 50%, 34% 70%, 36% 80%, 38% 70%, 40% 50%, 42% 30%, 44% 20%, 46% 30%,
        48% 50%, 50% 70%, 52% 80%, 54% 70%, 56% 50%, 58% 30%, 60% 20%, 62% 30%,
        64% 50%, 66% 70%, 68% 80%, 70% 70%, 72% 50%, 74% 30%, 76% 20%, 78% 30%,
        80% 50%, 82% 70%, 84% 80%, 86% 70%, 88% 50%, 90% 30%, 92% 20%, 94% 30%,
        96% 50%, 98% 70%, 100% 80%,
        100% 0%
    );
    z-index: 10;
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 100%;
    overflow: visible;
}

.about-text {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateX(-50px);
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.about-name {
    font-size: 2rem;
    color: var(--primary-pink);
    margin-bottom: 1.5rem;
}

.about-description {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-link-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    background: var(--bg-white);
    border: 2px solid var(--primary-lavender);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.about-link-item:hover {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-lavender));
    color: var(--text-white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.about-link-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.about-avatar {
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateX(50px);
}

.avatar-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-lavender));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ==================== Link Section ==================== */
.link-section {
    position: relative;
    width: 100%;
    max-width: 100vw;
    padding: 2rem 0 6rem 0;
    background: #F5D5E5;
    overflow: visible;
    z-index: 10;
}

.link-section::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    width: 100%;
    height: 17px;
    background: #F5D5E5;
    clip-path: polygon(
        0% 100%,
        2% 30%, 4% 20%, 6% 30%, 8% 50%, 10% 70%, 12% 80%, 14% 70%,
        16% 50%, 18% 30%, 20% 20%, 22% 30%, 24% 50%, 26% 70%, 28% 80%, 30% 70%,
        32% 50%, 34% 30%, 36% 20%, 38% 30%, 40% 50%, 42% 70%, 44% 80%, 46% 70%,
        48% 50%, 50% 30%, 52% 20%, 54% 30%, 56% 50%, 58% 70%, 60% 80%, 62% 70%,
        64% 50%, 66% 30%, 68% 20%, 70% 30%, 72% 50%, 74% 70%, 76% 80%, 78% 70%,
        80% 50%, 82% 30%, 84% 20%, 86% 30%, 88% 50%, 90% 70%, 92% 80%, 94% 70%,
        96% 50%, 98% 30%, 100% 20%,
        100% 100%
    );
    z-index: 10;
}

.link-section .section-title,
.link-section .section-subtitle {
    opacity: 0;
    transform: translateY(30px);
}

.link-links {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    z-index: 10;
}

.link-card {
    position: relative;
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
}

.link-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-pink);
}

.link-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-lavender));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
}

.link-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.link-card p {
    color: var(--text-light);
}

/* ==================== Contact Section ==================== */
.contact-section {
    position: relative;
    width: 100%;
    max-width: 100vw;
    padding: 4rem 0 6rem 0;
    background: #EDE4F0;
    overflow: visible;
    z-index: 10;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: #EDE4F0;
    clip-path: polygon(
        0% 100%,
        2% 30%, 4% 20%, 6% 30%, 8% 50%, 10% 70%, 12% 80%, 14% 70%,
        16% 50%, 18% 30%, 20% 20%, 22% 30%, 24% 50%, 26% 70%, 28% 80%, 30% 70%,
        32% 50%, 34% 30%, 36% 20%, 38% 30%, 40% 50%, 42% 70%, 44% 80%, 46% 70%,
        48% 50%, 50% 30%, 52% 20%, 54% 30%, 56% 50%, 58% 70%, 60% 80%, 62% 70%,
        64% 50%, 66% 30%, 68% 20%, 70% 30%, 72% 50%, 74% 70%, 76% 80%, 78% 70%,
        80% 50%, 82% 30%, 84% 20%, 86% 30%, 88% 50%, 90% 70%, 92% 80%, 94% 70%,
        96% 50%, 98% 30%, 100% 20%,
        100% 100%
    );
    z-index: 10;
}

.contact-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-section .section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.contact-notice {
    max-width: 640px;
    margin: 0 auto 1.5rem auto;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1.5px dashed #C9A0CE;
    border-radius: 16px;
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.9;
    text-align: left;
}

.contact-form {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-required {
    color: #e57373;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #E0BBE4;
    border-radius: 12px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: #FDFAFF;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(255, 183, 197, 0.3);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #C4B0D0;
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-contact-submit {
    display: inline-block;
    padding: 0.9rem 3rem;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-lavender));
    color: var(--text-white);
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.btn-contact-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-contact-back {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--bg-white);
    color: var(--text-dark);
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border: 2px solid #E0BBE4;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-left: 1rem;
}

.btn-contact-back:hover {
    background: #F5EEF8;
    transform: translateY(-2px);
}

.contact-alert {
    max-width: 640px;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    white-space: pre-line;
}

.contact-alert-error {
    background: #FFE5E5;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

/* ==================== Confirm Page ==================== */
.contact-confirm-section,
.contact-thanks-section {
    min-height: 70vh;
    padding: 5rem 1rem 4rem 1rem;
    background: linear-gradient(180deg, #FFE5EC 0%, #EDE4F0 50%, #D4F1F4 100%);
}

.contact-confirm-section .section-title,
.contact-thanks-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    opacity: 1;
    transform: none;
}

.contact-confirm-section .section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
    opacity: 1;
    transform: none;
}

.confirm-card,
.thanks-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.confirm-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.confirm-table th,
.confirm-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #F0E6F6;
    vertical-align: top;
}

.confirm-table th {
    width: 140px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.confirm-table td {
    color: var(--text-dark);
    word-break: break-all;
}

.confirm-actions {
    text-align: center;
    margin-top: 1.5rem;
}

/* ==================== Thanks Page ==================== */
.thanks-card {
    text-align: center;
}

.thanks-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #B8E0D2, #D4F1F4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
}

.thanks-message {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ==================== Contact Responsive ==================== */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 0 4rem 0;
    }

    .contact-section .section-title {
        font-size: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .contact-confirm-section,
    .contact-thanks-section {
        padding: 4.5rem 0.75rem 3rem 0.75rem;
    }

    .contact-confirm-section .section-title,
    .contact-thanks-section .section-title {
        font-size: 1.8rem;
    }

    .contact-confirm-section .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .confirm-card,
    .thanks-card {
        padding: 1.5rem;
        max-width: 100%;
    }

    .confirm-table,
    .confirm-table tbody,
    .confirm-table tr,
    .confirm-table th,
    .confirm-table td {
        display: block;
        width: 100%;
    }

    .confirm-table tr {
        margin-bottom: 1rem;
        border-bottom: 1px solid #F0E6F6;
        padding-bottom: 0.5rem;
    }

    .confirm-table th {
        width: auto;
        padding: 0.25rem 0;
        border-bottom: none;
        font-size: 0.8rem;
    }

    .confirm-table td {
        padding: 0.25rem 0 0.5rem 0;
        border-bottom: none;
    }

    .confirm-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .btn-contact-submit {
        width: 100%;
        text-align: center;
    }

    .btn-contact-back {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .thanks-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }

    .thanks-icon svg {
        width: 48px;
        height: 48px;
    }

    .thanks-message {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1.25rem;
        margin: 0 0.5rem;
    }

    .form-input,
    .form-textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .contact-confirm-section,
    .contact-thanks-section {
        padding: 4rem 0.5rem 2rem 0.5rem;
    }

    .contact-confirm-section .section-title,
    .contact-thanks-section .section-title {
        font-size: 1.5rem;
    }

    .confirm-card,
    .thanks-card {
        padding: 1.25rem;
    }

    .thanks-icon {
        width: 64px;
        height: 64px;
    }

    .thanks-icon svg {
        width: 36px;
        height: 36px;
    }
}

/* ==================== Scroll to Top Button ==================== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-lavender));
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(255, 183, 197, 0.5);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

/* ==================== Footer ==================== */
.footer {
    position: relative;
    background: #D4A5C4;
    color: var(--text-dark);
    padding: 2rem 0;
    text-align: center;
    overflow: hidden;
}

.footer .container {
    position: relative;
    z-index: 10;
}

/* ==================== Modal ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    animation: modalZoom 0.3s ease;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

@keyframes modalZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    flex-shrink: 1;
    object-fit: contain;
    min-height: 0;
    display: block;
}

.modal-caption {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    text-align: center;
    flex-shrink: 0;
    height: 25vh;
    overflow-y: auto;
}

.modal-caption h2 {
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.modal-caption p {
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
}

#modalDesc {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
    text-align: left;
}

#modalTags {
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
}

#modalDate {
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
    text-align: left;
}

/* Hashtag Links */
.hashtag-link {
    color: var(--primary-pink);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

.hashtag-link:hover {
    color: var(--primary-lavender);
    background: rgba(255, 182, 193, 0.1);
    transform: translateY(-1px);
}

.hashtag-link:active {
    transform: translateY(0);
}

/* Illustration ID Links (@id) */
.illustration-link {
    color: var(--primary-lavender);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    background: rgba(156, 136, 255, 0.1);
}

.illustration-link:hover {
    color: var(--primary-pink);
    background: rgba(255, 182, 193, 0.2);
    transform: translateY(-1px);
    text-decoration: underline;
}

.illustration-link:active {
    transform: translateY(0);
}

.btn-show-original {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-lavender));
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Zen Maru Gothic', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.35);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-show-original::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-show-original::after {
    content: '↗';
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.btn-show-original:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.45);
}

.btn-show-original:hover::before {
    left: 100%;
}

.btn-show-original:hover::after {
    transform: scale(1.15);
}

.btn-show-original:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 3px 12px rgba(255, 182, 193, 0.35);
}


.filter-count {
    font-size: 0.9rem;
    opacity: 0.7;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--text-dark);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--primary-pink);
    transform: scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(90, 74, 106, 0.8);
    color: var(--text-white);
    border: 2px solid var(--primary-pink);
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 10px;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.modal-nav:hover {
    background: var(--primary-pink);
    border-color: var(--primary-lavender);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

@media (max-width: 1200px) {

    .hero-frame {
    width: 42%;
   }

}

/* ==================== Responsive Design ==================== */
@media (max-width: 968px) {


    .about-section {
        overflow: visible;
        -webkit-overflow-scrolling: auto;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        overflow: visible;
    }

    .about-avatar {
        order: -1;
    }

    /* プロフィール画像サイズ - 中画面 */
    .about-avatar img {
        width: 50vw !important;
        max-width: 400px;
    }

    .avatar-placeholder {
        width: 50vw;
        height: 50vw;
        max-width: 400px;
        max-height: 400px;
    }

    /* ギャラリーが2列になる場合は6枚表示 */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    /* index.phpで7枚目以降を非表示 */
    body.index-page .gallery-grid .gallery-item:nth-child(n+7) {
        display: none;
    }

        /* Hero Gallery Responsive */
    .hero-gallery {
        height: 60%;
    }

    .hero-frame {
        width: 90%;
    }

    /* タブレット・スマホでは中央の画像のみ表示 */
    .hero-frame.position-left,
    .hero-frame.position-right {
        display: none;
    }

    .hero-frame.position-center {
        transform: translateX(-50%) scale(1);
    }

    .frame-inner {
        padding: 1rem;
    }

    .hero-nav-dots {
        bottom: 2rem;
        padding: 1rem 1rem;
        gap: 0.7rem;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }

    /* Hero画像1枚表示時の上下余白を狭く */
    .hero {
        height: 80vh;
        min-height: 60vh;
    }

    /* 画像の高さを調整（デスクトップと同じ70%を維持） */
    .hero-gallery {
        height: 70%;
    }

    /* ギャラリーアイテム - いいねボタンを常に右下に表示 */
    .gallery-overlay {
        position: absolute;
        top: auto;
        bottom: 0;
        right: 0;
        left: auto;
        background: none;
        padding: 0.8rem;
        transform: translateY(0);
        width: auto;
    }

    .gallery-item-title,
    .gallery-item-date,
    .gallery-item-desc {
        display: none;
    }

    .like-btn {
        margin-bottom: 0 !important;
        padding: 0.35rem 0.7rem !important;
        font-size: 0.75rem !important;
        border-radius: 18px !important;
        gap: 0.45rem !important;
    }

    .like-icon {
        font-size: 0.9rem !important;
    }

}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .about-section {
        overflow: visible;
        -webkit-overflow-scrolling: auto;
    }

    .about-content {
        overflow: visible;
    }

    .about-text {
        padding: 2rem;
        max-width: 100%;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-caption {
    height: 40vh;
    }

    .nav {
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .title-logo {
        max-width: 80vw;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* index.phpで7枚目以降を非表示 */
    body.index-page .gallery-grid .gallery-item:nth-child(n+7) {
        display: none;
    }

    /* プロフィール画像サイズ - タブレット */
    .about-avatar img {
        width: 60vw !important;
        max-width: 350px;
    }

    .avatar-placeholder {
        width: 60vw;
        height: 60vw;
        max-width: 350px;
        max-height: 350px;
    }

    .modal-nav {
        padding: 0.5rem 1rem;
        font-size: 1.5rem;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    /* ギャラリーのホバーエフェクトを無効化 */
    .gallery-item-inner:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }


}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .about-section {
        overflow: visible;
        -webkit-overflow-scrolling: auto;
    }

    .about-content {
        overflow: visible;
    }

    .about-text {
        padding: 1.5rem;
        max-width: 100%;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* index.phpで7枚目以降を非表示 */
    body.index-page .gallery-grid .gallery-item:nth-child(n+7) {
        display: none;
    }

    /* プロフィール画像サイズ - スマホ */
    .about-avatar img {
        width: 80vw !important;
        max-width: 300px;
    }

    .avatar-placeholder {
        width: 80vw;
        height: 80vw;
        max-width: 300px;
        max-height: 300px;
    }

    .filter-tabs {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }

    .link-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .link-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 1.5rem;
        text-align: left;
        gap: 1rem;
    }

    .link-icon {
        width: 50px;
        height: 50px;
        margin: 0;
        flex-shrink: 0;
    }

    .link-card h2 {
        font-size: 1.1rem;
        margin-bottom: 0;
        margin-right: 0.5rem;
    }

    .link-card p {
        font-size: 0.9rem;
        margin: 0;
    }

    /* ギャラリーのホバーエフェクトを無効化 */
    .gallery-item-inner:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }

    .hero-frame {
        width: 95%;
    }

    /* スマホでは中央の画像のみ表示 */
    .hero-frame.position-left,
    .hero-frame.position-right {
        display: none;
    }

    .hero-frame.position-center {
        transform: translateX(-50%) scale(1);
    }

    .frame-inner {
        padding: 0.75rem;
    }

    .hero-nav-dots {
        bottom: 0.5rem;
        padding: 0.8rem 0.8rem;
        gap: 0.5rem;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
    }

    /* Hero画像1枚表示時の上下余白をさらに狭く */
    .hero {
        height: 30rem;
        min-height: 30rem;
    }

    /* 画像の高さを調整 */
    .hero-gallery {
        height: 80%;
    }
}

/* ==================== Like Button ==================== */
.like-btn {
    position: relative;
    bottom: auto;
    right: auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 250, 0.98));
    border: 2px solid var(--primary-pink);
    border-radius: 30px;
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(255, 183, 197, 0.3),
                0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 10;
    order: 1;
    align-self: flex-start;
    margin-bottom: 1rem;
}

.like-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 183, 197, 0.5),
                0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 240, 245, 1));
    border-color: #FF9AB3;
}

.like-btn:active {
    transform: translateY(0) scale(0.98);
}

.like-icon {
    font-size: 1.3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.like-btn:not(.liked) .like-icon {
    filter: grayscale(100%);
    opacity: 0.4;
}

.like-btn.liked {
    background: linear-gradient(135deg, var(--primary-pink), #FF9AB3);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(255, 183, 197, 0.6),
                0 2px 8px rgba(255, 154, 179, 0.4),
                inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.like-btn.liked:hover {
    background: linear-gradient(135deg, #FF9AB3, #FF7A93);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 24px rgba(255, 183, 197, 0.7),
                0 4px 12px rgba(255, 154, 179, 0.5);
}

.like-btn.liked .like-icon {
    filter: none;
    opacity: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.like-count {
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* いいねアニメーション */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.3);
    }
    30% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.2);
    }
    60% {
        transform: scale(1);
    }
}

@keyframes sparkle {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

.like-btn.pulse {
    animation: heartBeat 0.8s ease;
}

.like-btn.pulse .like-icon {
    animation: sparkle 0.8s ease;
}

/* いいねボタンのキラキラエフェクト */
.like-btn.liked::before {
    content: '✨';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 1rem;
    animation: sparkle 2s infinite ease-in-out;
    pointer-events: none;
}

/* ==================== 降るピンクの●エフェクト ==================== */
.falling-circle {
    position: absolute;
    top: -200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 183, 197, 0.6) 0%, rgba(255, 183, 197, 0.3) 50%, rgba(255, 183, 197, 0) 100%);
    filter: blur(8px);
    pointer-events: none;
    animation: fall linear infinite;
    z-index: 1;
}

@keyframes fall {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(calc(100vh + 200px)) translateX(var(--drift));
        opacity: 0;
    }
}

/* ==================== Pagination ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination-btn,
.pagination-num {
    padding: 0.6rem 1rem;
    border: 2px solid var(--primary-lavender);
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1rem;
    min-width: 44px;
}

.pagination-btn:hover:not(:disabled),
.pagination-num:hover:not(:disabled) {
    background: var(--primary-lavender);
    color: var(--text-white);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-num.active {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-lavender));
    color: var(--text-white);
    border-color: transparent;
    font-weight: 700;
}

.pagination-info {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
