/* カスタムフォントの定義 */
@font-face {
    font-family: 'KouzanMouhitu';
    src: url('fonts/KouzanMouhituFontOTF.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #000000;
    overflow-x: hidden;
    background-color: #ffffff;
}

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

/* ナビゲーションバー */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #000000;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'KouzanMouhitu', 'Noto Serif JP', serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #000;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.3s ease;
}

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

.shop-link {
    background: #000000;
    color: white !important;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.shop-link:hover {
    background: #000;
    transform: translateY(-2px);
}

.shop-link::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #000000;
    margin: 3px 0;
    transition: 0.3s;
}

/* ハンバーガーメニューのアニメーション */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* モバイルメニュー */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }
}

/* ヘッダー/ヒーローセクション */
.hero {
    background: url('images/tikurin.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    margin-top: 70px; /* ナビゲーションバーの高さ分 */
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    font-family: 'KouzanMouhitu', 'Noto Serif JP', serif;
    letter-spacing: 0.15em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    opacity: 0.95;
    letter-spacing: 0.05em;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    font-weight: 300;
    line-height: 1.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

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

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-primary {
    background: #000000;
    color: white;
    border-color: #000000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #000;
    border-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* セクション共通スタイル */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #000000;
    font-weight: 700;
    font-family: 'KouzanMouhitu', 'Noto Serif JP', serif;
    letter-spacing: 0.1em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #000000;
    border-radius: 2px;
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: #333333;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-weight: 300;
}

/* テレビ紹介セクション */
.media-featured {
    background: #ffffff;
    padding: 100px 0;
}

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

.media-item {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #000000;
}

.media-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.media-icon {
    width: 80px;
    height: 80px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
}

.media-item h3 {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.media-item p {
    color: #333333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* 職人のこだわりセクション */
.craftsmanship {
    background: white;
    padding: 100px 0;
}

.craftsmanship-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.craftsmanship-text h3 {
    font-size: 1.8rem;
    color: #000000;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.craftsmanship-text p {
    font-size: 1.1rem;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.craftsmanship-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

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

.quality-item {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    border-left: 4px solid #000000;
}

.quality-item:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.quality-icon {
    width: 60px;
    height: 60px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.quality-item h4 {
    font-size: 1.3rem;
    color: #000000;
    margin-bottom: 1rem;
    font-weight: 600;
}

.quality-item p {
    color: #333333;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 農園紹介セクション */
.about {
    background: #ffffff;
    padding: 100px 0;
}

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

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #000000;
}

.features {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid #000000;
}

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

.feature i {
    color: #000000;
    font-size: 1.5rem;
}

.feature span {
    font-weight: 600;
    color: #000000;
}

.about-image {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

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

.about-image-secondary {
    height: 200px !important;
}

/* 商品一覧セクション */
.products {
    background: white;
    padding: 100px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    justify-items: center;
}

.product-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 380px;
    border: 1px solid #dddddd;
}

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

.product-card h3 {
    font-size: 1.4rem;
    margin: 2rem 2rem 1rem;
    color: #000000;
    font-weight: 600;
}

.product-card p {
    margin: 0 2rem 1.5rem;
    color: #333333;
    line-height: 1.6;
    font-size: 1rem;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
    margin: 0 2rem 2rem;
    text-align: center;
}

.product-card .btn {
    margin: 0 2rem 2rem;
    width: calc(100% - 4rem);
    padding: 12px 25px;
    font-size: 1rem;
}

/* 後払いシステムセクション */
.payment-system {
    background: #ffffff;
    text-align: center;
    padding: 80px 0;
}

.payment-system p {
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    color: #000000;
    font-weight: 400;
}

/* ご注文・お問い合わせセクション */
.contact {
    background-color: #ffffff;
}

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

.order-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.order-form h3 {
    color: #000000;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000000;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.info-section h3 {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-section h4 {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-item i {
    color: #000000;
    width: 20px;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.info-section li::before {
    content: "•";
    color: #000000;
    position: absolute;
    left: 0;
}

/* フッター */
.footer {
    background: linear-gradient(135deg, #000000, #000000);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-section h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #ecf0f1;
    font-family: 'KouzanMouhitu', 'Noto Serif JP', serif;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #ecf0f1;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.8;
    color: #bdc3c7;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-section li:hover {
    color: #fff;
}

.footer-section .contact-item {
    color: #bdc3c7;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.footer-section .contact-item:hover {
    color: #fff;
}

.footer-section .contact-item i {
    color: #bdc3c7;
    margin-right: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.shop-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shop-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 20px;
    background: #000000;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.shop-link:hover {
    background: #000;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #000000;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* 農園の歴史ページ専用スタイル */
.history-hero {
    background: url('images/tikurin2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.nav-link.active {
    color: #000;
    font-weight: 600;
}

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

/* タイムライン */
.history-timeline {
    background: white;
    padding: 100px 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #adadad;
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 50%;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    margin-right: 0;
    padding-left: 3rem;
    text-align: left;
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.timeline-content {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    border-left: 4px solid #000000;
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 4px solid #000000;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-content p {
    color: #333333;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.timeline-image {
    margin-top: 1.5rem;
}

.timeline-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 職人の想いセクション */
.philosophy {
    background: #ffffff;
    padding: 100px 0;
}

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

.philosophy-text h3 {
    font-size: 1.8rem;
    color: #000000;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.philosophy-text p {
    font-size: 1.1rem;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.philosophy-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* レスポンシブデザイン */

/* 大画面デスクトップ (1200px以上) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* デスクトップ (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* タブレット (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        flex-direction: row;
        gap: 1rem;
    }
    
    .about-image img {
        height: 180px;
    }
    
    .about-image-secondary {
        height: 180px !important;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .features {
        flex-direction: row;
        gap: 1.5rem;
    }
}

/* スマートフォン (481px - 767px) */
@media (max-width: 767px) and (min-width: 481px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        height: 100vh;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .about-image img {
        height: 150px;
    }
    
    .about-image-secondary {
        height: 150px !important;
    }
    
    .features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .order-form {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .payment-system p {
        font-size: 1rem;
        padding: 0 10px;
    }
}

/* 小型スマートフォン (480px以下) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        height: 100vh;
        background-attachment: scroll;
        padding: 20px 0;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .section-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .about-image {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .about-image img {
        height: 120px;
    }
    
    .about-image-secondary {
        height: 120px !important;
    }
    
    .features {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .feature {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        margin: 0;
    }
    
    .product-card h3 {
        font-size: 1.2rem;
    }
    
    .product-card p {
        font-size: 0.9rem;
    }
    
    .price {
        font-size: 1.3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .order-form {
        padding: 1rem;
    }
    
    .order-form h3 {
        font-size: 1.3rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .info-section {
        padding: 1rem;
    }
    
    .info-section h3 {
        font-size: 1.2rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section p,
    .footer-section li {
        font-size: 0.9rem;
    }
    
    .payment-system p {
        font-size: 0.95rem;
        padding: 0 5px;
    }
}

/* 超小型デバイス (360px以下) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .about-image img {
        height: 100px;
    }
    
    .about-image-secondary {
        height: 100px !important;
    }
    
    .product-card h3 {
        font-size: 1.1rem;
    }
    
    .product-card p {
        font-size: 0.85rem;
    }
    
    .price {
        font-size: 1.2rem;
    }
}

/* 農園の歴史ページのレスポンシブデザイン */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        padding-left: 2rem;
        padding-right: 1rem;
        text-align: left;
    }
    
    .timeline-year {
        left: 0;
        transform: none;
        width: 100%;
        position: static;
        margin-bottom: 1rem;
        text-align: left;
        box-shadow: none;
        background: transparent;
        color: #000000;
        padding: 0;
        font-size: 1.5rem;
        font-family: 'KouzanMouhitu', 'Noto Serif JP', serif;
    }
    
    .timeline-content {
        border-right: none;
    }
    
    .philosophy-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .philosophy-image img {
        height: 300px;
    }
}

/* スムーススクロール */
html {
    scroll-behavior: smooth;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}

/* ホバーエフェクト */
.product-card:hover img {
    transform: scale(1.05);
}

/* 画像の最適化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* レスポンシブ画像 */
.responsive-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 商品画像の最適化 */
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 農園画像の最適化 */
.about-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

/* 画像読み込み中のプレースホルダー */
img[src] {
    background-color: #ffffff;
    background-image: linear-gradient(45deg, #dddddd 25%, transparent 25%), 
                      linear-gradient(-45deg, #dddddd 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #dddddd 75%), 
                      linear-gradient(-45deg, transparent 75%, #dddddd 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* 画像読み込み完了後 */
img.loaded {
    background: none;
}
#logo-image {
    height: 50px;
    width: auto;
}