@charset "UTF-8";

/* =========================================================
   Base
   ========================================================= */
:root{
  --header-h: 80px;
  --maxw: 1100px;         /* default page max-width */
  --gutter: 20px;

  --text: #111;
  --muted: #666;
  --bg: #fff;

  --nav-bg: #333;
  --border: #e6e6e6;

  --radius: 12px;
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  padding-top: var(--header-h);  /* fixed header offset */
  font-size: 12px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
}

/* Make main content centered with a consistent max-width */
main{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
}

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

a:hover,
a:focus-visible{
  opacity: 0.7;
}

ul{
  margin: 0;
  padding: 0;
}

li{
  list-style: none;
}

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

.site-title{
  width: 180px;
  line-height: 1;
  display: block;
}

/* =========================================================
   Header
   ========================================================= */
header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  z-index: 10;
  background-color: var(--bg);
  width: 100%;
  height: var(--header-h);
  top: 0;
  left: 0;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--border);
}

/* =========================================================
   Hamburger Menu
   ========================================================= */
#navi{
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100vh;
  overflow: auto;
  background: var(--nav-bg);
  color: #fff;
  padding: 36px 50px;
  transition: left 0.5s, opacity 0.5s;
  z-index: 20;
  opacity: 0;
}

#navi a{ color: #fff; }
#navi li{ margin-bottom: 14px; }

.open #navi{
  left: 0;
  opacity: 1;
}

.toggle_btn{
  width: 30px;
  height: 30px;
  position: relative;
  transition: transform 0.5s;
  cursor: pointer;
  z-index: 20;
}

.toggle_btn span{
  display: block;
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: #333;
  border-radius: 4px;
  transition: transform 0.5s, background-color 0.5s;
}

.toggle_btn span:nth-child(1){ top: 10px; }
.toggle_btn span:nth-child(2){ bottom: 10px; }

.open .toggle_btn span{ background-color: #fff; }
.open .toggle_btn span:nth-child(1){ transform: translateY(4px) rotate(-45deg); }
.open .toggle_btn span:nth-child(2){ transform: translateY(-4px) rotate(45deg); }

#mask{
  display: none;
  transition: opacity 0.5s;
}

.open #mask{
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: .6;
  z-index: 10;
  cursor: pointer;
}

/* =========================================================
   Footer (common)
   ========================================================= */
footer{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

footer ul{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* =========================================================
   Products (index / products)
   ========================================================= */
body.Furniture_products{
  --maxw: 1100px;
}

body.Furniture_products h1{
  font-size: 14px;
  margin: 0 0 24px;
}

body.Furniture_products .product-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 24px;
}

body.Furniture_products .product-list a{
  display: grid;
  gap: 10px;
}

body.Furniture_products .product-list img{
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

body.Furniture_products .product-list p{
  margin: 0;
}

body.Furniture_products .product-a{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

body.Furniture_products .pagination{
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 30px 0 0;
}

/* =========================================================
   Item
   ========================================================= */
body.item{
  --maxw: 1000px;
}

body.item h1{
  font-size: 14px;
  margin: 0 0 24px;
}

body.item .item-wrapper{
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 48px;
  align-items: start;
}

body.item .item-img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

body.item .item-text p{
  margin: 0 0 18px;
  color: var(--text);
}

body.item .item-text dl{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 14px;
  margin: 0;
}

body.item .item-text dt{
  color: var(--muted);
}

body.item .item-text dd{
  margin: 0;
}

body.item .item-a{
  display: flex;
  margin-top: 40px;
  justify-content: center;
}

/* =========================================================
   About / Company
   ========================================================= */
body.about{
  --maxw: 700px;
}

body.company{
  --maxw: 700px;
}

body.about h1,
body.company h1{
  font-size: 14px;
  margin: 0 0 24px;
}

body.about p{
  line-height: 1.9;
  margin: 0 0 18px;
}

body.company dl{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  margin: 0 0 32px;
  border-top: 1px solid var(--border);
}

body.company dt,
body.company dd{
  padding: 16px 10px;
  border-bottom: 1px solid var(--border);
}

body.company dt{
  color: var(--muted);
}

body.company dd{
  margin: 0;
}

body.company iframe{
  filter: grayscale(1);
  width: 100%;
  max-width: 700px;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px){
  :root{ --header-h: 72px; }
  main{ padding-top: 28px; padding-bottom: 56px; }

  body.item .item-wrapper{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #navi{
    width: 280px;
    left: -280px;
    padding: 28px 32px;
  }
}

/* =========================
   Product click transition
   ========================= */

/* クリック時に上に被さるオーバーレイ */
.pt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 280ms ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pt-overlay.is-visible {
  opacity: 1;
}

/* クリックした商品カード（a）に付くクラス */
.pt-clicked {
  transform: scale(0.98);
  opacity: 0.75;
  transition: transform 240ms ease, opacity 240ms ease;
}

/* 遷移直前の全体フェード（ボディに付く） */
.pt-leave {
  transition: opacity 280ms ease;
  opacity: 0.98;
}

/* タップしやすく＆演出のための微調整（任意だけどおすすめ） */
body.Furniture_products .product-list a {
  display: block;
  transition: transform 200ms ease, opacity 200ms ease;
  will-change: transform, opacity;
}

body.Furniture_products .product-list a:hover {
  transform: translateY(-2px);
}

/* アニメが苦手な人の設定では無効化 */
@media (prefers-reduced-motion: reduce) {
  .pt-overlay,
  .pt-overlay.is-visible,
  .pt-clicked,
  .pt-leave,
  body.Furniture_products .product-list a,
  body.Furniture_products .product-list a:hover {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
