/* ========================================
   アトリエケチャップ - レスポンシブCSS
   ======================================== */

/* 基本設定 - 横スクロール防止 */
body {
    overflow-x: hidden;
}

/* すべての画像をレスポンシブ対応 */
img {
    max-width: 100%;
    height: auto;
}

/* レスポンシブ版ヘッダーロゴテキスト（デフォルト非表示） */
.header-logo-text {
    display: none;
}

/* モバイル フローティングフッター（デフォルト非表示） */
.mobile-floating-footer {
    display: none !important;
}

/* ブログ詳細ページのサムネイル非表示（全画面） */
.single-page .single-thumbnail {
    display: none !important;
}

/* ========================================
   タブレット用（768px以下）
   ======================================== */
@media (max-width: 768px) {
    /* ヘッダートップ */
    .header-top {
        background-color: white;
        border-bottom: 4px solid #c01f2c;
    }

    /* ヘッダー調整 */
    .site-header {
        height: 450px;
    }

    .header-container {
        padding: 10px 20px;
    }

    .header-logo img {
        max-width: 150px;
        height: auto;
    }

    .header-right-content {
        display: none;
    }

    .header-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* コンテナ幅調整 */
    .container {
        padding: 0 15px;
    }

    /* ソーシャルボタン */
    .social-buttons {
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .social-button {
        flex: 1;
        max-width: 30%;
    }

    .social-button img {
        max-width: 100% !important;
        width: 100%;
    }

    /* グリッドレイアウト - 2列表示 */
    .product-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .wanted-section .product-grid,
    .pickup-section .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* wanted/pickupセクションの画像を正方形に */
    .wanted-section .product-card .product-image,
    .pickup-section .product-card .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        object-fit: cover;
    }

    .how-to-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
        flex-direction: unset !important;
        padding: 0 15px;
    }

    .how-to-box {
        width: 100%;
        max-width: 160px;
        margin: 0 auto;
    }

    /* 購入・オンラインブロック */
	.purchase-inner {
        flex-direction: column !important;
    }
    .online-inner {
        flex-direction: column-reverse !important;
    }

    
    .purchase-content {
        margin-right: 0 !important;
        margin-left: 0 !important;
		margin-top: 0 !important;
    }

    .online-content {
        margin-left: 0 !important; 
        margin-right: 0 !important;
		margin-bottom: 0 !important;
    }
	
    /* purchase-online-wrapperを中央揃え */
    .purchase-online-wrapper {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* セクションパディング */
    .section {
        padding: 60px 0;
    }

    /* フッターメニュー */
    .footer-menu ul {
        flex-wrap: wrap;
        gap: 15px;
    }

    /* 横スクロール防止の追加対策 */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .section,
    .container,
    .header-container,
    .nav-container {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    /* レスポンシブ版ヘッダーロゴテキスト */
    .header-logo {
        display: flex !important;
        align-items: center !important;
        gap: 20px !important;
    }

    .header-logo a {
        flex-shrink: 0;
    }

    .header-logo-text {
        display: block !important;
        line-height: 1.4 !important;
        font-family: "UDデジタル教科書体", "ヒラギノ角ゴ ProN", "游ゴシック", "Meiryo UI", "MS UI Gothic", sans-serif;
    }

    .logo-text-line1 {
        font-size: 12px !important;
        font-weight: bold !important;
        color: #c19450 !important;
        margin: 0 !important;
    }

    .logo-text-line2 {
        font-size: 11px !important;
        color: #666 !important;
        margin: 0 !important;
        margin-top: 2px !important;
		text-align: right;
    }

    /* top-heading-section テキストサイズ調整 */
    .top-main-heading,
    .top-sub-heading,
    .top-cta-heading {
        font-size: 1.2rem !important;
    }

    .top-main-heading,
    .top-sub-heading {
        margin-bottom: 0 !important;
    }

    .top-cta-heading {
        margin-top: 0 !important;
    }

    .top-heading-section {
        padding: 20px 15px !important;
    }

    /* モバイル フローティングフッター */
    .mobile-floating-footer {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
        z-index: 9999 !important;
        height: 70px !important;
    }

    .floating-btn {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        color: #333 !important;
        border-right: 1px solid #eee !important;
        padding: 8px 5px !important;
        transition: background 0.3s !important;
    }

    .floating-btn:last-child {
        border-right: none !important;
    }

    .floating-btn:active {
        background: #f5f5f5 !important;
    }

    .btn-icon {
        font-size: 20px !important;
        margin-bottom: 3px !important;
    }

    .btn-text {
        font-size: 11px !important;
        font-weight: bold !important;
        line-height: 1.2 !important;
    }

    .btn-subtext {
        font-size: 9px !important;
        color: #666 !important;
        margin-top: 2px !important;
    }

    .phone-btn {
        background: #000 !important;
    }

    .phone-btn .btn-icon,
    .phone-btn .btn-text {
        color: white !important;
        font-weight: normal !important;
    }

    .online-btn {
        background: #000 !important;
    }

    .online-btn .btn-icon,
    .online-btn .btn-text {
        color: white !important;
        font-weight: normal !important;
    }

    .line-btn {
        background: #000 !important;
    }

    .line-btn .btn-icon,
    .line-btn .btn-text {
        color: white !important;
        font-weight: normal !important;
    }

    .phone-btn .btn-icon svg,
    .online-btn .btn-icon svg {
        width: 24px;
        height: 24px;
        fill: white !important;
    }

    /* Our Strengths セクション */
    .reason-text {
        font-size: 1.2rem !important;
    }

    /* Point セクション - 2列表示 */
    .p-top__feature-items,
    .c-features {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .c-feature {
        width: 100% !important;
    }

    .c-feature__para {
        font-size: 0.9rem !important;
    }

    /* 各見出しのサブタイトル */
    .strengths-subtitle,
    .wanted-subtitle,
    .pickup-subtitle,
    .point-subtitle,
    .voice-subtitle,
    .section-subtitle,
    .howto-subtitle,
    .blog-subtitle,
    .company-subtitle {
        font-size: 1rem !important;
    }

    /* Point ヘッダー */
    .point-header {
        margin-bottom: 0 !important;
    }

    /* お客様の声 */
    .voice-grid {
        padding: 0 15px !important;
    }

    /* Purchase Online セクション */
    .purchase-inner,
    .online-inner {
        flex-direction: column;
        /* gap: 30px; */
    }

    .purchase-image,
    .online-image {
        flex: 1;
        width: 100%;
    }

    .purchase-content,
    .online-content {
        padding: 20px;
        text-align: center;
        margin: 0;
    }

    .purchase-bg-square,
    .online-bg-square {
        width: 95%;
        height: auto;
        min-height: 500px;
    }

    .purchase-image img,
    .online-image img {
        width: 80%;
        border-radius: 0;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .purchase-online-section::before {
        width: 90%;
        height: 1100px !important;
    }

    /* 見出しアイコン */
    .strengths-icon,
    .wanted-icon,
    .pickup-icon,
    .point-icon,
    .voice-icon,
    .blog-icon,
    .company-icon,
    .howto-icon {
        width: 20% !important;
        height: auto !important;
    }
}

/* ========================================
   スマートフォン用（480px以下）
   ======================================== */
@media (max-width: 480px) {
    /* ヘッダー */
    .site-header {
        height: 400px;
    }
	.site-header {
		margin-top: 0px;
	}

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

	.header-content {
	width: 100%;
    position: relative;
    bottom: 0px;
    left: 0px;
    z-index: 2;
    text-align: center;
	margin-top: 25%;
	}
	.site-logo {
    background-color: #FFEB3B;
    width: auto;
    min-width: 250px;
    height: auto;
    border-radius: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 20px 20px;
	}
	.tagline {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
	}

    /* セクション */
    .section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

.kaitori-purchase-page .purchase-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0 40px;
    margin-top: 0px;
    text-align: center;
    color: white;
}

.online-page-header {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    padding: 60px 0 40px;
    margin-top: 0px;
    text-align: center;
    color: white;
}

.online-page-titl
 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: bold;
}



    /* グリッド - 商品は2列維持 */
    .product-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .wanted-section .product-grid,
    .pickup-section .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* wanted/pickupセクションの画像を正方形に */
    .wanted-section .product-card .product-image,
    .pickup-section .product-card .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        object-fit: cover;
    }

    /* HOW TO - 2列×2行 */
    .how-to-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
        flex-direction: unset !important;
        padding: 0 10px;
    }

    .how-to-box {
        width: 100%;
        max-width: 150px;
        margin: 0 auto;
    }

    /* フォントサイズ調整 */
    body {
        font-size: 14px;
    }

    /* ボタンサイズ調整 */
    .purchase-button,
    .online-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ========================================
   個別ページのレスポンシブ設定
   ======================================== */

/* 買取についてページ */
@media (max-width: 768px) {
    .purchase-page-header {
        margin-top: 140px;
        padding: 60px 0 40px;
    }

    .purchase-page-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .methods-grid {
        grid-template-columns: 1fr;
    }

    .flow-steps {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* お問い合わせページ */
@media (max-width: 768px) {
    .contact-page-header {
        margin-top: 0px;
        padding: 60px 0 40px;
    }

    .contact-page-title {
        font-size: 2rem;
    }

    .contact-form {
        padding: 20px;
    }

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

/* 作家一覧ページ */
@media (max-width: 768px) {
    .artists-page-header {
        margin-top: 0px;
        padding: 60px 0 40px;
    }

    .artists-page-title {
        font-size: 1.5rem;
    }

    .artists-index-nav {
        font-size: 0.9rem;
        gap: 10px;
    }

    /* .artists-grid は style.css で管理 */

.artist-detail .artist-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0 40px;
    margin-top: 0px;
    text-align: center;
    color: white;
}

}

@media (max-width: 480px) {
    /* .artists-grid は style.css で管理 */

    .artist-thumbnail {
        height: 120px;
    }

    .artist-info {
        padding: 15px;
    }

    .artist-info .artist-name {
        font-size: 1rem;
    }
}

/* 作品一覧ページ */
@media (max-width: 768px) {
    .artworks-page-header {
        margin-top: 0px;
        padding: 60px 0 40px;
    }

    .artworks-page-title {
        font-size: 2rem;
    }

    .category-filter {
        flex-wrap: wrap;
        gap: 10px;
    }

    .artworks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
.single-artwork .breadcrumb-wrapper {
    margin-top: 28px;
}

}

@media (max-width: 480px) {
    .artworks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .artwork-card-image {
        height: 150px;
    }

    .artwork-card-info {
        padding: 15px;
    }

    .artwork-card-title {
        font-size: 1rem;
    }
}

/* ニュース・ブログページ */
@media (max-width: 768px) {
    .single-content {
        padding: 30px 20px;
    }

    .single-thumbnail img {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .single-title {
        font-size: 1.5rem;
    }

    .single-body {
        font-size: 0.95rem;
    }
}

/* ========================================
   モバイルメニュー
   ======================================== */

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid #eee;
}

.mobile-menu-list li:last-child {
    border-bottom: none;
}

.mobile-menu-list a {
    display: block;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.mobile-menu-list a:hover {
    color: #FF6347;
}

/* ========================================
   ユーティリティクラス
   ======================================== */
@media (max-width: 768px) {
    /* テキスト中央揃え */
    .text-center-mobile {
        text-align: center !important;
    }

    /* 非表示 */
    .hide-mobile {
        display: none !important;
    }

    /* マージン調整 */
    .mb-mobile-20 {
        margin-bottom: 20px !important;
    }

    .mt-mobile-20 {
        margin-top: 20px !important;
    }
}

/* 作家一覧ページ - 作家名の改行設定 */
  @media (max-width: 768px) {
      .artist-item .artist-info .artist-name {
          white-space: normal !important;
          word-wrap: break-word;
          overflow-wrap: break-word;
          line-height: 1.4;
          min-height: 2.8em; /* 2行分の高さを確保 */
      }
  }

  @media (max-width: 480px) {
      .artist-item .artist-info .artist-name {
          font-size: 0.9rem;
          white-space: normal !important;
          word-wrap: break-word;
          overflow-wrap: break-word;
          line-height: 1.3;
          min-height: 2.6em; /* 2行分の高さを確保 */
      }

      .artist-item .artist-info {
          padding: 10px 5px;
      }

      /* 作家一覧セクション */
      .artists-list-section {
          padding: 0px;
      }

      /* 作家索引ナビゲーション */
      .artists-index-nav {
          margin-bottom: 30px;
      }
  }

