/* ==============================
   金沢食器センター style.css
   ============================== */

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #222;
}

/* ---- HEADER ---- */
.ksc-h {
  background: #111;
  padding: 0.7rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}
.ksc-h-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ksc-h-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.ksc-h-name {
  display: flex;
  flex-direction: column;
}
.ksc-h-name span:first-child {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.06em;
}
.ksc-h-name span:last-child {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.ksc-h-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.ksc-h-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ksc-h-nav a:hover { color: #fff; }

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: #222;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  text-align: center;
  padding: 0 2rem;
}
.hero-inner h1 {
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.hero-inner p {
  font-size: 15px;
  color: rgba(255,255,255,0.88);
  line-height: 2.2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ---- CATEGORY 3COL ---- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 340px;
}
.cat-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.cat-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.cat-item:hover img { transform: scale(1.05); }
.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.55) 100%);
}
.cat-label {
  position: absolute;
  bottom: 1.75rem;
  left: 1.5rem;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}
.cat-item:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.15);
}

/* ---- PHOTO GRID SQUARE ---- */
.photo-grid-sq {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #eee;
  overflow: hidden;
}
.photo-grid-sq img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  overflow: hidden;
}

/* ---- PHOTO GRID 2 ---- */
.photo-grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 400px;
  border-top: 1px solid #eee;
  overflow: hidden;
}
.photo-grid2 img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* ---- PHOTO GRID 3 ---- */
.photo-grid3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 400px;
  border-top: 1px solid #eee;
  overflow: hidden;
}
.photo-grid3 img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* ---- FULL IMG ---- */
.full-img { width: 100%; overflow: hidden; }
.full-img img { width: 100%; height: 480px; object-fit: cover; display: block; }

/* ---- TEXT BLOCK ---- */
.text-block {
  padding: 3rem 4rem;
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid #eee;
}
.text-block h2 {
  font-size: 20px;
  font-weight: 500;
  color: #222;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.text-block p {
  font-size: 14px;
  color: #555;
  line-height: 2.2;
  margin-bottom: 1rem;
}

/* ---- FEATURES ---- */
.feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 300px;
  border-top: 1px solid #eee;
}
.feat.rev .feat-img { order: 2; }
.feat.rev .feat-txt { order: 1; }
.feat-img { overflow: hidden; }
.feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feat-txt {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}
.feat-txt h2 {
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
  color: #222;
  line-height: 1.6;
}
.feat-txt p {
  font-size: 15px;
  color: #666;
  line-height: 1.9;
}

/* ---- NEWS SLIDER ---- */
.news-sec {
  padding: 2.5rem 0;
  background: #fff;
  border-top: 1px solid #eee;
  overflow: hidden;
}
.news-sec-inner { padding: 0 2rem 1.25rem; }
.sec-label {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: #9a7d3a;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
}
.news-sec h2 {
  font-size: 20px;
  font-weight: 400;
  color: #222;
}
.slider-wrap {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.slider-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: slide-left 18s linear infinite;
  padding: 0.5rem 2rem;
}
.slider-wrap:hover .slider-track {
  animation-play-state: paused;
}
@keyframes slide-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.news-card {
  width: 260px;
  flex-shrink: 0;
  background: #fff;
  border: 0.5px solid #e0e0e0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  transition: box-shadow 0.2s;
  text-decoration: none;
}
.news-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.news-card-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  background: #f0f0f0;
}
.news-card-body { flex: 1; min-width: 0; }
.news-card-date {
  font-size: 13px;
  color: #999;
  margin-bottom: 3px;
}
.news-card-text {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}

/* ---- INSTAGRAM ---- */
.ig-sec {
  padding: 3rem 2rem;
  border-top: 1px solid #eee;
  text-align: center;
  background: #fff;
}
.ig-sec h2 {
  font-size: 20px;
  font-weight: 400;
  color: #222;
  margin-bottom: 1.75rem;
}
.ig-box {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  background: #fafafa;
  border: 0.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
}
.ig-box a {
  font-size: 15px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
}
.ig-box a:hover { color: #9a7d3a; }
.ig-box p { font-size: 12px; color: #aaa; }

/* ---- ACCESS ---- */
.access-sec {
  padding: 3rem 2rem;
  border-top: 1px solid #eee;
  background: #fff;
}
.access-sec h2 {
  font-size: 20px;
  font-weight: 400;
  color: #222;
  margin-bottom: 1.75rem;
}
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.5rem;
}
.info-card {
  background: #f7f7f7;
  border-radius: 4px;
  padding: 1rem 1.25rem;
}
.info-lbl {
  font-size: 13px;
  color: #999;
  margin-bottom: 4px;
}
.info-val {
  font-size: 13px;
  color: #333;
  line-height: 1.7;
}
.map-wrap {
  border-radius: 4px;
  overflow: hidden;
  height: 240px;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ---- FOOTER ---- */
.footer {
  position: relative;
  min-height: 220px;
  overflow: hidden;
}
.footer-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  display: block;
}
.footer-ov {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
}
.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  gap: 1.5rem;
  padding: 2rem;
}
.footer-nav {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  letter-spacing: 0.06em;
}
.footer-nav a:hover { color: #fff; }
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

/* ==============================
   スマホ対応 メディアクエリ
   ============================== */
@media (max-width: 768px) {

  /* ---- HEADER ---- */
  .ksc-h {
    padding: 0.6rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .ksc-h-logo { width: 40px; height: 40px; }
  .ksc-h-name span:first-child { font-size: 13px; }
  .ksc-h-name span:last-child { display: none; }
  .ksc-h-nav {
    width: 100%;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.4rem 0;
  }
  .ksc-h-nav a { font-size: 11px; }

  /* ---- HERO ---- */
  .hero { height: 260px; }
  .hero-inner h1 { font-size: 20px; }
  .hero-inner p { font-size: 12px; line-height: 1.9; }

  /* ---- FEATURES ---- */
  .feat {
    grid-template-columns: 1fr;
  }
  .feat.rev .feat-img { order: 0; }
  .feat.rev .feat-txt { order: 0; }
  .feat-img { height: 220px; }
  .feat-txt { padding: 1.75rem 1.25rem; }
  .feat-txt h2 { font-size: 16px; }
  .feat-txt p { font-size: 13px; }

  /* ---- CATEGORY 3COL ---- */
  .cat-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .cat-item { height: 160px; }
  .cat-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  /* ---- PHOTO GRID SQUARE ---- */
  .photo-grid-sq {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ---- PHOTO GRID 2 ---- */
  .photo-grid2 {
    grid-template-columns: 1fr;
    height: auto;
  }
  .photo-grid2 img { height: 220px; }

  /* ---- TEXT BLOCK ---- */
  .text-block { padding: 2rem 1.25rem; }
  .text-block h2 { font-size: 17px; }

  /* ---- NEWS SLIDER ---- */
  .news-card { width: 220px; }

  /* ---- ACCESS ---- */
  .access-grid { grid-template-columns: 1fr; }

  /* ---- FOOTER ---- */
  .footer-nav { gap: 1rem; }
  .footer-nav a { font-size: 12px; }
}
