/* レスポンシブデザイン - モバイル最適化 */

/* モバイル向けベーススタイル */
@media (max-width: 768px) {
    /* タイトルセクション */
    .main-title {
        font-size: 4rem;
        flex-wrap: wrap;
        justify-content: center;
        line-height: 1.1;
    }
    
    .title-char {
        font-size: 3.5rem;
        margin: 0 0.05em;
    }
    
    .subtitle {
        font-size: 0.95rem;
        padding: 9px 18px;
        margin: 0 10px;
    }
    
    .subtitle-sub {
        font-size: 0.95rem;
        padding: 8px 16px;
        margin: 10px;
    }

    /* ヒーローセクション */
    .hero {
        min-height: 100vh;
        overflow: hidden;
        padding-bottom: 72px;
    }
    
    /* ヒーロータイトルエリア */
    .hero-title {
        position: relative;
        top: auto;
        transform: none;
        left: auto;
        width: 100vw;
        max-width: none;
        margin: 0;
        padding: 66px 12px 24px;
        overflow: hidden;
    }

    .hero-media-logos {
        display: none;
    }

    .hero-stage {
        width: 100%;
        max-width: 390px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 8px;
    }

    .hero-title.hero-stage {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .hero-logo-shell {
        width: calc(100vw - 22px);
        max-width: 370px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 30px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .hero-logo-image {
        max-width: none !important;
    }

    .hero-copy-block {
        width: 100%;
        max-width: 410px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 26px;
    }

    .hero-main-copy {
        font-size: clamp(1.02rem, 4.55vw, 1.5rem);
        margin-bottom: 22px;
        line-height: 1.22;
    }

    .hero-main-copy > span {
        white-space: normal;
    }

    .hero-main-copy .hero-copy-one-line {
        gap: 0.08em;
        padding: 0;
        white-space: nowrap;
        letter-spacing: -0.01em;
    }

    .hero-copy-word {
        text-shadow:
            0 1px 0 #fff8d7,
            0 2px 0 #d8843d,
            0 4px 0 rgba(110, 20, 16, 0.3),
            0 12px 20px rgba(104, 22, 18, 0.2);
        transform: translateY(-0.05em) translateZ(160px) scale(1.72) rotateX(42deg);
    }

    .hero-subcopy-marquee {
        gap: 7px;
        margin-top: 20px;
        width: 100%;
    }

    .hero-subcopy-line {
        width: 100%;
        max-width: 100%;
        padding: 6px 9px;
        font-size: clamp(0.82rem, 3.4vw, 0.95rem);
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .hero-trust-badges {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 22px;
    }
    
    /* バッジのレイアウト調整 */
    .media-badge {
        font-size: 0.78rem !important;
        padding: 5px 8px !important;
        margin: 2px !important;
    }

    .hero-trust-badges {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px !important;
    }

    .hero-trust-badges .media-badge {
        white-space: normal !important;
        text-align: center;
        line-height: 1.35;
        width: 100%;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 24px;
    }

    .hero-products-link,
    .hero-secondary-link {
        width: 100%;
        min-width: 0;
        margin-left: 0 !important;
        padding: 11px 14px !important;
        font-size: 0.95rem !important;
    }
    
    /* 購入情報バー（削除済み - ヒーロータイトル内に統合） */

    .hero-decorations {
        opacity: 0.6;
    }

    .hero-decorations .decoration {
        font-size: 2rem !important;
    }

    .hero-media-item img {
        width: 100px;
        height: auto;
    }

    .museum-feature {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
        margin-bottom: 20px;
    }

    .museum-feature-media img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .museum-feature-copy h3 {
        font-size: clamp(1.45rem, 6vw, 2rem);
    }

    .museum-feature-meta {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .museum-feature-cta {
        width: 100%;
        text-align: center;
    }

    .museum-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .museum-card-image {
        height: 148px;
    }

    .museum-card-title {
        font-size: 0.78rem;
        padding: 7px 8px;
    }

    .mix-counter-panel {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .mix-counter {
        padding: 10px 10px 9px;
    }

    .mix-counter-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 8px;
    }

    .product-options .mix-counter-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .product-options .mix-counter-btn {
        height: 52px;
        min-height: 52px;
        font-size: 1.7rem;
    }

    .product-options .mix-counter-value {
        min-height: 46px;
        font-size: 0.98rem;
    }

    .mix-type-chip {
        font-size: 0.84rem;
    }

    .mix-counter-note {
        font-size: 0.78rem;
    }

    .mix-summary {
        font-size: 0.9rem;
    }

    .mix-help {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    /* コミックパネル */
    .comic-panel {
        padding: 25px 20px;
        margin: 15px 10px;
        border-radius: 12px;
        transform: none !important;
    }

    .comic-panel:hover,
    .comic-panel:active,
    .comic-panel:focus-within {
        transform: none !important;
    }

    .comic-panel h2 {
        font-size: 2.2rem !important;
        margin-bottom: 30px !important;
    }

    /* カート */
    .cart {
        display: none;
        width: min(100vw, 420px);
        max-width: 100%;
        right: 0;
        transform: translateX(100%);
        border-left: none;
        border-top: 8px solid var(--black);
    }

    .cart.open {
        display: block;
        transform: translateX(0);
    }

    .cart-header {
        padding: 20px;
        font-size: 1.5rem;
    }

    .cart-items {
        padding: 20px;
    }

    .cart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 15px 0;
    }

    .cart-item-actions {
        justify-content: space-between;
        margin: 0;
    }

    /* タイムライン */
    .timeline-item {
        flex-direction: column !important;
        padding: 30px 0;
        gap: 20px;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        transform: none !important;
    }

    .timeline-item.timeline-animated,
    .timeline-item.reveal-on-scroll {
        transform: none !important;
    }
    
    .timeline-content-box {
        width: min(100%, calc(100vw - 56px));
        max-width: 100%;
        margin: 20px auto;
        padding: 25px;
        transform: none !important;
    }

    .timeline-year {
        position: relative;
        margin: 20px auto;
        left: auto;
        top: auto;
        width: fit-content;
        max-width: calc(100vw - 56px);
        transform: none !important;
        font-size: 1.8rem;
        padding: 8px 16px;
    }

    .timeline-line {
        display: none;
    }

    /* プロセスグリッド */
    .process-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .process-step {
        display: flex;
        align-items: center;
        gap: 20px;
        text-align: left;
    }

    .process-number {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        flex-shrink: 0;
        margin: 0;
    }

    /* 商品グリッド */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 28px;
    }

    .cooking-poster-frame {
        width: min(100%, 760px);
        padding: 12px;
        border-radius: 22px;
        transform: none;
    }

    .cooking-poster-image {
        border-radius: 14px;
    }

    .cooking-poster-highlights {
        gap: 10px;
        margin-top: 16px;
    }

    .cooking-poster-highlights .cooking-tag {
        width: 100%;
    }

    .products-guest-note,
    .cooking-intro {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .product-card {
        max-width: none;
    }

    .product-image {
        height: 152px;
    }

    .product-image-phone {
        height: auto;
        min-height: 164px;
    }

    .product-card-featured .product-image {
        height: 144px;
    }

    .product-info {
        padding: 15px 13px;
    }

    .product-card-featured .product-info,
    .product-card-phone .product-info {
        padding: 13px 12px;
    }

    .product-card-featured .product-description,
    .product-card-phone .product-description {
        font-size: 0.875rem;
        line-height: 1.5;
        margin-bottom: 8px;
    }

    .product-card-featured .product-meta-row,
    .product-card-phone .product-meta-row {
        margin-bottom: 8px;
    }

    .product-card-featured .product-price-row,
    .product-card-phone .product-price-row {
        margin-bottom: 6px;
    }

    .product-card-featured .product-actions,
    .product-card-phone .product-actions {
        gap: 5px;
    }

    .product-card-featured .mix-counter-panel {
        gap: 6px;
        margin-top: 0;
    }

    .product-card-featured .mix-help {
        font-size: 0.78rem;
        line-height: 1.38;
    }

    .phone-order-visual {
        padding: 14px 14px 12px;
        gap: 6px;
    }

    .phone-order-visual strong {
        font-size: 1.28rem;
    }

    .phone-order-visual p {
        max-width: none;
        font-size: 0.875rem;
        line-height: 1.45;
    }

    .phone-order-link-number {
        font-size: 1.16rem;
    }

    .phone-order-note {
        font-size: 0.74rem;
    }

    .product-name {
        font-size: 1.42rem;
    }

    .product-price {
        font-size: 1.88rem;
    }

    .add-to-cart {
        padding: 9px 14px;
        font-size: 1rem;
    }

    /* 引用セクション */
    .quote-text {
        font-size: 2rem;
        line-height: 1.3;
        padding: 0 20px;
    }

    .quote-bg {
        display: none;
    }

    .access-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .access-lead {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .access-card {
        padding: 22px 18px;
    }

    .access-map {
        min-height: 300px;
        width: 100%;
        max-width: 100%;
    }

    .access-value {
        font-size: 1.1rem;
    }

    .access-links {
        flex-direction: column;
        align-items: stretch;
    }

    .access-link-button,
    .access-phone-link {
        width: 100%;
    }

    /* 100名店画像 */
    .meiten-image-container {
        position: relative;
        width: 72px;
        height: 72px;
        top: auto;
        left: auto;
        right: auto;
        margin: 10px auto 0;
    }

    /* フローティングカート */
    .floating-cart {
        top: auto;
        right: 14px;
        bottom: calc(18px + env(safe-area-inset-bottom));
        width: 74px;
        height: 74px;
        min-height: 74px;
        padding: 0;
        border: 3px solid var(--black);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 5px 5px 0 var(--shadow);
    }

    .floating-cart img {
        width: 58px !important;
        height: 58px !important;
    }

    .cart-count {
        top: 5px;
        right: 4px;
        width: 24px;
        height: 24px;
        font-size: 0.82rem;
        border-width: 3px;
    }

    .cta-panel {
        left: 12px;
        bottom: calc(18px + env(safe-area-inset-bottom));
        transform: none;
        max-width: calc(100vw - 104px);
    }

    .cta-panel .add-to-cart {
        height: 54px;
        width: 100%;
        padding: 0 16px;
        font-size: 1rem !important;
        white-space: nowrap;
        box-shadow: 4px 4px 0 var(--shadow);
    }

    /* パネルナンバー */
    .panel-number {
        font-size: 2.2rem;
        padding: 8px 20px;
        top: -25px;
        left: 20px;
    }

    /* メディアウォール */
    .media-wall {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .media-badge {
        padding: 15px;
        font-size: 1.2rem;
    }

    .taste-feature-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 18px;
    }

    .taste-feature-media {
        min-height: 340px;
    }

    .taste-gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .taste-card--wide {
        grid-column: auto;
    }

    .timeline-photo {
        width: min(100%, calc(100vw - 56px));
        max-width: 100%;
        height: 200px;
        margin: 0 auto !important;
        transform: none !important;
    }

    .timeline-item:nth-child(odd) .timeline-photo,
    .timeline-item:nth-child(even) .timeline-photo {
        margin: 0 auto !important;
        transform: none !important;
    }

    /* タッチ最適化 */
    .add-to-cart,
    .checkout-btn,
    .floating-cart {
        min-height: 44px; /* iOS推奨タッチサイズ */
        touch-action: manipulation;
    }

    /* オプションボタン */
    .option-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .option-btn {
        padding: 12px;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 3rem;
    }
    
    .title-char {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 0.88rem;
        padding: 7px 14px;
    }
    
    .subtitle-sub {
        font-size: 0.88rem;
        padding: 7px 14px;
    }
    
    /* さらに小さな画面でのバッジ調整 */
    .hero-title {
        padding-top: 56px;
    }

    .hero-main-copy {
        font-size: clamp(1.24rem, 5.6vw, 1.68rem);
        line-height: 1.24;
    }

    .hero-subcopy-marquee {
        gap: 7px;
    }

    .hero-subcopy-line {
        font-size: clamp(0.9rem, 3.95vw, 1rem);
        padding: 6px 10px;
    }

    .hero-logo-shell {
        max-width: 366px;
        margin-bottom: 28px;
        padding: 0;
    }
    
    .media-badge {
        font-size: 0.75rem !important;
        padding: 5px 8px !important;
    }

    .hero-products-link {
        font-size: 0.95rem !important;
    }
    
    /* 購入情報バー（削除済み） */
    
    .comic-panel {
        padding: 20px;
        margin: 10px;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .media-wall {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .media-badge {
        font-size: 1.2rem;
        padding: 15px;
    }

    .taste-feature-card {
        padding: 14px;
        border-radius: 18px;
    }

    .taste-feature-media {
        min-height: 260px;
        border-radius: 14px;
    }

    .taste-feature-copy h3 {
        font-size: clamp(1.65rem, 7vw, 2.15rem);
    }

    .taste-feature-copy p {
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .taste-gallery-grid {
        gap: 14px;
    }

    .taste-card {
        border-radius: 18px;
    }

    .taste-card__caption {
        padding: 14px 14px 16px;
    }

    .taste-card__caption h3 {
        font-size: 1.28rem;
    }

    .taste-card__caption p {
        font-size: 0.94rem;
    }

    .cooking-poster-frame {
        padding: 8px;
        border-radius: 18px;
    }

    .cooking-poster-image {
        border-radius: 12px;
    }

    .cooking-poster-highlights .cooking-tag {
        font-size: 0.88rem;
        padding: 7px 10px;
    }

    .access-map {
        min-height: 260px;
        width: 100%;
        max-width: 100%;
    }

    .meiten-image-container {
        width: 64px;
        height: 64px;
        margin-top: 8px;
    }

    .floating-cart {
        right: 10px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        width: 68px;
        height: 68px;
        min-height: 68px;
    }

    .floating-cart img {
        width: 52px !important;
        height: 52px !important;
    }

    .cta-panel {
        left: 10px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        max-width: calc(100vw - 96px);
    }

    .cta-panel .add-to-cart {
        min-height: 62px;
        padding: 11px 40px 11px 16px;
        border-radius: 16px;
    }

    .cta-panel-kicker {
        font-size: 0.6rem;
        letter-spacing: 0.12em;
    }

    .cta-panel-label {
        font-size: 0.96rem;
    }
}

/* タブレット向け最適化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title h1 {
        font-size: 6rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-content-box {
        width: 40%;
    }
}
