/* Custom CSS for 思い出広場 */

/* ヒーローセクション */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 4rem 2rem;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title-wrapper {
    text-align: center;
    margin-bottom: 1.5rem;
}

.hero-title-line1 {
    font-size: 3.8rem;
    font-family: 'RocknRoll One', 'Yusei Magic', cursive;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    margin: 0;
    margin-bottom: 0.8rem;
    animation: slideDown 0.8s ease-out;
    letter-spacing: 0.08em;
    font-weight: normal;
    transform: rotate(-1deg);
    line-height: 1.2;
    display: block;
}

.hero-title-line2 {
    font-size: 3.2rem;
    font-family: 'RocknRoll One', 'Yusei Magic', cursive;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    margin: 0;
    animation: slideDown 0.8s ease-out 0.2s both;
    letter-spacing: 0.06em;
    font-weight: normal;
    transform: rotate(0.5deg);
    line-height: 1.2;
    display: block;
}

.hero-subtitle {
    font-size: 1.6rem;
    font-family: 'Klee One', 'Zen Kurenaido', cursive;
    color: #fff;
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease-out 0.2s both;
    font-weight: 600;
    letter-spacing: 0.03em;
}

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

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

.hero-decoration {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1;
}

.renewal-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #ffd700 100%);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-family: 'Yusei Magic', cursive;
    font-weight: normal;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    animation: pulse 2s infinite;
    border: 2px solid #fff;
    letter-spacing: 0.04em;
    transform: rotate(3deg);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(255,107,53,0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
}

/* アバウトセクション */
.about-section {
    padding: 4rem 0;
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.9;
    font-family: 'Klee One', cursive;
    letter-spacing: 0.03em;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-family: 'Yusei Magic', cursive;
    font-size: 1.4rem;
    transform: rotate(-0.5deg);
}

/* 商品セクション */
.featured-products {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

/* 最新のお知らせセクション */
.recent-posts {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 3px solid var(--accent-color);
}

.recent-posts h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Yusei Magic', cursive;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.posts-grid .retro-card {
    padding: 1.5rem;
}

.posts-grid h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-family: 'Zen Kurenaido', cursive;
}

.posts-grid h4 a {
    color: var(--primary-color);
}

.posts-grid .entry-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.posts-grid .read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.product-card img,
.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-family: 'Zen Kurenaido', 'Klee One', cursive;
    letter-spacing: 0.02em;
}

.product-title a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--secondary-color);
}

.price-tag {
    display: inline-block;
    background-color: var(--retro-red);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.3rem;
    margin-top: 0.5rem;
}

.view-all {
    text-align: center;
    margin-top: 3rem;
}

/* カテゴリーセクション */
.categories-section {
    padding: 4rem 0;
    background-color: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    display: block;
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.category-card:hover {
    transform: translateY(-5px);
    background-color: var(--bg-color);
    text-decoration: none;
}

.category-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'RocknRoll One', cursive;
    font-size: 1.5rem;
    transform: rotate(0.5deg);
}

/* アクセスセクション */
.access-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.access-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.access-info dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.access-info dt {
    font-weight: bold;
    color: var(--primary-color);
}

.map-container {
    padding: 0;
    overflow: hidden;
}

.map-container iframe {
    display: block;
    border-radius: 10px;
}

/* お問い合わせセクション */
.contact-section {
    padding: 4rem 0;
    background-color: #fff;
}

.contact-content {
    margin-top: 2rem;
    padding: 3rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method {
    text-align: center;
}

.contact-number {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: bold;
    margin: 1rem 0;
}

/* 単一商品ページ */
.single-product {
    margin: 2rem 0;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-gallery {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.product-main-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.product-gallery-thumbs img {
    width: 100%;
    height: auto;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.product-gallery-thumbs img:hover {
    border-color: var(--secondary-color);
}

.product-details {
    padding: 0;
}

.product-header {
    margin-bottom: 2rem;
}

.product-name {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-categories,
.product-eras {
    margin: 1rem 0;
}

.era-tag {
    display: inline-block;
    margin-right: 0.5rem;
    color: var(--retro-blue);
    font-style: italic;
}

.product-meta {
    padding: 2rem;
    margin-bottom: 2rem;
}

.product-price-section,
.product-status-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.price-label,
.status-label {
    font-weight: bold;
    color: var(--text-color);
}

.product-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.product-contact p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.product-contact .retro-button {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.product-description {
    margin-top: 2rem;
}

.description-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 関連商品 */
.related-products {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 3px solid var(--accent-color);
}

/* アーカイブページ */
.product-filters {
    padding: 2rem;
    margin-bottom: 2rem;
}

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

.filter-group label {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f0f0f0;
    border-radius: 20px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.filter-link:hover {
    background-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
}

.filter-link.active {
    background-color: var(--primary-color);
    color: #fff;
}

.filter-link span {
    font-size: 0.9em;
    opacity: 0.7;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.result-count {
    color: var(--text-color);
    font-size: 1.1rem;
}

.sold-out-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background-color: rgba(220, 20, 60, 0.9);
    color: #fff;
    padding: 0.5rem 2rem;
    font-weight: bold;
    font-size: 1.5rem;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.product-image {
    position: relative;
    display: block;
    overflow: hidden;
}

.view-detail {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.view-detail:hover {
    color: var(--primary-color);
}

/* フッターウィジェット */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-widget-area {
    color: #fff;
}

.footer-widget-area .widget-title {
    color: var(--accent-color);
    border-left-color: #fff;
}

.footer-widget-area a {
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-widget-area a:hover {
    opacity: 1;
}

/* フッター情報 */
.site-info {
    padding: 2rem 0;
}

.shop-info {
    text-align: center;
    margin-bottom: 2rem;
}

.shop-info h3 {
    color: var(--accent-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-family: 'RocknRoll One', 'Yusei Magic', cursive;
    letter-spacing: 0.08em;
    transform: rotate(-1deg);
}

.shop-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-navigation {
    margin: 2rem 0;
}

.footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-menu a {
    color: #fff;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--accent-color);
}

/* ページネーション */
.pagination {
    margin: 3rem 0;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 0.5rem;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

.pagination .current {
    background-color: var(--primary-color);
    color: #fff;
}

/* モバイルメニュー */
.menu-toggle {
    display: none;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .product-container {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-title-line1 {
        font-size: 2.4rem;
        transform: rotate(-0.5deg);
        margin-bottom: 0.6rem;
    }

    .hero-title-line2 {
        font-size: 2rem;
        transform: rotate(0.3deg);
    }

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

    .renewal-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
        top: 10px;
        right: 10px;
        transform: rotate(2deg);
    }

    .menu-toggle {
        display: block;
        margin: 0 auto;
    }

    .main-navigation ul {
        display: none;
        width: 100%;
    }

    .main-navigation ul.toggled {
        display: block;
    }

    .main-navigation li {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title-line1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .hero-title-line2 {
        font-size: 1.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}