@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');/* リセットとベーススタイル */

:root {
  --font-size: font-size: clamp(13px, calc(13px + (16 - 13) * (100vw - 390px) / (1300 - 390)), 16px);;
  --background: #ffffff;
  --foreground: #000000;
  --primary: #030213;
  --primary-foreground: #ffffff;
  --secondary: #f8f9fa;
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --input: transparent;
  --input-background: #f3f3f5;
  --switch-background: #cbced4;
  --font-weight-medium: 600;
  --font-weight-normal: 400;
  --ring: oklch(0.708 0 0);
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-xs: 0.1875rem; /* 3px */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  background-color: var(--background);
  color: var(--foreground);
  font-size: var(--font-size);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-medium);
}

h2 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-medium);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
}

p {
  font-size: var(--font-size);
  font-weight: var(--font-weight-normal);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 0 1rem;
}

.main {
  flex: 1;
}

/* ヘッダースタイル */
#header-container{
  position: sticky;
  top: 0;
  z-index: 100;
}

.header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  background-color: var(--background);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
  
  .logo {
    flex: 0 0 auto;
    width: auto;
    text-align: left;
    order: 1;
    min-width: 120px;
  }
  
  .search-bar {
    flex: 0 1 auto;
    width: 50%;
    max-width: 500px;
    margin: 0 auto;
    order: 2;
  }
  
  .header-buttons {
    flex: 0 0 auto;
    white-space: nowrap;
    order: 3;
  }
}

.logo {
  width: 148px;
  text-align: center;
  padding: 0;
}

.logo h1 {
  color: var(--primary);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  font-size: 1.25rem;
}


.search-bar {
  width: 100%;
  display: flex;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.search-button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0 0.75rem;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--accent);
}

/* スライダー */
.splide {
  margin: 1.5rem 0 0 0 ;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
}

.splide img{
border-radius: var(--radius-md);
}

/* 人気ジャンルスタイル */
.popular-genres {
  margin: 2.5rem 0;
}

.genres-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .genres-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .genres-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.genre-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.genre-image {
  aspect-ratio: 1 / 1;
}

.genre-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.genre-item:hover .genre-image img {
  transform: scale(1.05);
}

.genre-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.genre-overlay p {
  color: white;
}

/* 新着作品スタイル */
.new-items {
  margin: 2.5rem 0;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .items-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .items-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block; /* aタグがブロック要素になるようにする */
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 0.75rem;
}

.product-info h3 {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.price {
  font-weight: var(--font-weight-medium);
}

.cart-btn {
  border: 1px solid var(--border);
  background-color: transparent;
  border-radius: var(--radius-xs);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* これを追加してz-indexが効くようにする */
  z-index: 2; /* これを追加してリンクの上に表示されるようにする */
}

.cart-btn:hover {
  background-color: var(--accent);
}

/* 会社概要ページスタイル
   ========================================================================== */
   .page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.company-info {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h2 {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.info-item p {
    font-size: 1.125rem;
    line-height: 1.5;
}

.business-hours {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--secondary);
    border-radius: var(--radius);
}

.business-hours .note {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.business-hours .note:last-child {
    margin-bottom: 0;
}

/* パンくずリスト */
.breadcrumb {
  margin: 1rem 0 2rem;
}

.breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb ul li {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.breadcrumb ul li:not(:last-child)::after {
  content: ">";
  margin-left: 0.5rem;
}

.breadcrumb ul li:last-child {
  font-weight: var(--font-weight-medium);
  color: var(--foreground);
}

/* フッタースタイル */
.footer {
    background-color: var(--secondary);
    padding-top: 4rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    padding-bottom: 0; /* footer-bottomにパディングを移動 */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem 1rem; /* 下部のパディングを調整 */
    display: grid;
    grid-template-columns: 1fr; /* モバイル: 1列 */
    gap: 3rem;
    text-align: center; /* モバイル中央揃え */
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 1.5fr repeat(4, 1fr); /* タブレット以上: 会社情報 + 4列 */
        gap: 2rem;
        text-align: left; /* PC左揃え */
        padding-bottom: 3rem; /* PCの下部パディングを調整 */
    }

}

@media (min-width: 1024px) {
    .footer-container {
         gap: 4rem; /* デスクトップのギャップ調整 */
    }
}

.footer-info {
    /* PC表示では最初のカラム */
}

.footer-info img {
    width:180px; /* スマホ表示時のデフォルトサイズ */
    margin: 0 auto; /* 中央揃え */
    display: block; /* ブロック要素として表示 */
}

.footer-info h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.75rem;
    color: var(--primary);
    text-align: center; /* モバイル中央揃え */
}

@media (min-width: 768px) {
    .footer-info h3 {
        text-align: left; /* PC左揃え */
    }

    .footer-info img {
        width: 200px; /* タブレット以上のサイズ */
        margin: 0; /* 左揃えに戻す */
    }
}

.footer-info p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: center; /* モバイル中央揃え */
}

@media (min-width: 768px) {
    .footer-info p {
        text-align: left; /* PC左揃え */
    }
}

.footer-section {
    /* PC表示では残りのカラム */
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 1rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.5rem; /* 下線とのスペース */
    text-align: center; /* モバイル中央揃え */
}

@media (min-width: 768px) {
    .footer-section h4 {
        text-align: left; /* PC左揃え */
    }
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%; /* モバイル中央 */
    transform: translateX(-50%);
    width: 2rem;
    height: 2px;
    background-color: var(--primary);
}

@media (min-width: 768px) {
    .footer-section h4::after {
        left: 0; /* PC左端 */
        transform: none;
    }
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center; /* モバイル中央揃え */
}

@media (min-width: 768px) {
    .footer-section ul {
        align-items: flex-start; /* PC左揃え */
    }
}

.footer-section ul li a {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 2rem; /* footer-containerとの間隔を調整 */
    padding: 1.5rem 1rem; /* 上下のパディングと左右のパディング */
    border-top: 1px solid var(--border);
    text-align: center; /* 常時中央揃え */
    background-color: var(--secondary); /* 背景色をfooterと合わせる */
}

.footer-bottom p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .footer {
        padding-top: 3rem;
    }

    .footer-container {
        gap: 2rem;
        padding-bottom: 1.5rem; /* モバイルの下部パディング調整 */
    }

    .footer-info {
        margin-bottom: 1rem;
    }

    .footer-info h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-section ul li a {
        font-size: 0.8125rem;
    }

    .footer-bottom {
        margin-top: 1.5rem; /* モバイルでの間隔調整 */
        padding: 1rem 1rem; /* モバイルでのパディング調整 */
    }
}

/* お問い合わせフォームスタイル */
.contact-form-container {
    max-width: 600px; /* フォームの最大幅 */
    margin: 0 auto; /* 中央揃え */
    padding: 2rem; /* 内側の余白 */
    background-color: var(--background); /* 背景色 */
    border: 1px solid var(--border); /* ボーダー */
    border-radius: var(--radius); /* 角丸 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 軽い影 */
}

.form-group {
    margin-bottom: 1.5rem; /* 項目間のスペース */
}

.form-group:last-child {
    margin-bottom: 0; /* 最後の項目には下マージンなし */
}

.form-label {
    display: block; /* ラベルをブロック要素に */
    margin-bottom: 0.5rem; /* ラベルと入力欄の間隔 */
    font-weight: var(--font-weight-medium); /* フォントウェイト */
    color: var(--primary); /* 文字色 */
}

.required {
    color: var(--destructive); /* 必須マークの色 */
    margin-left: 0.25rem; /* ラベルとの間隔 */
}

.form-input, .form-select, .form-textarea {
    display: block; /* 入力要素をブロック要素に */
    width: 100%; /* 幅を100%に */
    padding: 0.75rem 1rem; /* 内側の余白 */
    border: 1px solid var(--border); /* ボーダー */
    border-radius: var(--radius); /* 角丸 */
    font-size: 1rem; /* フォントサイズ */
    color: var(--foreground); /* 文字色 */
    background-color: var(--input-background); /* 背景色 */
    transition: border-color 0.2s ease, box-shadow 0.2s ease; /* ホバー・フォーカス時のアニメーション */
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; /* デフォルトのアウトラインを消す */
    border-color: var(--primary); /* フォーカス時のボーダー色 */
    box-shadow: 0 0 0 3px rgba(3, 2, 19, 0.1); /* フォーカス時の影 */
}

.form-textarea {
    resize: vertical; /* 縦方向のみリサイズ可能に */
}

.contact-form .btn-primary {
    display: block; /* ボタンをブロック要素に */
    width: 100%; /* 幅を100%に */
    padding: 0.75rem; /* 内側の余白 */
    font-size: 1.125rem; /* フォントサイズ */
    font-weight: var(--font-weight-medium); /* フォントウェイト */
    background-color: var(--primary); /* 背景色 */
    color: var(--primary-foreground); /* 文字色 */
    border: none; /* ボーダーなし */
    border-radius: var(--radius); /* 角丸 */
    cursor: pointer; /* カーソル形状 */
    transition: background-color 0.2s ease; /* ホバー時のアニメーション */
}

.contact-form .btn-primary:hover {
    background-color: var(--primary-hover); /* ホバー時の背景色 */
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .contact-form-container {
        padding: 1.5rem; /* モバイルでの内側余白調整 */
    }

    .form-group {
        margin-bottom: 1rem; /* モバイルでの項目間のスペース調整 */
    }

    .form-label {
        font-size: 0.875rem; /* モバイルでのラベルフォントサイズ */
    }

    .form-input, .form-select, .form-textarea {
        padding: 0.6rem 0.8rem; /* モバイルでの内側余白調整 */
        font-size: 0.9375rem; /* モバイルでのフォントサイズ */
    }

    .contact-form .btn-primary {
        padding: 0.6rem; /* モバイルでのボタン内側余白調整 */
        font-size: 1rem; /* モバイルでのボタンフォントサイズ */
    }
}