/* ========================================
   Pom S.Y Shop スタイルシート
   緑を基調とした本格デザイン
======================================== */

/* 色の設定（ここを変えるとサイト全体の色が変わります）
   北欧風：くすみのあるセージグリーン＋温かみのあるオフホワイト */
:root {
  --green: #6b9080;        /* メインのセージグリーン */
  --green-dark: #4f7364;   /* 濃い緑（ホバーやナビ） */
  --green-deep: #364b41;   /* いちばん濃い緑（フッター） */
  --green-light: #eaf0ea;  /* 薄い緑（背景のアクセント） */
  --beige: #f3ede3;        /* 北欧らしいベージュ */
  --bg: #faf8f4;           /* ページ全体の背景（温かみのある白） */
  --text: #3d4a42;         /* 基本の文字色 */
  --text-light: #7d8a80;   /* 薄めの文字色 */
  --price: #c96f5e;        /* 価格（テラコッタ寄りの赤） */
  --white: #ffffff;
  --leather: #8b5e3c;      /* Pom Craft（レザークラフト）のブランドカラー */
  --leather-dark: #6e4a2e;
}

/* 全体の基本設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* ページ内リンクをなめらかにスクロール */
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.8;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   デモ版のお知らせ（最上部の細いバー）
======================================== */
.demo-notice {
  background-color: #fff3cd;
  color: #856404;
  text-align: center;
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* ========================================
   ヘッダー（スクロールしても上部に固定）
======================================== */
.site-header {
  background-color: var(--white);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ロゴと店名 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background-color: var(--white);
  border: 2px solid var(--green-light);
  border-radius: 50%;
  padding: 4px;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 1px;
}

/* ナビゲーション */
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--green);
}

/* カートボタンだけ緑の丸ボタンにする */
.nav-cart {
  background-color: var(--green);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 999px;
}

.nav-cart:hover {
  background-color: var(--green-dark);
  color: var(--white) !important;
}

/* Pom Craft（ハンドメイドレザークラフト）へのリンクを、ブランドカラーのバッジで目立たせる */
.nav-craft {
  background-color: var(--leather) !important;
  color: var(--white) !important;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.nav-craft:hover {
  background-color: var(--leather-dark) !important;
  color: var(--white) !important;
}

.cart-count {
  display: inline-block;
  background-color: var(--white);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 0 8px;
  font-size: 0.8rem;
  margin-left: 2px;
}

/* ========================================
   ヒーロー（トップの大きな看板エリア）
======================================== */
.hero {
  /* 北欧風の写真の上に、うっすら緑のフィルターを重ねて文字を読みやすくする */
  background:
    linear-gradient(rgba(54, 75, 65, 0.55), rgba(54, 75, 65, 0.55)),
    url("images/hero.jpg") center / cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 110px 24px 120px;
}

.hero-sub {
  font-size: 0.95rem;
  letter-spacing: 3px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.6rem;
  line-height: 1.4;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero-text {
  font-size: 1rem;
  opacity: 0.95;
  margin-bottom: 36px;
}

/* ========================================
   お店の特徴（3つの安心ポイント）
======================================== */
.features {
  margin-top: -50px; /* ヒーローに少し重ねて立体感を出す */
  padding-bottom: 30px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background-color: var(--white);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 28px 22px;
  text-align: center;
}

.feature-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--green-dark);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* ========================================
   セクション共通
======================================== */
section {
  padding: 60px 0;
}

.section-label {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 4px;
}

section h2 {
  font-size: 1.7rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--green);
}

/* ========================================
   商品一覧
======================================== */

/* カテゴリータブ */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.tab-button {
  background-color: var(--white);
  border: 2px solid var(--green);
  color: var(--green);
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
}

.tab-button.active,
.tab-button:hover {
  background-color: var(--green);
  color: var(--white);
}

/* 商品カード */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  background-color: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px); /* マウスを乗せるとふわっと浮く */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* 商品画像エリア */
.product-image-area {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--beige) 100%);
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* 商品写真（カードいっぱいに表示） */
.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-photo {
  transform: scale(1.05); /* マウスを乗せると写真が少しズーム */
}

.product-photo {
  cursor: zoom-in; /* クリックで拡大表示できることを示す */
}

/* 写真の拡大表示（ライトボックス） */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(38, 45, 41, 0.85);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

.product-emoji {
  font-size: 3.4rem;
}

/* 「人気No.1」などのバッジ */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--price);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: bold;
  padding: 2px 10px;
  border-radius: 999px;
}

/* 「準備中」バッジは落ち着いた緑にする */
.product-badge.badge-soon {
  background-color: var(--green-dark);
}

/* 「SOLD OUT」バッジはグレーにする */
.product-badge.badge-sold {
  background-color: #8a8f8c;
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: bold;
  margin-bottom: 4px;
}

.product-name {
  font-size: 0.98rem;
  margin-bottom: 6px;
  line-height: 1.5;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 10px;
  flex: 1; /* 説明文の長さが違ってもボタンの位置をそろえる */
}

.product-price {
  color: var(--price);
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.tax-note {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: normal;
}

/* ========================================
   ボタン共通
======================================== */
.btn {
  display: inline-block;
  background-color: var(--green);
  color: var(--white);
  border: none;
  padding: 10px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: var(--green-dark);
}

.btn.disabled {
  background-color: #ccc;
  pointer-events: none;
}

.btn-large {
  padding: 14px 42px;
  font-size: 1.05rem;
  background-color: var(--white);
  color: var(--green-dark);
}

.btn-large:hover {
  background-color: var(--green-light);
}

.add-cart-btn {
  width: 100%;
}

/* ========================================
   レザークラフト紹介（Pom Craft）
======================================== */
.leather-feature {
  background-color: var(--beige); /* 北欧らしいベージュの帯で変化をつける */
}

.leather-flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

.leather-photo {
  width: 50%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.leather-text {
  flex: 1;
}

.leather-text p {
  margin-bottom: 20px;
}

@media (max-width: 700px) {
  .leather-flex {
    flex-direction: column; /* スマホでは縦並びに */
  }
  .leather-photo {
    width: 100%;
  }
}

/* Pom Craftコーナーだけ見出し・タグの色をブランドカラー(茶色)にする */
.leather-feature .section-label {
  color: var(--leather);
}

.leather-feature h2::after {
  background-color: var(--leather);
}

.leather-grid {
  margin-top: 40px;
}

.leather-grid .product-badge.badge-soon {
  background-color: var(--leather-dark);
}

.leather-grid .btn:not(.disabled) {
  background-color: var(--leather);
}

.leather-grid .btn:not(.disabled):hover {
  background-color: var(--leather-dark);
}

/* ========================================
   商品管理ページ（admin.html）
======================================== */
.admin-intro {
  margin-bottom: 24px;
  color: var(--text-light);
}

/* 商品の追加・編集フォーム */
.admin-form-box {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 24px;
  margin-bottom: 32px;
}

.admin-form-box h3 {
  margin-bottom: 16px;
  color: var(--green-dark);
}

.product-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: bold;
  font-size: 0.9rem;
}

.product-form label.pf-checkbox {
  flex-direction: row;
  align-items: center;
  font-weight: normal;
}

.product-form input[type="text"],
.product-form input[type="number"],
.product-form select,
.product-form textarea {
  font-size: 1rem;
  padding: 8px;
  border: 1px solid #ccd6cf;
  border-radius: 6px;
  font-weight: normal;
}

.pf-price-row {
  flex-direction: row !important;
  align-items: center;
  flex-wrap: wrap;
}

.pf-price-row input[type="number"] {
  width: 120px;
}

.pf-tbd-toggle {
  font-weight: normal;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pf-buttons {
  display: flex;
  gap: 10px;
}

/* 商品一覧テーブル */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.admin-table th {
  background-color: var(--green-light);
  color: var(--green-dark);
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #eef3ef;
  padding: 14px;
  text-align: left;
  font-size: 0.9rem;
}

.btn-edit-product,
.btn-delete-product,
.btn-reset-price {
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  margin-right: 6px;
  margin-bottom: 4px;
}

.btn-edit-product {
  background-color: var(--green);
  color: var(--white);
}

.btn-edit-product:hover {
  background-color: var(--green-dark);
}

.btn-delete-product {
  background: none;
  border: 1px solid var(--price);
  color: var(--price);
}

.btn-delete-product:hover {
  background-color: var(--price);
  color: var(--white);
}

.btn-reset-price {
  background: none;
  border: 1px solid var(--text-light);
  color: var(--text-light);
}

@media (max-width: 700px) {
  .admin-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ========================================
   お店紹介・お問い合わせ
======================================== */
.about {
  background-color: var(--white);
}

/* お店紹介：写真と文章を横並びにする（北欧風レイアウト） */
.about-flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-photo {
  width: 42%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
}

@media (max-width: 700px) {
  .about-flex {
    flex-direction: column; /* スマホでは縦並びに */
  }
  .about-photo {
    width: 100%;
  }
}

.contact-info {
  margin-top: 12px;
  font-weight: bold;
}

/* ========================================
   カートページ
======================================== */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.cart-table th {
  background-color: var(--green-light);
  color: var(--green-dark);
  font-size: 0.9rem;
}

.cart-table th,
.cart-table td {
  border-bottom: 1px solid #eef3ef;
  padding: 14px;
  text-align: left;
}

.qty-input {
  width: 64px;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.btn-remove {
  background: none;
  border: 1px solid var(--price);
  color: var(--price);
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
}

.btn-remove:hover {
  background-color: var(--price);
  color: var(--white);
}

#cart-empty {
  display: none;
  background-color: var(--white);
  padding: 40px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

#cart-empty a {
  color: var(--green);
}

.cart-summary {
  text-align: right;
  font-size: 1.2rem;
}

.cart-summary .btn {
  margin-left: 16px;
}

/* ========================================
   お会計ページ
======================================== */
.summary-list {
  list-style: none;
  background-color: var(--white);
  padding: 18px 22px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  margin-bottom: 12px;
}

.summary-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eef3ef;
}

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

.summary-total {
  font-size: 1.25rem;
  font-weight: bold;
  text-align: right;
  margin-bottom: 36px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background-color: var(--white);
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: bold;
  font-size: 0.95rem;
}

.checkout-form input,
.checkout-form select {
  font-size: 1rem;
  padding: 10px;
  border: 1px solid #ccd6cf;
  border-radius: 8px;
  font-weight: normal;
}

.checkout-form input:focus,
.checkout-form select:focus {
  outline: 2px solid var(--green);
  border-color: var(--green);
}

/* ========================================
   完了ページ
======================================== */
.complete-section {
  text-align: center;
}

.complete-section h2 {
  display: inline-block;
}

.complete-section h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.complete-section p {
  margin-bottom: 12px;
}

.complete-section .btn {
  margin-top: 12px;
}

/* ========================================
   フッター
======================================== */
.site-footer {
  background-color: var(--green-deep);
  color: #d5e3d9;
  padding: 50px 24px 20px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-heading {
  font-weight: bold;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-col a {
  display: block;
  color: #d5e3d9;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-note {
  font-size: 0.85rem;
  line-height: 1.7;
}

/* 管理用ページへのリンク：目立たないよう小さく薄い色にする */
.admin-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.75rem;
  color: rgba(213, 227, 217, 0.5);
}

.admin-link:hover {
  color: rgba(213, 227, 217, 0.9);
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  padding-top: 18px;
  opacity: 0.8;
}

/* ========================================
   スマホ対応（画面幅600px以下）
======================================== */
@media (max-width: 600px) {
  .hero {
    padding: 60px 20px 70px;
  }

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

  .pc-only {
    display: none; /* スマホでは改行しない */
  }

  /* ヘッダーをコンパクトにして画面を広く使う */
  .header-inner {
    justify-content: center;
    padding: 8px 12px;
    gap: 6px;
  }

  .logo-image {
    width: 36px;
    height: 36px;
    padding: 3px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 0.85rem;
  }

  .nav-cart {
    padding: 6px 14px;
  }

  section {
    padding: 40px 0;
  }

  section h2 {
    font-size: 1.4rem;
  }

  /* カートの表は横にスクロールできるようにする */
  .cart-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .cart-table th,
  .cart-table td {
    padding: 8px;
    font-size: 0.85rem;
  }

  .cart-summary {
    font-size: 1.05rem;
  }

  /* 拡大表示の余白を減らして写真を大きく見せる */
  .lightbox-overlay {
    padding: 16px;
  }

  .lightbox-close {
    top: 8px;
    right: 14px;
  }
}
