/* ========================================
   レスポンシブデザイン専用CSS
======================================== */

/* タブレット横向き (1024px以下) */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    .header-main {
        padding: 15px 0;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .slide-text h2 {
        font-size: 2.5rem;
    }
    
    .features {
        padding: 60px 0;
    }
    
    .popular-products {
        padding: 60px 0;
    }
    
    .about-section {
        padding: 60px 0;
    }
    
    .testimonials {
        padding: 60px 0;
    }
    
    .news {
        padding: 60px 0;
    }
}

/* タブレット縦向き (768px以下) */
@media (max-width: 768px) {
    /* オープン準備中バナー */
    .preparation-banner {
        padding: 10px 0;
    }
    
    .preparation-content {
        flex-direction: row;
        gap: 8px;
        padding: 0 15px;
    }
    
    .preparation-text {
        font-size: 14px;
    }
    
    .preparation-text strong {
        font-size: 15px;
    }
    
    /* 株式会社MASSEリンク */
    .corporate-link {
        display: none;
    }
    
    /* ヘッダー調整 */
    .header-top {
        display: block;
        padding: 10px 0;
    }
    
    .header-top .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-info {
        display: flex;
        gap: 10px;
    }
    
    .header-info span {
        font-size: 12px;
    }
    
    .header-info > span:nth-child(1) {
        margin-right: 0px;
    }
    
    .hours-text {
        display: none;
    }
    
    .header-account {
        display: flex;
        gap: 8px;
        margin-left: 0;
        margin-right: 10px;
    }
    
    .header-account a {
        font-size: 13px;
    }
    
    .header-flex {
        justify-content: space-between;
        align-items: center;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo img {
        height: 120px;
    }
    
    /* ナビとサーチバーのラッパー */
    .nav-search-wrapper {
        display: block;
        position: static;
        flex-direction: column;
        margin-left: 0;
        width: 100%;
    }
    
    .search-bar {
        margin: 15px 0;
        width: 100%;
    }
    
    .search-bar form {
        width: 80%;
        margin: 0 auto;
    }
    
    /* モバイルナビゲーション */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100%;
        background-color: white;
        z-index: 9999;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding-top: 60px;
    }
    
    .nav-menu > li {
        width: 100%;
    }
    
    .nav-menu > li > a {
        font-size: 16px;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
        display: block;
    }
    
    /* スライダー調整 */
    .hero-slider {
        height: 350px;
    }
    
    .slide-content {
        height: 350px;
    }
    
    .slide-text {
        padding: 0 15px;
    }
    
    .slide-text h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .slide-text p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    /* セクション調整 */
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .features {
        padding: 40px 0;
    }
    
    .features-grid {
        gap: 20px;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .feature-item i {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    /* 商品グリッド */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 13px;
    }
    
    .price {
        font-size: 1.3rem;
    }
    
    /* こだわりセクション */
    .about-grid {
        gap: 30px;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .about-item {
        margin-bottom: 20px;
    }
    
    .about-item h4 {
        font-size: 1.1rem;
    }
    
    .about-item p {
        font-size: 14px;
        padding-left: 30px;
    }
    
    /* お客様の声 */
    .testimonials-grid {
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    /* スワイパーナビゲーション */
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px !important;
        height: 35px !important;
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 20px !important;
    }
    
    /* フッター */
    .footer-top {
        padding: 40px 0 30px;
    }
    
    .footer-grid {
        gap: 30px;
    }
    
    .footer-column h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
}

/* スマートフォン横向き (640px以下) */
@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        border-radius: 8px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .product-description {
        display: none;
    }
    
    .btn-add-cart {
        padding: 10px;
        font-size: 14px;
    }
}

/* スマートフォン縦向き (480px以下) */
@media (max-width: 480px) {
    /* オープン準備中バナー */
    .preparation-banner {
        padding: 8px 0;
    }
    
    .preparation-content {
        flex-wrap: wrap;
        gap: 5px;
        padding: 0 10px;
    }
    
    .preparation-content i {
        font-size: 1rem;
    }
    
    .preparation-text {
        font-size: 13px;
        flex: 1;
    }
    
    .preparation-text strong {
        font-size: 14px;
        display: inline;
        margin-right: 5px;
    }
    
    /* 基本設定 */
    body {
        font-size: 18px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    
    /* ステップナビゲーション詳細調整 */
    div.step:nth-child(1) > span:nth-child(1) {
        margin-right: 3px;
    }
    
    span.step-arrow:nth-child(2) {
        margin-right: 2px;
        padding-top: 5px;
        margin-left: 2px;
    }
    
    div.step:nth-child(3) > span:nth-child(1) {
        margin-right: 3px;
    }
    
    span.step-arrow:nth-child(4) {
        margin-left: 2px;
        margin-right: 2px;
        padding-top: 5px;
    }
    
    div.step:nth-child(5) > span:nth-child(1) {
        margin-right: 3px;
    }
    
    span.step-arrow:nth-child(6) {
        margin-left: 2px;
        margin-right: 2px;
        padding-top: 5px;
    }
    
    div.step:nth-child(7) > span:nth-child(1) {
        margin-right: 3px;
    }
    
    /* カート詳細表示調整 */
    .item-subtotal {
        font-size: 24px;
    }
    
    .summary-row.total {
        font-size: 24px;
    }
    
    /* ヘッダー */
    .header-main {
        padding: 10px 0;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo img {
        height: 80px;
    }
    
    .mobile-menu-toggle {
        width: 25px;
        height: 18px;
    }
    
    .search-bar input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .search-bar button {
        padding: 8px 15px;
    }
    
    /* スライダー */
    .hero-slider {
        height: 250px;
    }
    
    .slide-content {
        height: 250px;
    }
    
    .slide-text h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .slide-text p {
        font-size: 0.85rem;
        margin-bottom: 15px;
        padding: 0 30px;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    /* セクションタイトル */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .section-title::after {
        width: 60px;
        height: 2px;
    }
    
    /* 特徴セクション */
    .features {
        padding: 30px 0;
    }
    
    .feature-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .feature-item i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .feature-item h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .feature-item p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    /* 商品セクション */
    .popular-products {
        padding: 30px 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card {
        border-radius: 8px;
    }
    
    .product-badge {
        padding: 3px 10px;
        font-size: 11px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-name {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .product-description {
        display: block;
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .price {
        font-size: 1.2rem;
    }
    
    .price-original {
        font-size: 1rem;
    }
    
    .tax-info {
        font-size: 11px;
    }
    
    .btn-add-cart {
        padding: 10px;
        font-size: 14px;
    }
    
    /* スワイパーナビゲーション */
    .swiper-button-next,
    .swiper-button-prev {
        width: 30px !important;
        height: 30px !important;
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 16px !important;
    }
    
    /* こだわりセクション */
    .about-section {
        padding: 30px 0;
    }
    
    .about-text h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .about-item h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .about-item h4 i {
        font-size: 16px;
    }
    
    .about-item p {
        font-size: 13px;
        padding-left: 25px;
        line-height: 1.7;
    }
    
    .about-image {
        margin-top: 30px;
    }
    
    /* お客様の声 */
    .testimonials {
        padding: 30px 0;
    }
    
    .testimonial-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .stars {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .testimonial-text {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .testimonial-author {
        font-size: 12px;
    }
    
    /* ニュース */
    .news {
        padding: 30px 0;
    }
    
    .news-item {
        padding: 15px 10px;
    }
    
    .news-item time {
        font-size: 12px;
        min-width: auto;
    }
    
    .news-category {
        padding: 2px 8px;
        font-size: 11px;
        margin-right: 10px;
    }
    
    .news-item a {
        font-size: 14px;
    }
    
    /* フッター */
    .footer-top {
        padding: 30px 0 20px;
    }
    
    .footer-column {
        margin-bottom: 25px;
        text-align: center;
    }
    
    .footer-column h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .footer-column ul {
        text-align: center;
    }
    
    .footer-column ul li {
        margin-bottom: 8px;
        text-align: center;
    }
    
    .footer-column a,
    .footer-column p {
        font-size: 15px;
        text-align: center;
    }
    
    .social-links {
        text-align: center;
        justify-content: center;
        display: flex;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 14px;
        margin-right: 8px;
    }
    
    .footer-bottom {
        padding: 15px 0;
    }
    
    .footer-bottom p {
        font-size: 12px;
        line-height: 1.6;
    }
    
    /* カートページ用レイアウト調整 */
    .cart-link {
        margin-left: 0px;
        padding-top: 0px;
    }
    
    /* ステップナビゲーション詳細調整 */
    div.step:nth-child(1) > span:nth-child(1) {
        margin-right: 3px;
    }
    
    span.step-arrow:nth-child(2) {
        margin-right: 2px;
        padding-top: 5px;
        margin-left: 2px;
    }
    
    div.step:nth-child(3) > span:nth-child(1) {
        margin-right: 3px;
    }
    
    span.step-arrow:nth-child(4) {
        margin-left: 2px;
        margin-right: 2px;
        padding-top: 5px;
    }
    
    div.step:nth-child(5) > span:nth-child(1) {
        margin-right: 3px;
    }
    
    span.step-arrow:nth-child(6) {
        margin-left: 2px;
        margin-right: 2px;
        padding-top: 5px;
    }
    
    div.step:nth-child(7) > span:nth-child(1) {
        margin-right: 3px;
    }
    
    /* カートサイドバー */
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-header {
        padding: 15px;
    }
    
    .cart-header h3 {
        font-size: 1.1rem;
    }
    
    .cart-items {
        padding: 15px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-name {
        font-size: 14px;
    }
    
    .cart-item-price {
        font-size: 14px;
    }
    
    .quantity-btn {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    
    .cart-footer {
        padding: 15px;
    }
    
    .cart-total {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
}

/* 超小型デバイス (360px以下) */
@media (max-width: 360px) {
    .slide-text h2 {
        font-size: 1.2rem;
    }
    
    .slide-text p {
        font-size: 0.8rem;
        padding: 0 30px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .product-name {
        font-size: 0.95rem;
    }
    
    .price {
        font-size: 1.1rem;
    }
}

/* プリント用CSS */
@media print {
    .site-header,
    .hero-slider,
    .mobile-menu-toggle,
    .btn-add-cart,
    .social-links {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}