/* ===== リセット・基本設定 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --yellow: #fff4b7;
  --brown: #8b4513;
  --dark-brown: #654321;
  --khaki: #bdb76b;
  --light-khaki: #d2d2aa;
  --white: #fffef7;
  --cream: #fdf5e6;
  --shadow: rgba(139, 69, 19, 0.1);
  --shadow-dark: rgba(139, 69, 19, 0.2);
}

body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: var(--yellow);
  line-height: 1.6;
  color: var(--dark-brown);
}

/* ===== ヘッダー ===== */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: transform 0.3s ease-out, background-color 0.3s ease-out;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brown);
  text-decoration: none;
  transition: color 0.3s;
}

.logo:hover {
  color: var(--dark-brown);
}

/* ロゴ画像用スタイル */
.logo-image {
  height: 40px;
  width: auto;
  transition: transform 0.3s;
}

.logo-image:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark-brown);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  padding: 0.5rem 0;
}

.nav-menu a:hover {
  color: var(--brown);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brown);
  transition: width 0.3s;
}

.nav-menu a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--brown);
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu a {
  font-size: 1.5rem;
  color: var(--dark-brown);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--brown);
}

/* ===== ヒーローセクション ===== */
.hero {
  height: 100vh;
  min-height: 800px;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

.swiper-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 700px;
}

.slide1 {
  background: linear-gradient(45deg, var(--yellow), var(--light-khaki));
  background-image: url("images/slide1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide2 {
  background: linear-gradient(45deg, var(--khaki), var(--yellow));
  background-image: url("images/slide2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide3 {
  background: linear-gradient(45deg, var(--light-khaki), var(--white));
  background-image: url("images/slide3.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(139, 69, 19, 0.3);
  z-index: 1;
}

.hero-title {
  font-family: "Dancing Script", cursive;
  font-size: 4rem;
  color: var(--brown);
  text-align: center;
  z-index: 10;
  position: relative;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px) rotate(10deg);
  animation: charAnimation 0.8s ease-out forwards;
}

@keyframes charAnimation {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

/* スライドインジケーター */
.slide-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicator.active {
  background-color: var(--brown);
}

/* ===== メインコンテンツ ===== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section {
  margin-bottom: 4rem;
  background-color: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px var(--shadow);
  transition: transform 0.3s;
}

.section:hover {
  transform: translateY(-5px);
}

.section h2 {
  font-family: "Dancing Script", cursive;
  font-size: 2.5rem;
  color: var(--brown);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--khaki);
  border-radius: 2px;
}

/* ===== Aboutセクション ===== */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark-brown);
  margin-bottom: 1.5rem;
}

.about-image {
  text-align: center;
}

.about-img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 15px var(--shadow);
}

/* ===== 商品セクション ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background-color: var(--cream);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid var(--khaki);
  box-shadow: 0 4px 15px var(--shadow);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-dark);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.product-image.loaded {
  opacity: 1;
}

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

.product-content {
  padding: 1.5rem;
  text-align: center;
}

.product-content h3 {
  color: var(--brown);
  margin-bottom: 1rem;
  font-family: "Dancing Script", cursive;
  font-size: 1.5rem;
}

.product-content p {
  color: var(--dark-brown);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brown);
  margin-top: 1rem;
}

/* ===== ギャラリーセクション ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: 200px;
  box-shadow: 0 4px 15px var(--shadow);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.gallery-image.loaded {
  opacity: 1;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

/* ===== お問い合わせセクション ===== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  background-color: var(--cream);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px var(--shadow);
}

.contact-item h3 {
  color: var(--brown);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.contact-item p {
  color: var(--dark-brown);
  line-height: 1.6;
}

/* お問い合わせフォーム */
.contact-form {
  background-color: var(--cream);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark-brown);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--khaki);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
  background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brown);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background-color: var(--brown);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.submit-btn:hover {
  background-color: var(--dark-brown);
  transform: translateY(-2px);
}

/* ===== フッター ===== */
.footer {
  background-color: var(--brown);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

.footer-logo h3 {
  font-family: "Dancing Script", cursive;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--yellow);
}

.footer-logo p {
  color: var(--light-khaki);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-link {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.social-link:hover {
  color: var(--yellow);
}

.footer-bottom {
  text-align: center;
  padding: 1rem 2rem;
  border-top: 1px solid var(--dark-brown);
  margin-top: 2rem;
  color: var(--light-khaki);
}

/* ===== ボタン・コンポーネント ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--brown);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background-color: var(--dark-brown);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-secondary {
  background-color: var(--khaki);
  color: var(--dark-brown);
}

.btn-secondary:hover {
  background-color: var(--dark-brown);
  color: var(--white);
}

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

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

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brown);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.icon-btn:hover {
  background-color: var(--dark-brown);
  transform: scale(1.1);
}

/* バッジ・ラベル */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: var(--brown);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-new {
  background-color: #e74c3c;
}

.badge-popular {
  background-color: #f39c12;
}

.badge-sale {
  background-color: #27ae60;
}

/* カード */
.card {
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 4px 15px var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-dark);
}

.card-header {
  padding: 1.5rem;
  background-color: var(--cream);
  border-bottom: 1px solid var(--light-khaki);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  background-color: var(--cream);
  border-top: 1px solid var(--light-khaki);
}

/* ===== モーダル ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--white);
  border-radius: 15px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--brown);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.modal-close:hover {
  background-color: var(--cream);
}

/* ===== ツールチップ ===== */
.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--dark-brown);
  color: var(--white);
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  border: 5px solid transparent;
  border-top-color: var(--dark-brown);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tooltip:hover::after,
.tooltip:hover::before {
  opacity: 1;
  visibility: visible;
}

/* ===== アラート・通知 ===== */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid;
}

.alert-success {
  background-color: #d4edda;
  border-color: #27ae60;
  color: #155724;
}

.alert-warning {
  background-color: #fff3cd;
  border-color: #f39c12;
  color: #856404;
}

.alert-error {
  background-color: #f8d7da;
  border-color: #e74c3c;
  color: #721c24;
}

.alert-info {
  background-color: #d1ecf1;
  border-color: #3498db;
  color: #0c5460;
}

/* ===== プログレスバー ===== */
.progress {
  width: 100%;
  height: 8px;
  background-color: var(--light-khaki);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--brown);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* ===== プリローダー ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--yellow);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  color: var(--brown);
}

.preloader-logo {
  font-family: "Dancing Script", cursive;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: pulse 1.5s ease-in-out infinite;
}

.preloader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--light-khaki);
  border-top: 4px solid var(--brown);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== スケルトンローディング ===== */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--light-khaki) 25%,
    var(--cream) 50%,
    var(--light-khaki) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  width: 60%;
}

.skeleton-image {
  height: 200px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* ===== アニメーション効果 ===== */
.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

.animate-shake {
  animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }
  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

.animate-pulse {
  animation: pulse-effect 2s infinite;
}

@keyframes pulse-effect {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* フェードイン */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== ユーティリティクラス ===== */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 1rem;
}
.mt-4 {
  margin-top: 1.5rem;
}
.mt-5 {
  margin-top: 3rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.mb-5 {
  margin-bottom: 3rem;
}

.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 1rem;
}
.p-4 {
  padding: 1.5rem;
}
.p-5 {
  padding: 3rem;
}

.d-none {
  display: none;
}
.d-block {
  display: block;
}
.d-flex {
  display: flex;
}
.d-grid {
  display: grid;
}

.w-100 {
  width: 100%;
}
.h-100 {
  height: 100%;
}

.border-radius {
  border-radius: 8px;
}
.border-radius-lg {
  border-radius: 15px;
}
.border-radius-xl {
  border-radius: 20px;
}

/* ===== カスタムスクロールバー ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--yellow);
}

::-webkit-scrollbar-thumb {
  background: var(--brown);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-brown);
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--brown) var(--yellow);
}

/* ===== スムーススクロール ===== */
* {
  scroll-behavior: smooth;
}

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

/* タブレット・小型デスクトップ（768px以下） */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero {
    height: 80vh;
    min-height: 600px;
    margin-top: 70px;
  }

  .swiper-slide {
    min-height: 600px;
  }

  .hero-title {
    font-size: 2.5rem;
    padding: 0 1rem;
  }

  .main-content {
    padding: 2rem 1rem;
  }

  .section {
    padding: 2rem 1.5rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links,
  .footer-social {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

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

  .slide-indicators {
    bottom: 1.5rem;
    gap: 0.75rem;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }
}

/* スマートフォン（480px以下） */
@media (max-width: 480px) {
  .hero {
    height: 70vh;
    min-height: 500px;
    margin-top: 60px;
  }

  .swiper-slide {
    min-height: 500px;
  }

  .hero-title {
    font-size: 1.8rem;
    padding: 0 0.5rem;
  }

  .main-content {
    padding: 1.5rem 0.5rem;
  }

  .section {
    padding: 1.5rem 1rem;
  }

  .contact-item {
    padding: 1rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .section h2 {
    font-size: 1.8rem;
  }

  .product-content h3 {
    font-size: 1.2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item {
    height: 150px;
  }

  .footer-content {
    padding: 0 1rem;
  }

  .slide-indicators {
    bottom: 1rem;
    gap: 0.5rem;
  }

  .indicator {
    width: 8px;
    height: 8px;
  }

  .about-img {
    max-width: 250px;
    height: 150px;
  }

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

  .product-image-wrapper {
    height: 180px;
  }

  .product-content {
    padding: 1rem;
  }

  .nav-container {
    padding: 0 0.5rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .hamburger {
    padding: 0.25rem;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
  }

  .mobile-menu a {
    font-size: 1.3rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .submit-btn {
    padding: 0.8rem;
    font-size: 1rem;
  }

  .footer-logo h3 {
    font-size: 1.5rem;
  }

  .contact-item h3 {
    font-size: 1rem;
  }

  .contact-item p {
    font-size: 0.9rem;
  }

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

  .preloader-logo {
    font-size: 2rem;
  }

  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }

  .tooltip::after {
    font-size: 0.75rem;
    padding: 0.3rem;
  }
}

/* 極小デバイス（320px以下） */
@media (max-width: 320px) {
  .hero-title {
    font-size: 1.5rem;
  }

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

  .main-content {
    padding: 1rem 0.25rem;
  }

  .section {
    padding: 1rem 0.75rem;
    margin-bottom: 2rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  .product-content h3 {
    font-size: 1rem;
  }

  .contact-form {
    padding: 1rem;
  }

  .contact-item {
    padding: 0.75rem;
  }

  .gallery-item {
    height: 120px;
  }

  .about-img {
    max-width: 200px;
    height: 120px;
  }

  .product-image-wrapper {
    height: 150px;
  }

  .footer-content {
    gap: 1rem;
  }

  .slide-indicators {
    gap: 0.25rem;
  }

  .indicator {
    width: 6px;
    height: 6px;
  }
}

/* ===== ダークモード対応 ===== */
@media (prefers-color-scheme: dark) {
  .dark-mode {
    --yellow: #2c2c2c;
    --brown: #d4a574;
    --dark-brown: #f4d4a7;
    --khaki: #8b9dc3;
    --light-khaki: #9db7d4;
    --white: #1a1a1a;
    --cream: #2d2d2d;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-dark: rgba(0, 0, 0, 0.5);
  }
}

/* ===== 印刷時のスタイル ===== */
@media print {
  .header,
  .hamburger,
  .mobile-menu,
  .slide-indicators,
  .footer-social,
  .submit-btn,
  .scroll-to-top,
  .preloader,
  .modal {
    display: none !important;
  }

  .hero {
    height: auto;
    margin-top: 0;
    page-break-after: always;
  }

  .section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
    margin-bottom: 2rem;
  }

  body {
    background-color: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  .hero-title {
    color: black !important;
    text-shadow: none;
  }

  .section h2 {
    color: black !important;
  }

  .product-card,
  .gallery-item,
  .contact-item {
    break-inside: avoid;
    border: 1px solid #ddd;
  }

  .footer {
    background-color: #f0f0f0 !important;
    color: black !important;
    border-top: 2px solid #333;
  }

  .product-image,
  .gallery-image,
  .about-img {
    max-height: 200px;
  }

  .main-content {
    max-width: 100%;
    padding: 1rem;
  }
}

/* ===== アクセシビリティ改善 ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-title .char {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .preloader-spinner {
    animation: none;
  }

  .animate-bounce,
  .animate-shake,
  .animate-pulse {
    animation: none;
  }
}

/* フォーカス状態の改善 */
*:focus {
  outline: 2px solid var(--brown);
  outline-offset: 2px;
}

button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: 2px solid var(--brown);
  outline-offset: 2px;
}

.hamburger:focus {
  outline: 2px solid var(--brown);
  outline-offset: 4px;
  border-radius: 4px;
}

.indicator:focus {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
  :root {
    --brown: #000000;
    --dark-brown: #000000;
    --white: #ffffff;
    --yellow: #ffffff;
    --cream: #f5f5f5;
    --khaki: #666666;
    --light-khaki: #888888;
  }

  .hero-title {
    text-shadow: 2px 2px 4px #ffffff;
  }

  .section {
    border: 2px solid #000000;
  }

  button,
  .btn {
    border: 2px solid #000000;
  }
}

/* 選択テキストのスタイル */
::selection {
  background-color: var(--brown);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--brown);
  color: var(--white);
}

/* ===== 大画面ディスプレイ対応 ===== */
@media (min-width: 1400px) {
  .nav-container,
  .main-content,
  .footer-content {
    max-width: 1400px;
  }

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

  .section h2 {
    font-size: 3rem;
  }

  .section {
    padding: 4rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  .gallery-item {
    height: 250px;
  }
}

/* ===== ランドスケープモード（横向き）対応 ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: 100vh;
  }

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

  .slide-indicators {
    bottom: 0.5rem;
  }

  .mobile-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .mobile-menu a {
    font-size: 1.2rem;
  }
}

/* ===== 超高解像度ディスプレイ対応 ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .product-image,
  .gallery-image,
  .about-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ===== IE11 サポート（必要に応じて） ===== */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .products-grid {
    display: -ms-grid;
    -ms-grid-columns: 1fr 1fr 1fr;
    -ms-grid-rows: auto;
  }

  .gallery-grid {
    display: -ms-grid;
    -ms-grid-columns: 1fr 1fr;
    -ms-grid-rows: auto;
  }
}

/* ===== 終了 ===== */
