@charset "UTF-8";
/* CSS Document */

        body {
            line-height: 1.6;
            color: #333;
            font-family: "Noto Sans JP", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro", "游ゴシック体", "Yu Gothic", "メイリオ", sans-serif;
        }
        a:hover{
            text-decoration: none;
        }

        /* Key Visual Section */
        .kv-section {
            width: 100%;
            text-align: center;
            margin: 0 auto;
            padding: 0;
        }

        .kv-image {
            width: 100%;
            max-width: 1000px;
            height: auto;
            display: block;
            margin: 0 auto;
            margin-top: 112px;
        }

        /* Navigation Menu */
        .wine-nav {
            display: block;
            width: 100%;
            max-width: 1000px;
            background: #fff;
            padding: 20px 0;
            margin: 0 auto;
            position: unset;
            overflow: visible;
        }

        .nav-menu {
            list-style: none;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0;
            padding: 0;
            width: 100%;
            box-sizing: border-box;
        }

        .nav-menu li {
            flex: 1;
            text-align: center;
            border-right: 1px solid #e0e0e0;
            box-sizing: border-box;
        }

        .nav-menu li:last-child {
            border-right: none;
        }

        .nav-link {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 16px 20px;
            color: #333;
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            position: relative;
        }

        .nav-icon {
            width: auto;
            height: 45px;
            object-fit: contain;
        }

        .nav-link:hover {
            color: #830B3E;
            background-color: #f9f7f4;
            text-decoration: none;
        }

        .nav-link:active,
        .nav-link:focus {
            outline: none;
            color: #830B3E;
        }

        /* Description Section */
        .wine-description-section {
            background: #fff;
            padding: 30px 20px;
            text-align: center;
        }

        .description-text {
            max-width: 1000px;
            margin: 0 auto;
            font-size: 15px;
            line-height: 1.8;
            color: #333;
        }

        /* Smooth scroll behavior */
        html {
            scroll-behavior: auto;
        }

        /* Header */
        header {
            text-align: center;
            padding: 40px 20px;
            background: #f9f7f4;
        }

        .header-title {
            font-size: 48px;
            font-weight: bold;
            margin-bottom: 8px;
        }

        .header-subtitle {
            font-size: 24px;
            color: #666;
            letter-spacing: 2px;
        }

        .wine-icon {
            font-size: 48px;
            margin-left: 16px;
        }

         /* color */
          .wh1 {
            --color: #d9915f;
          }
          .wh2 {
            --color: #4a7c5e;
          }
          .re1 {
            --color: #830B3E;
          }
          .re2 {
            --color: #B95725;
          }
          .ch1 {
            --color: #9E7F4E;
          }
          .ch2 {
            --color: #6E4B2E;
          }
          .ro1 {
            --color: #c9898f;
          }
          .ro2 {
            --color: #e47d4a;
          }
          .ros1 {
            --color: #b73e18;
          }
          .ros2 {
            --color: #d38e3c;
          }

          .bg {
            background: var(--color);
          }
          
          .text {
            color: var(--color);
          }

        [class*="section-wine-"] {
            background: linear-gradient(
              to bottom,
              rgba(var(--wine-color-start), 0) 0%,
              rgb(var(--wine-color-start)) 20%,
              rgb(var(--wine-color-end)) 80%,
              rgba(var(--wine-color-end), 0) 100%
            );
          }

        .section-wine-1 {
            --wine-color-start: 218, 178, 168;
            --wine-color-end:   232, 196, 186;
        }

        .section-wine-2 {
            --wine-color-start: 240, 216, 191; 
            --wine-color-end:   247, 226, 205;
          }
        .section-wine-3 {
        --wine-color-start: 232, 220, 200;
        --wine-color-end:   240, 230, 210;
        }
    
        .section-wine-4 {
        --wine-color-start: 212, 232, 208;
        --wine-color-end:   224, 240, 220;
        }

        .section-wine-5 {
            --wine-color-start: 226, 214, 190; 
            --wine-color-end:   240, 230, 210;
        }
        .section-wine-6 {
            --wine-color-start: 188, 160, 128;
            --wine-color-end:   210, 182, 150
        }
        .section-wine-7 {
            --wine-color-start: 237, 226, 219;
            --wine-color-end:   246, 238, 232
        }
        .section-wine-8 {
            --wine-color-start: 248, 239, 215;
            --wine-color-end:   255, 250, 238
        }

        .section-wine-9 {
            --wine-color-start: 247, 233, 215;
            --wine-color-end:   220, 188, 160;
        }
        .section-wine-10 {
            --wine-color-start: 255, 249, 235;
            --wine-color-end:   228, 212, 175;
        }
          
        /* Main Container */
        .wrapper {
            max-width: 1000px;
            margin: 0 auto;
            clear: both;
        }

        .container {
            display: flex;
            flex-direction: column;
            gap: 0;
            padding: 0 !important;
        }

        /* Wine Section */
        .section {
            width: 100%;
            padding: 60px 40px;
            display: flex;
            flex-direction: column;
            box-sizing: border-box;
        }

        .section-white {
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        /* Product Image Wrapper */
        .product-image-wrapper {
            position: relative;
            width: 75%;
            max-width: 600px;
            margin: 0 auto 5px;
            opacity: 0;
            transform: translateY(15px) scale(0.97);
            filter: blur(.2em);
            transition: opacity .8s ease, filter .8s ease-out, transform .8s ease;
        }
        
        .section.in-view .product-image-wrapper {
            opacity: 1;
            transform: translateY(0) scale(1);
            filter: blur(0);
        }
        
        /* Product Image */
        .product-image {
            width: 100%;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
            border-radius: 5px;
        
            opacity: 0;
            transform: scale(0.97);
            transition:
            opacity 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94),
            transform 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        
        /* Product Copy Overlay */
        .product-copy-overlay{
            position: absolute;
            top: -3%;
            right: -8%;
            transform: translateY(-50%);
            width: 78px;
            object-fit: contain;
            z-index: 10;
            opacity: 0;
            transition: opacity .9s ease, filter .9s ease-out;
          }
        
        /* 個別調整 */
        .left {
            top: -3%;
            right: -8%;
        }

        .right {
            top: -3%;
            right: 80%;
        }
        
        /* ★ここを section.in-view にする（wrapper.in-viewは使わない） */
        .section.in-view .product-image-wrapper .product-image {
            opacity: 1;
            transform: scale(1);
            transition-delay: 0.12s;
        }
        
        .section.in-view .product-image-wrapper .product-copy-overlay{
            opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.5s;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
          }
        /* Catch image under the main visual */
        .product-catch_img{
            display: block;
            width: 78%;
            max-width: 624px;
            margin: 0px auto 20px;
          
            opacity: 0;
            transform: scale(0.97);
            transition:
              opacity 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            transition-delay: 0.24s; /* ←遅延そのまま */
            will-change: opacity, transform;
          }
          .section.in-view .product-catch_img{
            opacity: 1;
            transform: scale(1);
          }

        /* 下部情報 */
        .collapsible-content{
            opacity: 0;
            transform: scale(0.97);
            transition:
              opacity 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            transition-delay: 0.48s; /* ←遅延そのまま（catchより少し後） */
            will-change: opacity, transform;
          }
          
          .section.in-view .collapsible-content{
            opacity: 1;
            transform: scale(1);
          }



    
        /* Collapsible Content Wrapper */
        /*.collapsible-content {
            display: block;
            margin: 0 auto;
            width: 80%;
            max-width: 800px;
            box-sizing: border-box;
        }

        .collapsible-content.hidden {
            display: none;
        }*/

        /* Section Title */

        .sec_title {
            text-align: center;
            margin:20px auto;
          }
        .sec_title img{
           width: 80%;
          }
/* Wine Name */
        .wine-name {
            font-size: 17px;
            font-weight: bold;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .wine-name-small {
            font-size: 14px;
            color: #666;
        }

        /* Info Box */
        .info-box {
            margin-bottom: 10px;
        }

        .info-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            font-size: 14px;
        }

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

        .info-label {
            color: #333333;
        }

        .price {
            font-size: 18px;
            font-weight: bold;
            margin-top: 12px;
        }

        .price .tax-included {
            font-size: 12px;
            font-weight: normal;
            margin-left: 2px;
        }

        .flg {
            display: inline-block;
            width: 20px;
            height: 13px;
            border-radius: 3px;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            vertical-align: baseline;
            margin-right: 4px;
        }

        .grape {
            display: inline-block;
            width: 20px;
            height: 20px;
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center;
            vertical-align: top;
            margin-right: 4px;
        }
        .grape_d {
            display: inline-block;
            width: 40px;
            height: 20px;
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center;
            vertical-align: top;
            margin-right: 4px;
        }
        .flg.fr {
            background-image: url(../images/france.png);
        }
        .flg.spa {
            background-image: url(../images/spain.png);
        }
        .flg.por {
            background-image: url(../images/portugal.png);
        }
        .flg.ita {
            background-image: url(../images/italy.png);
        }
        .flg.nz {
            background-image: url(../images/nz.png);
        }
        .grape.r_g {
            background-image: url(../images/daily/b_grape.png);
        }
        .grape.w_g {
            background-image: url(../images/daily/w_grape.png);
        }
        .grape_d.wr_g {
            background-image: url(../images/daily/wb_grape.png);
        }

        /* Feature Tags */
        .features {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 10px;
        }

        .feature-tag {
            display: flex;
            align-items: anchor-center;
            gap: 10px;
            padding: 10px 0;
            border-radius: 8px;
        }

        .feature-badge {
            width: 80px;
            min-width: 80px;
            padding: 5px 12px;
            border-radius: 10px;
            font-size: 14px;
            text-align: center;
            color: white;
            box-sizing: border-box;
        }


        .feature-text {
            font-size: 13px;
            color: #333333;
            line-height: 1.5;
        }

        /* Food Pairing */
        .food-pairing {
            margin-bottom: 40px;
        }

        .food-pairing-title {
            font-size: 14px;
            font-weight: bold;
            margin-bottom: 16px;
            color: #333;
        }

        .food-images {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 5px;
        }

        .food-image {
            width: 100%;
            object-fit: cover;
            border-radius: 8px;
        }

        .food-labels {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            font-size: 12px;
            text-align: center;
        }

        /* CTA Button */
        .cta-button {
            padding: 16px 32px;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            color: white;
            margin: auto;
            width: 100%;
            text-decoration: none !important;
            display: inline-block;
        }

        .cta-button:hover,
        .cta-button:focus,
        .cta-button:active {
            transform: translateY(-2px);
            opacity: 0.7;
            text-decoration: none !important;
            outline: none;
        }

        /* Wine Description Section */

        .wine-description-image {
            width: auto;
            height: 150px;
            margin: 0 auto;
        }

        .wine-description-content {
            flex: 1;
        }

        .for_pc {
            display: block;
        }
        .for_sp {
            display: none;
        }

        /* Responsive design for mobile */
        @media (max-width: 768px) {
            .for_pc {
                display: none;
            }
            .for_sp {
                display: block;
            }
            .kv-image {
                width: 100%;
                margin-top: 142px;
            }

            .wine-nav {
                padding: 12px 0;
            }

            .wine-description-section {
                padding: 20px 15px;
            }

            .description-text {
                font-size: 14px;
                line-height: 1.7;
                text-align: left;
            }

            .wine-nav {
                padding: 15px 0;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            .wine-nav::-webkit-scrollbar {
                height: 4px;
            }

            .wine-nav::-webkit-scrollbar-track {
                background: #f1f1f1;
            }

            .wine-nav::-webkit-scrollbar-thumb {
                background: #ccc;
                border-radius: 2px;
            }

            .nav-menu {
                flex-wrap: nowrap;
                gap: 0;
                max-width: none;
                width: max-content;
                min-width: 100%;
            }

            .nav-menu li {
                flex: 0 0 auto;
                width: auto;          
                border-right: 1px solid #e0e0e0;
            }

            .nav-menu li:last-child {
                border-right: none;
            }

            .nav-link {
                padding: 15px 12px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .nav-icon {
                height: 32px;
                width: auto;
                max-width: 100%;
                object-fit: contain;
            }

            .nav-link:hover {
                background-color: #f9f7f4;
            }

            .nav-link:active {
                background-color: #f0f0f0;
            }

            header {
                padding: 30px 20px;
            }

            .header-title {
                font-size: 36px;
            }

            .section {
                padding: 20px 10px;
            }

            .product-image-wrapper {
                margin-top: 20px;
                margin-bottom: 5px;
            }

            .product-copy-overlay {
                top:-5%;
                right: -5%;
                width: 70px;
            }

            .right {
                right: 78%;
            }

            .product-catch_img {
                width: 100%;
                max-width: 300px;
                margin-bottom: 5px;
            }

            .section-title {
                font-size: 28px;
                margin-bottom: 15px;
                height: auto;
            }
            .food-labels {
                gap: 0px;
            }

            /* Show toggle button on mobile */
            .toggle-button {
                display: block;
            }

            .toggle-button.in-view {
                opacity: 1;
                transform: translateY(0) scale(1);
                filter: blur(0);
            }

            /* Hide description content by default on mobile, show when expanded */
            .wine-description,
            .features,
            .food-pairing,
            .cta-button {
                display: none;
            }

            .collapsible-content:not(.hidden) .wine-description {
                display: grid;
            }
            .collapsible-content{
                padding: 3% 11%;
            }

            .collapsible-content:not(.hidden) .features,
            .collapsible-content:not(.hidden) .food-pairing,
            .collapsible-content:not(.hidden) .cta-button {
                display: block;
            }
            .food-pairing{
                margin-bottom: 20px;
            }
            .info-box {
                margin-bottom: 5px;
            }
        }

        /* PC表示では、プラスボタンを非表示にしてすべての情報を常に表示 */
        @media (min-width: 769px) {
            .toggle-button {
                display: none !important;
            }

            .collapsible-content {
                display: block !important;
                width: 80%;
                margin: 0 auto;
                max-width: 800px;
            }

            .collapsible-content.hidden {
                display: block !important;
            }

            .wine-description {
                display: grid !important;
            }

            .features,
            .food-pairing,
            .cta-button {
                display: block !important;
            }

            .container section {
                display: flex;
                flex-direction: row;
                gap: 0;
            }

            .container section .section {
                width: 50%;
                flex: 1;
            }
        }
        .no-io .product-image-wrapper,
        .no-io .product-image,
        .no-io .product-copy-overlay,
        .no-io .product-catch_img,
        .no-io .collapsible-content {
          opacity: 1 !important;
          transform: none !important;
          filter: none !important;
        }