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

body {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', 'Noto Serif JP', 'serif', serif;
    line-height: 1.6;
}

/* Android用の明朝体フォールバック */
.main-text,
p,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', 'Noto Serif JP', 'serif', serif !important;
}

.header {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 1);
    z-index: 50;
    opacity: 1;
    pointer-events: none;
    animation: zoomReveal 2.5s ease-out forwards;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

@keyframes zoomReveal {
    0% { opacity: 1; }
    30% { opacity: 0.8; }
    100% { 
        opacity: 0; 
        visibility: hidden;
        display: none;
    }
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    z-index: 10;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide.first-load {
    animation: firstSlideZoom 2.5s ease-out forwards;
}

@keyframes firstSlideZoom {
    0% { 
        opacity: 0;
        transform: scale(1.2);
    }
    30% { 
        opacity: 0.3;
        transform: scale(1.15);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

/* PC用スライダー画像（WebPメイン、JPGフォールバック） */
.slide.slide-1 {
    background-image: url('img/slide-1.jpg');
    background-image: url('img/slide-1.webp');
}

.slide.slide-2 {
    background-image: url('img/slide-2.jpg');
    background-image: url('img/slide-2.webp');
}

.slide.slide-3 {
    background-image: url('img/slide-3.jpg');
    background-image: url('img/slide-3.webp');
}

.slide.slide-4 {
    background-image: url('img/slide-4.jpg');
    background-image: url('img/slide-4.webp');
}

.slide.slide-5 {
    background-image: url('img/slide-5.jpg');
    background-image: url('img/slide-5.webp');
}

.slide.slide-6 {
    background-image: url('img/slide-6.jpg');
    background-image: url('img/slide-6.webp');
}

/* スマホ用スライダー画像（WebPメイン、JPGフォールバック） */
@media (max-width: 768px) {
    .slide.slide-1 {
        background-image: url('img/slide-1-mobile.jpg');
        background-image: url('img/slide-1-mobile.webp');
    }

    .slide.slide-2 {
        background-image: url('img/slide-2-mobile.jpg');
        background-image: url('img/slide-2-mobile.webp');
    }

    .slide.slide-3 {
        background-image: url('img/slide-3-mobile.jpg');
        background-image: url('img/slide-3-mobile.webp');
    }

    .slide.slide-4 {
        background-image: url('img/slide-4-mobile.jpg');
        background-image: url('img/slide-4-mobile.webp');
    }

    .slide.slide-5 {
        background-image: url('img/slide-5-mobile.jpg');
        background-image: url('img/slide-5-mobile.webp');
    }

    .slide.slide-6 {
        background-image: url('img/slide-6-mobile.jpg');
        background-image: url('img/slide-6-mobile.webp');
    }
}

.header-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.header-content > * {
    pointer-events: auto;
}

.logo {
    position: absolute;
    top: 0;
    left: 30px;
    width: 200px;
    height: auto;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    z-index: 90;
}

.logo-svg {
    width: 100%;
    height: auto;
}

.nav-menu {
    position: absolute;
    top: 0;
    left: 270px;
    display: flex;
    gap: 0;
    height: 100%;
    align-items: flex-start;
    padding-top: 20px;
}

.nav-item {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: white;
    font-size: 16px;
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 2px;
    padding: 10px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    height: 150px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.nav-item:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger {
    display: none;
    position: absolute;
    top: 20px;
    left: 270px;
    width: 30px;
    height: 30px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

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

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

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

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    background: #ffffff;
    z-index: 9999;
    padding: 0;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
    backface-visibility: hidden;
    isolation: isolate;
}

.mobile-nav.active {
    display: block;
    transform: translate3d(0, 0, 0);
}

.mobile-nav-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 40px;
    background: #ffffff;
}

.mobile-nav-logo {
    width: 100px;
    height: auto;
    margin: 20px 0;
}

.mobile-nav-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #333333;
    font-size: 48px;
    font-weight: 100;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

.mobile-nav-close-text {
    font-size: 12px;
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    color: #333333;
    margin-top: 4px;
    letter-spacing: 1px;
}

.mobile-nav-menu {
    position: absolute;
    top: 250px;
    left: 0;
    width: 100%;
    padding: 0 40px 20px 40px;
}

.mobile-nav-item {
    display: block;
    color: #333333;
    font-size: 20px;
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    font-weight: 400;
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 2px;
}

.mobile-nav-item::before {
    content: attr(data-number);
    display: inline-block;
    margin-right: 20px;
    font-size: 16px;
    color: #333333;
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    opacity: 0.7;
    width: 30px;
}

.mobile-nav-item:hover {
    color: #666666;
    background: rgba(51, 51, 51, 0.1);
}

.mobile-nav-footer {
    position: absolute;
    top: 650px;
    left: 0;
    width: 100%;
    padding: 30px 40px 60px 40px;
    background: #ffffff;
}

.mobile-contact {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.mobile-contact-title {
    font-size: 12px;
    color: #333333;
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-weight: bold;
    flex-shrink: 0;
}

.mobile-contact-info {
    font-size: 11px;
    color: #333333;
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    line-height: 1.4;
}

.mobile-sns-section {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.mobile-sns-title {
    font-size: 12px;
    color: #333333;
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-weight: bold;
    flex-shrink: 0;
}

.mobile-sns-links {
    font-size: 11px;
    color: #333333;
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-sns-links a {
    color: #333333;
    text-decoration: none;
}

.mobile-sns-divider {
    width: 1px;
    height: 12px;
    background-color: #333333;
    opacity: 0.3;
}

.mobile-footer-links {
    font-size: 10px;
    color: #333333;
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    margin-bottom: 15px;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 10001;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    isolation: isolate;
    contain: layout style;
    -webkit-font-smoothing: antialiased;
}

.mobile-footer-links a {
    color: #333333;
    text-decoration: none;
    white-space: nowrap;
}

.mobile-footer-divider {
    width: 1px;
    height: 10px;
    background-color: #333333;
    opacity: 0.3;
    flex-shrink: 0;
}

.mobile-footer-row {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 10002;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    isolation: isolate;
}

.mobile-copyright {
    font-size: 9px;
    color: #333333;
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
}

.mobile-sns {
    display: none;
}

.mobile-sns .social-icon {
    position: relative;
}

.social-icons {
    position: absolute;
    top: 30px;
    right: 60px;
    display: flex;
    gap: 15px;
    z-index: 11;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    border: 1px solid rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.social-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.social-icon.cart {
    background: none;
    border: none;
    border-radius: 0;
}

.social-icon.cart:hover {
    background: none;
    border: none;
}

.social-icon.cart img {
    width: 50px;
    height: 50px;
    filter: none;
}

.main-text {
    position: absolute;
    right: 300px;
    top: 60%;
    transform: translateY(-50%);
    color: white;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: clamp(1.5rem, 3.5vw + 1.8vh, 3rem);
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    font-weight: bold;
    line-height: 1.6;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    z-index: 80;
}

.dots-indicator {
    position: absolute;
    bottom: 40px;
    right: 60px;
    display: flex;
    gap: 10px;
    z-index: 11;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background: white;
    border: 1px solid white;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@media (max-width: 1000px) and (min-width: 769px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
        top: 30px;
    }
}

@media (max-width: 1000px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media (min-width: 1440px) {
    .main-text {
        top: calc(60% - 50px);
    }
}

@media (max-width: 768px) {
    .header {
        height: 70vh;
    }

    .logo {
        top: 0;
        left: 0;
        width: 120px;
        padding: 0;
    }

    .nav-menu {
        display: none;
    }

    .social-icons {
        display: none;
    }

    .hamburger {
        top: 20px;
        right: 20px;
        left: auto;
    }

    .logo {
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 90 !important;
        animation: none !important;
        transition: none !important;
    }
    
    .logo-svg {
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 90 !important;
        animation: none !important;
        transition: none !important;
    }
    
    .main-text {
        right: 90px;
        top: 50%;
        transform: translateY(-50%);
        font-size: clamp(1.8rem, 4vw + 1.5vh, 2.8rem);
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 80 !important;
        letter-spacing: 0.2em;
        line-height: 1.5;
        text-orientation: upright;
        font-feature-settings: "vkrn", "vpal";
        animation: none !important;
        transition: none !important;
        font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Noto Serif JP', 'DroidSansFallback', 'serif', serif !important;
        writing-mode: vertical-rl !important;
        white-space: nowrap;
        -webkit-text-orientation: upright;
        -webkit-writing-mode: vertical-rl;
        text-combine-upright: none;
    }
    
    /* Android Chrome用追加修正 */
    @supports (-webkit-appearance: none) {
        .main-text {
            letter-spacing: 0.1em;
            line-height: 1.2;
            word-spacing: 0;
            text-rendering: optimizeLegibility;
            -webkit-font-feature-settings: "kern" 1, "liga" 1;
            font-feature-settings: "kern" 1, "liga" 1, "vkrn" 1, "vpal" 1;
            font-variant-east-asian: full-width;
        }
    }
    
    /* Android専用修正 - JavaScriptで制御 */
    @media (max-width: 768px) {
        body.is-android .main-text {
            font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', 'DroidSansFallback', serif !important;
            word-break: keep-all;
            overflow-wrap: normal;
            font-variant-east-asian: proportional-width !important;
            text-align: justify;
            text-justify: inter-character;
        }
        
    }

    .dots-indicator {
        bottom: 20px;
        right: 20px;
    }
}

/* スマホ時のテキスト表示制御 */
@media (max-width: 768px) {
    .desktop-text {
        display: none;
    }
    .mobile-text {
        display: inline;
    }
}

@media (min-width: 769px) {
    .mobile-text {
        display: none;
    }
    .desktop-text {
        display: inline;
    }
}

/* メインコンテンツ */
.main-content {
    position: relative;
}

.content-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    transform: translateY(150px);
    transition: transform 0.8s ease-out;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: none;
}

.bg-cloud {
    position: absolute;
    width: 100px;
    height: auto;
    opacity: 1;
    animation: float 6s ease-in-out infinite;
    transition: transform 0.1s ease-out;
    z-index: -1;
}

.bg-cloud:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 5.2s;
}

.bg-cloud:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 7.8s;
}

.bg-cloud:nth-child(3) {
    top: 40%;
    left: 70%;
    animation-delay: 4s;
    animation-duration: 6.4s;
}

/* パララックス要素 */
.parallax-element {
    transition: transform 0.1s ease-out;
}

.parallax-slow {
    transform: translateY(0px);
}

.parallax-medium {
    transform: translateY(0px);
}

.parallax-fast {
    transform: translateY(0px);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-5px) translateX(15px);
    }
    50% {
        transform: translateY(-3px) translateX(-10px);
    }
    75% {
        transform: translateY(-8px) translateX(12px);
    }
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title {
    width: auto;
    height: 60px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    font-size: 38px;
    font-weight: normal;
    color: #333;
    margin: 0;
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    position: relative;
}

.story-text {
    text-align: center;
    position: relative;
    max-width: 800px;
    overflow: visible;
}

.story-floating-cloud {
    position: absolute;
    top: -20px;
    right: -60px;
    width: 120px;
    height: auto;
    opacity: 1;
    z-index: -1;
    animation: floatStory 9.3s ease-in-out infinite;
}

.story-header-cloud {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(calc(-50% + 550px));
    width: 120px;
    height: auto;
    opacity: 1;
    z-index: -1;
    animation: floatStory 7.1s ease-in-out infinite;
}

.story-floating-cloud-2 {
    position: absolute;
    top: 40px;
    right: 100px;
    width: 100px;
    height: auto;
    opacity: 1;
    z-index: -1;
    animation: floatStory2 11.7s ease-in-out infinite;
}

.story-floating-cloud-3 {
    position: absolute;
    top: 20px;
    left: -250px;
    width: 158px;
    height: auto;
    opacity: 1;
    z-index: -1;
    animation: floatStory3 8.5s ease-in-out infinite;
}

@keyframes floatStory {
    0%, 100% {
        transform: translateX(calc(-50% + 250px)) translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateX(calc(-50% + 270px)) translateY(-8px) rotate(2deg);
    }
    50% {
        transform: translateX(calc(-50% + 230px)) translateY(-5px) rotate(-1deg);
    }
    75% {
        transform: translateX(calc(-50% + 265px)) translateY(-10px) rotate(1deg);
    }
}

@keyframes floatStory2 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    20% {
        transform: translateY(-5px) translateX(-15px) rotate(-1deg);
    }
    40% {
        transform: translateY(-8px) translateX(20px) rotate(1deg);
    }
    60% {
        transform: translateY(-3px) translateX(-8px) rotate(-0.5deg);
    }
    80% {
        transform: translateY(-6px) translateX(18px) rotate(1.5deg);
    }
}

@keyframes floatStory3 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    30% {
        transform: translateY(-6px) translateX(25px) rotate(1deg);
    }
    60% {
        transform: translateY(-3px) translateX(-18px) rotate(-0.5deg);
    }
    90% {
        transform: translateY(-8px) translateX(22px) rotate(0.5deg);
    }
}

@keyframes textFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px) rotate(0deg);
    }
    25% {
        transform: translate(-50%, -50%) translateY(-8px) rotate(1deg);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-4px) rotate(-0.5deg);
    }
    75% {
        transform: translate(-50%, -50%) translateY(-12px) rotate(0.5deg);
    }
}

.story-text p {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    font-size: 24px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.story-text p:nth-child(1) {
    text-align: center;
}

.story-images {
    display: flex;
    gap: 0;
    align-items: flex-end;
    width: 100%;
    max-width: 900px;
    justify-content: flex-start;
    margin-top: 30px;
}

.story-img {
    object-fit: cover;
    border-radius: 0;
}

.story-img:nth-child(1) {
    width: 350px;
    height: auto;
    order: 3;
    position: absolute;
    bottom: -50px;
    right: -50px;
}

.story-bottom-cloud {
    position: absolute;
    bottom: -50px;
    right: 550px;
    width: 167px;
    height: auto;
    opacity: 1;
    z-index: -1;
    animation: floatStory 6.8s ease-in-out infinite;
}

.story-img:nth-child(2) {
    width: auto;
    height: 220px;
    order: 2;
    margin-left: -50px;
}

.story-img:nth-child(3) {
    width: auto;
    height: 220px;
    order: 1;
    margin-left: -20px;
}

.vegetables-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    position: relative;
}

.vegetables-text-section {
    display: flex;
    align-items: center;
    max-width: 1200px;
    position: relative;
    justify-content: center;
}

.vegetables-logo {
    width: 240px;
    height: auto;
    position: absolute;
    left: -280px;
}

.vegetables-text {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
}

.vegetables-right-cloud {
    position: absolute;
    right: -130px;
    top: 60%;
    transform: translateY(-50%);
    width: 220px;
    height: auto;
    opacity: 1;
    z-index: -1;
    animation: floatStory 10.2s ease-in-out infinite;
}

.vegetables-text p {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    font-size: 24px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.vegetables-images {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-image: url('img/img_4.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.vegetables-image-section {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.vegetables-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.vegetables-fullwidth-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* こだわりセクション */
.kodawari-section {
    margin-bottom: 80px;
}

.kodawari-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    position: relative;
}

.kodawari-title-img {
    width: auto;
    height: 388px;
    margin: 0;
    transform: translateY(150px);
    transition: transform 0.8s ease-out;
}

.kodawari-cloud-left {
    width: 234px;
    height: auto;
    position: absolute;
    left: -50px;
    top: 400px;
    animation: float 8.7s ease-in-out infinite;
}

.kodawari-logo-right {
    width: 397px;
    height: auto;
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
}

.kodawari-subtitle {
    text-align: center;
    margin-bottom: 40px;
}

.kodawari-subtitle-img {
    width: 338px;
    height: auto;
    margin: 0;
}

.kodawari-content {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
}

.kodawari-text-all {
    width: 100%;
}

/* PC版: kodawari-text-topと画像を横並びに */
.kodawari-text-top {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    margin: 0 auto 40px auto;
    width: 100%;
    max-width: 1200px;
}

.kodawari-text-top p {
    flex: 0 1 550px !important;
    max-width: 550px !important;
    width: 550px !important;
    min-width: 550px !important;
    text-align: center;
    margin: 0;
    order: 2;
}

.kodawari-img-left {
    flex: 0 0 auto;
    order: 1;
}

.kodawari-img-right {
    flex: 0 0 auto;
    order: 3;
}

.kodawari-text-bottom {
    text-align: center;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.kodawari-images {
    display: contents;
}

.kodawari-mobile-images {
    display: none;
}

/* kodawari-top-rowに画像とテキストを配置 */
.kodawari-top-row {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 40px;
    width: 100%;
}

.kodawari-top-row .kodawari-img-left,
.kodawari-top-row .kodawari-img-right {
    flex: 0 0 auto;
}

.kodawari-top-row .kodawari-text-top {
    flex: 1;
    max-width: 600px;
    text-align: center;
}

.kodawari-side-img {
    width: 299px;
    height: 199px;
    object-fit: cover;
    border-radius: 0;
}

.kodawari-text-top {
    flex: 1;
    text-align: center;
    max-width: 600px;
}

.kodawari-text-section {
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

.kodawari-text-bottom {
    margin-bottom: 0;
}

.kodawari-text p, .kodawari-text-top p, .kodawari-text-bottom p {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    font-size: 22px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.kodawari-text .kanji {
    font-size: 110%;
}

.highlight-phrase {
    font-size: 120%;
}

/* 手作業セクション */
.handwork-section {
    margin: 80px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.handwork-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

/* こだわり第2セクション */
.kodawari-section-2 {
    margin-top: 200px;
    margin-bottom: 80px;
}

.kodawari-content-2 {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    position: relative;
    padding-left: 0;
}

.kodawari-img-left-2 {
    flex: 0 0 auto;
    margin-left: 0;
    align-self: center;
    position: absolute;
    left: -300px;
}

.tsukemono-img {
    height: 350px;
    object-fit: cover;
    object-position: center right;
    border-radius: 8px;
}

.kodawari-text-2 {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    z-index: 2;
}

.kodawari-text-2 p {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    font-size: 22px;
    line-height: 2.2;
    color: #333;
    margin: 0;
}

.kodawari-text-2 .highlight-text {
    font-size: 115%;
}

.kodawari-title-2 {
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.asazuke-title-img {
    width: auto;
    height: 250px;
    margin: 0;
    transform: translateY(150px);
    transition: transform 0.8s ease-out;
}

/* 発酵セクション */
.hakkou-section {
    width: 100vw;
    height: 60vh;
    min-height: 400px;
    margin: 80px 0 0 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-image: url('img/img_11.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(150px);
    transition: transform 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hakkou-title-img {
    width: auto;
    height: 250px;
    margin: 0;
    z-index: 2;
    transform: translateY(150px);
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 古漬セクション */
.furuduke-section {
    background-color: #231815;
    width: 100%;
    height: 450px;
    padding: 0;
    margin-top: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.furuduke-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
}

.furuduke-logo {
    position: absolute;
    left: -400px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.furuduke-logo-img {
    width: 400px;
    height: auto;
    margin: 0;
    opacity: 0.1;
}

.furuduke-text {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    z-index: 2;
}

.furuduke-text p {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    font-size: 22px;
    line-height: 2.2;
    color: white;
    margin: 0;
}

.furuduke-text .kanji {
    font-size: 120%;
}

/* ご縁セクション */
.goen-section {
    background-color: #faf1e4;
    padding: 100px 0 150px;
    transform: translateY(150px);
    transition: transform 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.goen-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    text-align: center;
}

.goen-header {
    margin-bottom: 40px;
}

.goen-title-img {
    width: auto;
    height: 100px;
    margin: 0;
}

.goen-text {
    margin-bottom: 100px;
}

.goen-text p {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    font-size: 24px;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

.goen-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 60px;
    margin-bottom: 100px;
}

.goen-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0;
}

.goen-cloud-right {
    position: absolute;
    top: 120px;
    right: 30px;
    width: 250px;
    height: auto;
    opacity: 1;
    z-index: 1;
    animation: float 8.5s ease-in-out infinite;
}

.goen-cloud-text-right {
    position: absolute;
    top: 270px;
    right: -50px;
    width: 223px;
    height: auto;
    opacity: 1;
    z-index: 1;
    animation: float 10.2s ease-in-out infinite;
}

.goen-cloud-text-left {
    position: absolute;
    top: calc(50% - 200px);
    left: -50px;
    transform: translateY(-50%);
    width: 250px;
    height: auto;
    opacity: 1;
    z-index: 1;
    animation: float 12.7s ease-in-out infinite;
}

.goen-cloud-images-right {
    position: absolute;
    bottom: 30px;
    left: 80px;
    width: 279px;
    height: auto;
    opacity: 1;
    z-index: 1;
    animation: float 9.8s ease-in-out infinite;
}

.mobile-only {
    display: none;
}

.mobile-br {
    display: none;
}

.vegetables-mobile-images {
    display: none;
}

.goen-bottom-text {
    text-align: center;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.goen-bottom-text p {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    font-size: 24px;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

.highlight-word {
    font-size: 120%;
}

/* 大社店セクション */
.taisha-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #FAF1E4;
    padding-bottom: 0;
    overflow: hidden;
}

.taisha-img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    display: block;
    transform: translateY(150px);
    transition: transform 0.8s ease-out;
}

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

    .content-section {
        padding: 40px 0 60px 0;
    }

    .vegetables-content {
        flex-direction: column;
        gap: 40px;
    }

    .vegetables-text-section {
        flex-direction: column;
        align-items: center;
    }

    .vegetables-logo {
        position: static;
        left: auto;
        width: 200px;
        margin-bottom: 30px;
    }

    .vegetables-text {
        text-align: center;
        max-width: 100%;
    }

    .vegetables-right-cloud {
        display: none;
    }

    .vegetables-image-section {
        display: none;
    }

    .vegetables-mobile-images {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        margin-top: 40px;
    }

    .vegetables-mobile-img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

    .story-floating-cloud, .story-floating-cloud-2, .story-header-cloud {
        display: none;
    }
    
    .story-floating-cloud-3 {
        display: block;
        top: -50px;
        left: 20px;
        width: 80px;
    }

    .story-content {
        flex-direction: column;
        gap: 60px;
    }

    .story-images {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        gap: 20px;
        margin-top: 0;
        position: static;
    }

    .story-img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        margin-bottom: 20px;
    }

    .story-img:nth-child(1) {
        width: 100%;
        position: static;
        bottom: 0;
        right: 0;
        height: auto;
    }

    .story-img:nth-child(2) {
        width: 100%;
        height: 200px;
        margin-left: 0;
    }

    .story-img:nth-child(3) {
        width: 100%;
        height: 200px;
        margin-left: 0;
    }

    .story-img-main {
        order: 1;
    }

    .story-img:nth-child(2) img {
        order: 2;
    }

    .story-img:nth-child(3) img {
        order: 3;
    }

    .story-bottom-row {
        display: contents;
    }

    .story-text p {
        font-size: 16px;
    }

    .vegetables-images {
        width: 100%;
    }

    .section-header h2 {
        font-size: 28px;
    }

    /* こだわりセクション モバイル対応 */
    .kodawari-title-img {
        height: 250px;
    }

    .kodawari-cloud-left {
        width: 140px;
        left: -30px;
        top: 300px;
    }

    .kodawari-logo-right {
        width: 200px;
        right: -80px;
    }
    
    .kodawari-title-2 h2 {
        font-size: 36px;
        padding: 15px 10px;
    }

    .kodawari-subtitle-img {
        width: 250px;
    }

    .kodawari-content {
        flex-direction: column !important;
        gap: 30px;
    }

    .kodawari-text-all {
        order: 1;
        margin-bottom: 30px;
        text-align: left !important;
        max-width: 100% !important;
    }

    /* モバイル版: 写真をkodawari-text-bottomの下に */
    .kodawari-text-top {
        display: block !important;
        margin-bottom: 30px;
    }

    .kodawari-text-top p {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        text-align: left !important;
    }

    .kodawari-text-bottom p {
        text-align: left !important;
    }

    .kodawari-text-top .kodawari-img-left,
    .kodawari-text-top .kodawari-img-right {
        display: none !important;
    }

    .kodawari-text-all::after {
        content: "";
        display: block;
        clear: both;
    }

    .kodawari-text-all {
        position: relative;
    }

    .kodawari-text-bottom {
        margin-bottom: 30px;
    }

    /* モバイル用の画像を追加 */
    .kodawari-mobile-images {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
    }

    .kodawari-mobile-img {
        width: 100%;
        height: auto;
    }
    
    .kodawari-side-img {
        width: 100%;
        height: auto;
    }

    .kodawari-text p,
    .kodawari-text-top p,
    .kodawari-text-bottom p {
        font-size: 18px;
    }

    .handwork-img {
        height: 250px;
    }

    .kodawari-cloud-left {
        display: block;
        top: 200px;
        width: 140px;
        left: -30px;
    }
    
    .story-bottom-cloud {
        right: 450px;
    }
    
    .bottom-section {
        margin-top: 0;
    }
    
    .section-title {
        margin-top: 40px;
    }
    
    .cloud-top-left {
        position: absolute !important;
        top: 0px !important;
        left: 10px !important;
        width: 90px !important;
        height: auto;
        opacity: 1;
        z-index: 5;
        animation: float 5.7s ease-in-out infinite;
        transform: none !important;
    }
    
    .cloud-bottom-right {
        position: absolute !important;
        bottom: 0px !important;
        right: 20px !important;
        width: 120px !important;
        height: auto;
        opacity: 1;
        z-index: 5;
        animation: float 9.6s ease-in-out infinite reverse;
        animation-delay: 4s;
    }
    
    .text-image {
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        top: 20px !important;
        margin: 0 !important;
        width: auto !important;
        height: 140px !important;
        display: block !important;
    }
    
    .section-bg {
        display: block !important;
    }
    
    .bg-cloud {
        display: block !important;
        position: absolute !important;
        width: 80px !important;
        opacity: 1 !important;
        z-index: -1 !important;
    }
    
    .bg-cloud:nth-child(1) {
        top: 50px !important;
        left: 10px !important;
    }
    
    .bg-cloud:nth-child(2) {
        top: 200px !important;
        right: 20px !important;
    }
    
    .bg-cloud:nth-child(3) {
        top: 40% !important;
        left: -20px !important;
    }
    
    .cloud-bottom-section {
        bottom: -100px !important;
        right: 0px !important;
        width: 120px !important;
    }
    
    .kodawari-title-img {
        z-index: 10;
    }
    
    .kodawari-text-2 p br,
    .kodawari-text-top p br,
    .kodawari-text-bottom p br {
        display: none;
    }
    
    .kodawari-section-2 {
        margin-top: 50px;
        margin-bottom: 40px;
    }
    
    .kodawari-content-2 {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .kodawari-title-2 {
        order: 1;
        position: static;
        right: auto;
        top: auto;
        transform: none;
        text-align: center;
    }

    .kodawari-text-2 {
        order: 2;
        position: static;
        left: auto;
        top: auto;
        transform: none;
        max-width: 100%;
        text-align: center;
    }

    .kodawari-text-2 p {
        font-size: 18px;
        line-height: 2.2;
    }
    
    .kodawari-text-top {
        text-align: left;
    }

    .kodawari-img-left-2 {
        order: 3;
        position: static;
        left: auto;
        top: auto;
        transform: none;
    }

    .tsukemono-img {
        width: 100%;
        height: 250px;
        object-position: center;
    }

    .asazuke-title-img {
        height: 180px;
    }

    .hakkou-section {
        height: 50vh;
        min-height: 300px;
    }

    .hakkou-title-img {
        height: 180px;
    }

    .furuduke-section {
        padding: 150px 0;
        margin-top: -2px;
    }

    .furuduke-content {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }

    .furuduke-logo {
        position: static;
        transform: none;
        left: auto;
        top: auto;
    }

    .furuduke-text {
        position: relative;
        top: 100px;
        transform: none;
        max-width: 100%;
    }
    .furuduke-text p br {
        display: none;
    }

    .furuduke-text p {
        font-size: 18px;
        line-height: 2.2;
    }

    .furuduke-logo-img {
        width: 200px;
    }

    .goen-section {
        padding: 60px 0;
    }

    .goen-container {
        padding: 0 20px;
    }

    .goen-title-img {
        height: 80px;
    }

    .goen-text p {
        font-size: 18px;
    }

    .goen-images {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .goen-img {
        height: 200px;
        margin-bottom: 20px;
    }

    .goen-bottom-text p {
        font-size: 20px;
    }

    .mobile-only {
        display: block;
    }
    
    .mobile-br {
        display: inline;
    }
    
    .info-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .goen-cloud-right {
        top: 20px;
        right: -80px;
        width: 160px;
    }
    
    .goen-cloud-text-right {
        right: -120px;
        width: 170px;
    }
    
    .goen-cloud-text-left {
        display: none;
    }
    
    .goen-cloud-images-right {
        left: -80px;
        width: 150px;
    }
    
    .goen-cloud-text-center {
        position: absolute;
        top: 200px;
        left: -100px;
        width: 150px;
        height: auto;
        opacity: 0.8;
        z-index: 1;
        animation: float 11.3s ease-in-out infinite;
    }

    .taisha-section {
        width: 100%;
        padding: 0;
        margin: 0;
        overflow: hidden;
        max-width: 100vw;
        left: 0px;
        right: 0px;
    }

    .taisha-img {
        width: 100%;
        height: auto;
        object-fit: contain;
        max-width: 100%;
        display: block;
    }
}

/* フッター */
.footer {
    background-color: #f8f5f0;
    padding: 80px 0 0 0;
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    text-align: center;
}

.footer-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 300px;
    height: auto;
}

.footer-title h3 {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    font-size: 24px;
    font-weight: normal;
    color: #333;
    margin: 0;
    letter-spacing: 1px;
}

.kenchan-brand {
    font-size: 120%;
}

.footer-content {
    margin-bottom: 40px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.info-section {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    max-width: 700px;
    width: 100%;
}

.info-label {
    background-color: transparent;
    color: #333;
    padding: 20px;
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    border: 1px solid #333;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-details {
    flex: 1;
    text-align: left;
}

/* PC版: 住所とTEL情報を横並びに */
.info-details p:first-child {
    display: inline-block;
    margin-right: 30px;
    margin-bottom: 0;
    vertical-align: top;
}

.info-details .tel-info {
    display: inline-block;
    margin-bottom: 10px;
    vertical-align: top;
}

.info-details p {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 8px 0;
}

.info-details p:last-child {
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: -1px;
    flex-wrap: wrap;
    background-color: #dcdddd;
    padding: 20px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.footer-link {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    border-right: 1px solid #999;
    padding: 0 40px;
}

.footer-link:first-child {
    border-left: 1px solid #999;
}

.footer-link:hover {
    color: #666;
}

.footer-copyright {
    background-color: #dcdddd;
    padding: 20px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.footer-copyright p {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    font-size: 12px;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 0 0;
    }

    .footer-container {
        padding: 0 20px;
    }

    .footer-logo-img {
        width: 200px;
    }

    .footer-title h3 {
        font-size: 20px;
    }
    
    .footer-link {
        font-size: 12px;
        line-height: 1.1;
        padding: 0 20px;
        border: none;
    }

    .info-section {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }

    .info-details {
        text-align: center;
    }

    /* モバイル版: 住所とTEL情報を縦並びに戻す */
    .info-details p:first-child {
        display: block !important;
        margin-right: 0 !important;
        margin-bottom: 8px !important;
    }

    .info-details .tel-info {
        display: block !important;
        margin-bottom: 8px !important;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .footer-links .footer-link {
        border: none;
        padding: 0;
    }
    
    .footer-links-top {
        display: flex;
        align-items: center;
        gap: 0;
    }
    
    .footer-links-top .footer-link:first-child {
        white-space: nowrap;
        padding-right: 10px;
    }
    
    .footer-links-top .footer-link:last-child {
        white-space: nowrap;
        border-left: 1px solid #999;
        padding-left: 10px;
    }
    
    .footer-links > .footer-link:last-child {
        display: block;
        white-space: nowrap;
    }
}

/* メッセージセクション */
.message-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    background-image: url('img/img_10.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(150px);
    transition: transform 0.8s ease-out;
}

.message-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.message-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.message-text p {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    font-size: 42px;
    font-weight: bold;
    color: white;
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .message-section {
        height: 60vh;
        min-height: 400px;
    }

    .message-text p {
        font-size: 24px;
        line-height: 1.8;
        letter-spacing: -0.05em;
    }
}
/* オープニングローディング */
.opening-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.opening-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.blackout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
}

.blackout-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.blackout-overlay.curtain-up {
    animation: curtainUp 1.5s ease-out forwards;
}

@keyframes curtainUp {
    0% {
        clip-path: inset(0 0 0 0);
    }
    100% {
        clip-path: inset(0 0 100% 0);
    }
}

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

.opening-clouds {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
}

.opening-cloud {
    position: absolute;
    opacity: 1.0;
    animation: cloudFloat 4s ease-in-out infinite;
}

.opening-cloud:nth-child(1) {
    top: 10%;
    right: 10%;
    width: 120px;
    animation-delay: 0s;
    animation-duration: 6s;
}

.opening-cloud:nth-child(2) {
    top: 60%;
    right: 10%;
    width: 100px;
    animation-delay: 1s;
    animation-duration: 7s;
}

.opening-cloud:nth-child(3) {
    top: 30%;
    left: 10%;
    width: 80px;
    animation-delay: 2s;
    animation-duration: 5s;
}

.opening-cloud:nth-child(4) {
    bottom: 20%;
    left: 20%;
    width: 90px;
    animation-delay: 0.5s;
    animation-duration: 8s;
}

.opening-logo {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: logoAppear 1s ease-in-out 0.2s forwards;
}

.opening-logo img {
    width: 200px;
    height: auto;
    filter: sepia(20%) saturate(120%);
}

.opening-text {
    position: relative;
    z-index: 2;
    margin-top: 20px;
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    font-size: 24px;
    color: #4a3728;
    opacity: 0;
    animation: textBrush 2s ease-out 1.5s forwards;
    letter-spacing: 2px;
}

@keyframes cloudFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) translateX(5px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-2px) translateX(-3px) rotate(-0.3deg);
    }
    75% {
        transform: translateY(-5px) translateX(4px) rotate(0.3deg);
    }
}

@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes textBrush {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0% 0 0);
    }
}

.opening-overlay.hidden {
    display: none;
}

.main-wrapper {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.main-wrapper.visible {
    opacity: 1;
    visibility: visible;
}

/* 上に戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.back-to-top:hover {
    background-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover::before {
    color: white;
}

.back-to-top::before {
    content: "↑";
    font-size: 24px;
    font-weight: bold;
    color: #333;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .back-to-top::before {
        font-size: 20px;
    }
}

/* Image Section CSS (復元) */
.image-section {
    position: relative;
    width: 100%;
    padding: 60px 0;
    background: white;
    transform: translateY(150px);
    transition: transform 0.8s ease-out;
}

.image-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.text-content {
    position: absolute;
    left: -30px;
    top: 50px;
    width: 300px;
    height: 200px;
}

.text-image {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: auto;
    z-index: 10;
    animation: textFloat 6s ease-in-out infinite;
}

.cloud-top-left {
    position: absolute;
    top: -30px;
    left: 10px;
    width: 120px;
    height: auto;
    opacity: 1;
    z-index: 5;
    animation: float 5.7s ease-in-out infinite;
}

.cloud-bottom-right {
    position: absolute;
    bottom: -80px;
    right: 110px;
    width: 140px;
    height: auto;
    opacity: 1;
    z-index: 5;
    animation: float 9.6s ease-in-out infinite reverse;
    animation-delay: 4s;
}

.bottom-section {
    position: relative;
    margin-top: 60px;
    text-align: center;
    max-width: 600px;
}

.divider {
    margin: 20px 0 40px 0;
    position: relative;
    text-align: center;
}

.divider-image {
    width: 250px;
    height: auto;
}

.highlight {
    font-size: 120%;
}

.bottom-text {
    position: relative;
    z-index: 10;
}

.bottom-text p {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    font-size: 24px;
    line-height: 1.8;
    color: #333;
    margin: 10px 0;
}

.cloud-bottom-section {
    position: absolute;
    bottom: 70px;
    right: -400px;
    width: 160px;
    height: auto;
    opacity: 1;
    z-index: 5;
    animation: float 12.4s ease-in-out infinite;
}

.cloud-bottom-left {
    position: absolute;
    bottom: 80px;
    left: -460px;
    width: 234px;
    height: auto;
    opacity: 1;
    z-index: 5;
    animation: float 7.9s ease-in-out infinite reverse;
    animation-delay: 3s;
}

/* Image Section モバイル対応 */
@media (max-width: 768px) {
    .text-content {
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        margin: 20px 0;
    }

    .bottom-text p {
        font-size: 20px;
    }

    .divider {
        margin: 10px 0 40px 0;
    }

    .divider-image {
        width: 230px;
    }
}

/* Mobile font size adjustments */
@media (max-width: 768px) {
    .vegetables-text p {
        font-size: 18px !important;
    }
    
    .goen-bottom-text p {
        font-size: 18px !important;
    }
}