﻿@charset "UTF-8";

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Times New Roman", "游明朝", serif;
  background: #f4f1ec;
  color: #2e2a25;
  line-height: 1.8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Header ===== */
.site-header {
  background-color: #2e2a25;
    color: #fff;
    padding: 1rem 1.5rem 0.5rem;
   text-align: left;
}

.nav-list {
  list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    gap: 1rem;
}

.nav-list a {
 color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}
.nav-list a:hover {
    text-decoration: underline;
}

/* ===== Hero ===== */
.hero {
  min-height: 60vh;
  /* 背景画像の指定にあるセミコロンの位置を修正しました */
  background: url('images/l1.png') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;    /* ★これを追加：左右方向の中央寄せ */
  text-align: center;     /* ★これを追加：テキスト自体の中央寄せ */
  padding: 3rem;
  color: #fff;
}

.hero h2 {

  font-size: 2.2rem;
}


/* ===== Section Common ===== */
section {
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

/* ===== About ===== */
.about article {
  margin-bottom: 2rem;
  text-align: center; /* ★これを追加：文章を中央寄せにする */
}
.about figure {
  max-width: 600px;
}

.about figcaption {
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ===== Products ===== */
.filter-menu {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-menu button {
  padding: 0.4rem 1rem;
  border: 1px solid #2e2a25;
  background: transparent;
  cursor: pointer;
}

.filter-menu button.active,
.filter-menu button:hover {
  background: #2e2a25;
  color: #fff;
}

.product-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.product-item {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: 0.3s;
  cursor: pointer;
/* 追加：カード全体の構成を整える */
  display: flex;
  flex-direction: column;
}
.product-item img {
  width: 100%;
  aspect-ratio: 1 / 1;  /* 画像を正方形にする場合（お好みで） */
  object-fit: cover;    /* 画像が歪まないように調整 */
}

.product-item:hover {
  transform: translateY(-4px);
}

.product-item figcaption {
  padding: 1rem;
}

.price {
  font-weight: bold;
}


/* ===== Contact SNS ===== */
.social-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center; 
}

.social-links a {
    display: inline-block;
    padding: 0.7rem 2rem;
    border: 1px solid #000000;
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #000000;
    color: #fff;
}

/* ===== Footer ===== */
.site-footer {
  background: #2e2a25;
  color: #fff;
  text-align: center;
  padding: 2rem 1.5rem;
}

/* ===== Modal (修正版) ===== */
dialog {
  position: fixed; /* 画面に対して固定 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  width: 90%;
  max-width: 500px;
  padding: 2rem;
  border: none;
  background: #fff;
  z-index: 1000; /* 最前面に持ってくる */
  text-align: center;
}

/* モーダルが開いた時の背景を暗くする */
dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

#modalClose {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Responsive ===== */
/* モバイル（スマホ）では1列または2列にするための調整 */
@media (max-width: 768px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .product-list {
    grid-template-columns: 1fr;
  }
}



.back-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 8px 16px;
    background: #2e2a25;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
  
}
.back-btn:hover {
    text-decoration: underline;   /* ← 白ライン */
}


