/* 基本スタイル */
@import url('https://fonts.googleapis.com/css2?family=Klee+One:wght@400;600&family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

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

body {
    font-family: 'Zen Maru Gothic', "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", sans-serif;
    line-height: 1.8;
    color: #3d2914;
    background-color: #fef8f0;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible; /* 縦方向のオーバーフローを許可 */
    background-image: 
        radial-gradient(ellipse at top left, rgba(255, 223, 186, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(255, 192, 203, 0.2) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(139, 69, 19, 0.02) 10px,
            rgba(139, 69, 19, 0.02) 20px
        );
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5' /%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23paper)' opacity='0.02'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    overflow: visible; /* オーバーフローを許可 */
}

/* 桜のアニメーション */
.sakura {
    position: fixed;
    top: -10px;
    z-index: 999;
    animation: fall 10s linear infinite;
    pointer-events: none;
}

.sakura span {
    display: inline-block;
    width: 13px;
    height: 13px;
    background: radial-gradient(circle, #ffb7c5 0%, #ffc0d0 50%, transparent 70%);
    border-radius: 150% 0 150% 0;
    transform: rotate(-45deg);
    animation: rotate 6s linear infinite;
    box-shadow: 0 0 6px rgba(255, 183, 197, 0.6);
}

@media (max-width: 768px) {
    .sakura {
        display: none;
    }
}

@keyframes fall {
    to {
        transform: translateY(calc(100vh + 10px));
    }
}

@keyframes rotate {
    to {
        transform: rotate(-45deg) rotateY(360deg);
    }
}

/* ヘッダー */
header {
    background: linear-gradient(135deg, #1a4d2e 0%, #2d5a3d 50%, #3a6b4e 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: headerPattern 60s linear infinite;
}

@keyframes headerPattern {
    to { transform: translate(50px, 50px); }
}

header h1 {
    font-family: 'Klee One', serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.3);
    letter-spacing: 0.05em;
    position: relative;
}

header .subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    font-family: 'Klee One', serif;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* お知らせ欄 */
.notice {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.notice h2 {
    text-align: center;
    color: #3d2914;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.notice-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.notice-image-item {
    max-width: 400px;
    flex: 1 1 400px;
    min-width: 280px;
}

.notice-image-item img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

/* スマートフォン用の調整 */
@media (max-width: 768px) {
    .notice {
        padding: 1.5rem 0;
    }
    
    .notice h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .notice-images {
        gap: 1rem;
    }
    
    .notice-image-item {
        max-width: 300px;
        flex: 1 1 100%;
        min-width: auto;
    }
    
    .notice-image-item img {
        max-height: 200px;
    }
}


.notice-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notice-icon {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notice-text {
    flex: 1;
}

.notice-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notice-badge {
    background: rgba(255,255,255,0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: normal;
}

.notice-description {
    line-height: 1.7;
    font-size: 1rem;
}

.notice-highlight {
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: bold;
}

/* 更新情報 */
.updates {
    background: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
    min-height: auto;
    overflow: visible;
}

.updates-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.updates-header h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.updates-badge {
    background: #ff6b6b;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.updates-list {
    /* 高さ制限を削除してすべて表示 */
    min-height: auto;
    overflow: visible;
}

.update-item {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    min-height: auto;
    overflow: visible;
}

.update-item:last-child {
    border-bottom: none;
    margin-bottom: 1rem; /* 最後の項目に余白を追加 */
}

.update-date {
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.update-content {
    color: #333;
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.update-content a {
    color: #2c5aa0;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.update-content a:hover {
    border-bottom-color: #2c5aa0;
}

/* すべて表示ボタンを削除 */

/* ナビゲーション */
nav {
    background: linear-gradient(to bottom, #4a3426 0%, #3d2914 100%);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #8b4513;
}

@media (min-width: 769px) {
    nav {
        position: sticky;
        top: 0;
    }
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    font-family: 'Klee One', serif;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #ffd700;
    transition: width 0.3s ease;
}

nav a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #ffd700;
}

nav a:hover::before {
    width: 100%;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ヒーローセクション */
.hero {
    background: 
        linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="%235a7a5a"/><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    color: white;
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 100"><path d="M0,50 Q300,20 600,50 T1200,50 L1200,100 L0,100 Z" fill="%23fef8f0"/></svg>');
    background-size: cover;
}

.hero-content h2 {
    font-family: 'Klee One', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.6), 0 0 30px rgba(255,255,255,0.3);
    font-weight: 600;
    letter-spacing: 0.08em;
    animation: fadeInUp 1s ease-out;
    color: #ffffff;
}

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

.hero-content p {
    font-size: 1.4rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
    font-family: 'Klee One', serif;
    letter-spacing: 0.05em;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-image {
    margin-top: 2rem;
}

.hero-slideshow {
    position: relative;
    width: 100%;
    padding-bottom: 60%; /* アスペクト比を維持 */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.4),
        0 0 0 5px rgba(255,255,255,0.2),
        0 0 0 10px rgba(255,255,255,0.1);
    border: 3px solid rgba(255,255,255,0.5);
}

.hero-slideshow .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-image .hero-slideshow .hero-slide.active {
    opacity: 1 !important;
    z-index: 2;
    display: block !important;
}

.hero-slideshow .hero-slide:first-child {
    opacity: 1;
}

.hero-slideshow .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* セクション共通 */
section {
    padding: 4rem 0;
    margin-bottom: 2rem;
    position: relative;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a4d2e;
    position: relative;
    font-family: 'Klee One', serif;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.school-song h2 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

section h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, transparent, #d2691e, #ff6b6b, #d2691e, transparent);
    margin: 1.5rem auto;
    border-radius: 2px;
}

section h2:before {
    content: '\2756';
    position: absolute;
    left: 50%;
    bottom: -40px;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: #d2691e;
    opacity: 0.3;
}

.school-song h2:after {
    display: none;
}

.archive h2 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.archive h2:after {
    display: none;
}

/* 学校紹介 */
.about {
    background: 
        linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,248,240,0.95)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23fef8f0"/><circle cx="50" cy="50" r="40" fill="none" stroke="%23f5deb3" stroke-width="0.5" opacity="0.3"/></svg>');
    background-size: 100%, 200px 200px;
    border-radius: 20px;
    box-shadow: 
        0 8px 30px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.5);
    border: 1px solid rgba(139,69,19,0.1);
    overflow: hidden;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.school-info h3 {
    color: #1a4d2e;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    font-family: 'Klee One', serif;
    font-weight: 600;
    border-bottom: 2px dotted #d2691e;
    padding-bottom: 0.5rem;
}

.school-info dl {
    margin-bottom: 2rem;
}

.school-info dt {
    font-weight: bold;
    color: #8b4513;
    margin-top: 1rem;
    font-size: 1.1rem;
    position: relative;
    padding-left: 1.5rem;
}

.school-info dt::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #d2691e;
}

.school-info dd {
    margin-left: 1rem;
    padding: 0.5rem 0;
}

.school-images {
    display: grid;
    gap: 1rem;
}

.school-images img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 
        0 5px 20px rgba(0,0,0,0.15),
        0 0 0 1px rgba(139,69,19,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid #fff;
}

.school-images img:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.2),
        0 0 0 1px rgba(139,69,19,0.2);
}

/* 校歌セクション */
.school-song {
    background: 
        linear-gradient(135deg, rgba(26,77,46,0.9) 0%, rgba(61,41,20,0.9) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="notes" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><text x="10" y="20" font-family="serif" font-size="20" fill="rgba(255,255,255,0.1)">♪</text></pattern></defs><rect width="200" height="200" fill="url(%23notes)"/></svg>');
    color: white;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.song-content {
    text-align: center;
}

.song-credits {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    font-family: 'Klee One', serif;
    font-size: 1.1rem;
    color: #ffffff;
}

.credit-item {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(3px);
    color: #ffffff;
}

.song-lyrics {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.verse {
    background: rgba(255,255,255,0.1);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    min-width: 280px;
    flex: 1;
    max-width: 350px;
}

.verse p {
    font-family: 'Klee One', serif;
    font-size: 1.1rem;
    line-height: 2;
    color: #ffffff;
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
}

.verse p:last-child {
    margin-top: 0.8rem;
    font-weight: 600;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .song-credits {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .song-lyrics {
        flex-direction: column;
        align-items: center;
    }
    
    .verse {
        max-width: 100%;
    }
}

/* メッセージセクション */
.messages {
    background: 
        linear-gradient(to bottom, rgba(255,255,255,0.98), rgba(254,248,240,0.98)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="transparent"/><path d="M10,50 Q30,30 50,50 T90,50" stroke="%23f5deb3" stroke-width="0.5" fill="none" opacity="0.2"/></svg>');
    background-size: 100%, 150px 150px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
}

.google-form-container {
    text-align: center;
    padding: 2rem;
}

.google-form-container iframe {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 3px solid rgba(210,105,30,0.1);
}

@media (max-width: 768px) {
    .google-form-container iframe {
        width: 100%;
        height: 600px;
    }
}

.message-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

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

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.message-name {
    font-weight: bold;
    color: #2c5aa0;
}

.message-year {
    color: #666;
    font-size: 0.9rem;
}

.message-content {
    color: #333;
    line-height: 1.8;
}

/* 写真募集セクション */
.photo-collection {
    background: linear-gradient(135deg, #f0f8ff 0%, #fff8f0 100%);
    padding: 2rem 0;
    margin: 1rem 0;
}

.photo-collection h2 {
    text-align: center;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    position: relative;
}

/* 📷絵文字を削除 */

.photo-collection-intro {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0 20px;
}

.photo-collection-intro p {
    line-height: 1.8;
    color: #333;
    margin-bottom: 0.5rem;
}

.deadline-notice {
    color: #d9534f;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* 歴史セクション */
.history {
    background: 
        linear-gradient(to right, rgba(255,255,255,0.95), rgba(254,248,240,0.95)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="vintage" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="20" fill="none" stroke="%23f5deb3" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="200" height="200" fill="url(%23vintage)"/></svg>');
    background-size: 100%, 200px 200px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    position: relative;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #d2691e, #cd853f, #d2691e);
    box-shadow: 0 0 10px rgba(210,105,30,0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fffaf5 0%, #fef8f0 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-left: 2rem;
    border: 1px solid rgba(210,105,30,0.1);
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #d2691e;
    box-shadow: 0 0 0 3px #fef8f0, 0 0 15px rgba(210,105,30,0.4);
}

.timeline-year {
    color: #1a4d2e;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Klee One', serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.timeline-content h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.history-note {
    margin-top: 2rem;
    padding: 1rem;
    background: #e9ecef;
    border-radius: 4px;
    font-style: italic;
    text-align: center;
}

/* アーカイブセクション */
.archive {
    background: 
        linear-gradient(135deg, rgba(61,41,20,0.95) 0%, rgba(26,77,46,0.95) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="books" x="0" y="0" width="40" height="60" patternUnits="userSpaceOnUse"><rect x="5" y="5" width="30" height="50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/><line x1="5" y1="15" x2="35" y2="15" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="200" height="200" fill="url(%23books)"/></svg>');
    color: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.archive-list {
    text-align: center;
    padding: 2rem;
    font-size: 1rem;
    font-family: 'Klee One', serif;
}

/* ギャラリー */
.gallery {
    background: 
        linear-gradient(to bottom, rgba(255,255,255,0.98), rgba(254,248,240,0.98)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="transparent"/><rect x="10" y="10" width="30" height="30" fill="none" stroke="%23f5deb3" stroke-width="0.5" opacity="0.1"/><rect x="60" y="60" width="30" height="30" fill="none" stroke="%23f5deb3" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 100%, 100px 100px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    position: relative;
}

.gallery-description {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.memories-preview {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.memory-preview-card {
    background: #f9f7f4;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.memory-preview-card h3 {
    color: #7eb88d;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-family: 'Klee One', cursive;
}

.memory-preview-card p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.memory-author {
    color: #888;
    font-size: 0.95rem;
    font-style: italic;
}

.view-all-memories {
    text-align: center;
}

.view-memories-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #7eb88d;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-memories-btn:hover {
    background-color: #6ca47b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(126, 184, 141, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* インスタグラムセクション */
.instagram-feed {
    padding: 60px 0;
    background: #fff;
}

.instagram-feed h2 {
    text-align: center;
    color: #3d2914;
    margin-bottom: 30px;
    font-size: 2rem;
}

.instagram-feed h2 small {
    display: block;
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
    font-weight: normal;
}

.instagram-embed {
    max-width: 1200px;
    margin: 0 auto 30px;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
}

.instagram-manual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.instagram-post {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    background: #ddd;
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.instagram-post:hover img {
    transform: scale(1.05);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.instagram-post:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.instagram-cta {
    text-align: center;
}

.instagram-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.instagram-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.instagram-hashtag {
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
}

/* Instagramフォローセクション */
.instagram-follow {
    padding: 40px 0;
    background: #f9f9f9;
}

.instagram-follow-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.instagram-follow-box h3 {
    color: #3d2914;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.instagram-follow-box p {
    color: #666;
    margin-bottom: 20px;
}

/* フッター */
footer {
    background: linear-gradient(to bottom, #3d2914 0%, #2a1f10 100%);
    color: #fef8f0;
    text-align: center;
    padding: 3rem 0;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, #d2691e, #ffd700, #d2691e, transparent);
}

footer p {
    font-family: 'Klee One', serif;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.footer-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    transform: scale(1.1);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        word-break: keep-all;
        overflow-wrap: break-word;
        white-space: nowrap;
    }

    .notice-title {
        font-size: 1.1rem;
        line-height: 1.4;
        word-break: keep-all;
    }

    .notice-description {
        font-size: 0.9rem;
        line-height: 1.6;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .mobile-break::before {
        content: '\A';
        white-space: pre;
    }

    .hero-content h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        word-break: keep-all;
        overflow-wrap: break-word;
        white-space: nowrap;
    }

    .hero-content p {
        font-size: 1.1rem;
        line-height: 1.6;
        word-break: keep-all;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    nav {
        position: static !important;
    }

    nav .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 20px;
    }

    .hamburger {
        display: flex;
    }

    nav ul {
        display: none;
        position: static;
        width: 100%;
        background: linear-gradient(to bottom, #4a3426 0%, #3d2914 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        margin: 0.5rem 0;
        width: 80%;
    }

    nav a {
        text-align: center;
        padding: 1rem;
        font-size: 1.1rem;
        display: block;
        width: 100%;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    nav a:hover {
        background: rgba(255,255,255,0.1);
        transform: translateY(0);
    }

    nav a::before {
        display: none;
    }

    .notice-content {
        flex-direction: column;
        text-align: center;
        padding: 0 0.5rem;
    }

    .notice-title {
        justify-content: center;
    }

    .notice-images {
        gap: 1rem;
        padding: 0 1rem;
    }

    .notice-image-item {
        min-width: 250px;
        max-width: 350px;
    }
    
    .notice-image-item img {
        max-height: 250px;
    }

    .updates-header {
        justify-content: center;
    }

    .updates {
        padding: 1.5rem 0;
        min-height: auto;
        overflow: visible;
    }
    
    .updates .container {
        padding: 0 15px;
    }
    
    .updates-list {
        min-height: 300px; /* モバイルで十分な高さを確保 */
        overflow: visible;
        padding-bottom: 2rem;
        display: flex;
        flex-direction: column;
    }
    
    .update-item {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        padding: 1rem 0;
        min-height: 80px; /* 最小高さをさらに確保 */
        overflow: visible;
        margin-bottom: 0.5rem;
    }

    .update-date {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }
    
    .update-content {
        width: 100%;
        word-break: break-word;
        overflow-wrap: anywhere;
        line-height: 1.6;
        padding-right: 10px; /* 右側に余白を追加 */
        display: block;
    }
    
    .update-content a {
        display: inline;
        word-break: break-word;
        font-size: 0.9rem; /* モバイルでのフォントサイズ調整 */
    }
    
    /* 更新情報セクション全体の調整 */
    section.updates {
        min-height: auto;
        height: auto;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        margin-left: 1rem;
    }

    .timeline-item::before {
        left: -2rem;
    }
    
    /* モバイルでも📷絵文字を削除 */
    
    .photo-collection-intro {
        padding: 0 15px;
    }
    
    .deadline-notice {
        font-size: 1rem;
    }
}