/**
 * モバイルデバイス向けの最適化スタイル
 *
 * このCSSファイルは、スマートフォンなどの小さな画面に最適化されたスタイルを提供します。
 * メディアクエリを使用して、特定の画面サイズでのみスタイルが適用されるようにしています。
 * 他のCSSファイルに分散していたモバイル向けスタイルを一元管理しています。
 * このCSSは必ず最後に読み込み、他のCSSのメディアクエリを上書きする。
 *
 * @package collemi
 */

/**
 * 共通レイアウト最適化（スマホ向け）
 */
@media (max-width: 575px) {
  /* コンテナの最適化 */
  .container {
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
  }
  
  /* サイトメインの最適化 */
  .site-main {
    padding: 10px;
  }

  /* ページヘッダーの最適化 */
  .page-header {
    margin-bottom: 15px;
    padding: 10px 5px;
  }

  .page-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .archive-description p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
  }
  
  /* パンくずリストの最適化 */
  .breadcrumbs {
    font-size: 0.8rem;
    padding: 0.7rem 0;
    margin-bottom: 1rem;
  }
  
  /* ページネーションの最適化 */
  .pagination {
    margin: 20px 0;
  }
  
  .pagination .page-numbers {
    padding: 6px 10px;
    margin: 0 2px;
    font-size: 0.9rem;
  }
}

/**
 * アーカイブページのスマホ最適化
 */
@media (max-width: 575px) {
  /* アーカイブヘッダーの最適化 */
  .archive-header {
    padding: 25px 0;
    margin-bottom: 20px;
  }
  
  .archive-title {
    font-size: 1.6rem;
  }
  
  .archive-description {
    font-size: 0.9rem;
    margin-top: 15px;
    padding: 0 10px;
  }
  
  /* アーカイブグリッドの最適化 */
  .archive-grid,
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }
}

/**
 * 洋服一覧のスマホ最適化
 */
@media (max-width: 575px) {
  /* グリッドレイアウトの最適化 */
  .clothes-grid.archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 10px 0;
  }
  
  /* カードスタイルの最適化 */
  .clothes-card.archive-card {
    border-radius: 6px;
    aspect-ratio: 2/3;
    border-width: 1px;
  }
  
  /* 画像エリアの最適化 */
  .clothes-image {
    padding-top: 120%; /* より縦長の画像エリア (portrait) */
  }
  
  /* テキストエリアの最適化 */
  .clothes-title {
    font-size: 12px;
    margin: 0 0 4px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.3;
  }
  
  .clothes-brand {
    font-size: 11px;
    margin-bottom: 2px;
  }
  
  .clothes-price {
    font-size: 12px;
    margin-top: 3px;
  }
  
  .clothes-price small {
    font-size: 10px;
  }
  
  .clothes-info {
    padding: 8px 10px;
    min-height: 60px;
  }
  
  /* スマホでタップしたときのスタイル */
  .clothes-card.archive-card:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
}

/**
 * 芸能人・ブランドのスマホ最適化
 */
@media (max-width: 575px) {
  .celebrities-grid,
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .celebrity-card,
  .brand-card {
    border-radius: 6px;
  }
  
  .celebrity-name,
  .brand-name {
    font-size: 14px;
  }
}

/* タップ効果最適化 - モバイル端末のみ */
@media (hover: none) {
  .clothes-card:active,
  .celebrity-card:active,
  .brand-card:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
}

/**
 * design-enhancements.css から移行したスタイル
 */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .newsletter-title {
    font-size: 1.75rem;
  }
  
  .newsletter-description {
    font-size: 1rem;
  }
  
  .archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }
  
  .page-title {
    font-size: 1.75rem;
  }
  
  .archive-description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .archive-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .page-header {
    margin: 2rem 0 1.5rem;
  }
}

/**
 * フォーム要素のスマホ最適化
 */
@media (max-width: 575px) {
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  textarea {
    padding: 10px;
    font-size: 0.9rem;
  }
  
  .button,
  button,
  input[type="button"],
  input[type="submit"] {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* メディアクエリのブレークポイント一覧（参考）
 * 
 * Extra small devices (phones, 575px and down)
 * @media (max-width: 575px) { ... }
 *
 * Small devices (landscape phones, 576px to 767px)
 * @media (min-width: 576px) and (max-width: 767px) { ... }
 *
 * Medium devices (tablets, 768px to 991px)
 * @media (min-width: 768px) and (max-width: 991px) { ... }
 *
 * Large devices (desktops, 992px to 1199px)
 * @media (min-width: 992px) and (max-width: 1199px) { ... }
 *
 * Extra large devices (large desktops, 1200px and up)
 * @media (min-width: 1200px) { ... }
 */
