/* ==========================================================
   common.css - 全ページ共通スタイル
   ========================================================== */

/* ==============================
   CSS Variables / Design Tokens
   ============================== */
:root {
  --color-bg: #0a0a0a;
  --color-fg: #FFF;
  --color-card: #141414;
  --color-card-fg: #fafafa;
  --color-primary: #FFB127;
  --color-primary-fg: #ffffff;
  --color-muted: #a1a1aa;
  --color-border: #707070;
  --color-green: #5D916B;
}

/* ==============================
   Reset & Base
   ============================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  color: #383838;
  font-size: 0.875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ==============================
   Utility
   ============================== */
.container {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==============================
   ANCHOR SCROLL OFFSET（固定ヘッダー分のずれ補正）
   ============================== */
html {
  scroll-padding-top: 70px; /* SP: ヘッダー高さ */
}

@media (min-width: 768px) {
  html {
    scroll-padding-top: 90px; /* PC: ヘッダー高さ */
  }
}

/* ==============================
   Textures & Decorative
   ============================== */
.metal-texture {
  background-color: var(--color-bg);
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.015) 2px,
      rgba(255, 255, 255, 0.015) 4px
    );
}

.concrete-texture {
  background-color: #FFF;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
}

.diagonal-cut-top::before {
  content: '';
  display: block;
  height: 60px;
  margin-top: -60px;
  background: inherit;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ==============================
   Transitions
   ============================== */
.transition-industrial {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ==============================
   HEADER
   ============================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: #FFF;
  letter-spacing: 0.01em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #FFF;
  transition: color 0.2s;
}

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

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.nav-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.nav-main {
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFF;
  transition: color 0.2s;
}

.nav-item:hover .nav-main,
.nav-item:hover .nav-sub {
  color: var(--color-primary);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.header-actions .btn-contact-header {
  display: inline-flex;
  min-width: auto;
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
}

.header-actions .btn-contact-header:first-child {
  background: transparent;
  color: #FFF;
  border: 1px solid #FFF;
}

.header-actions .btn-contact-header:first-child:hover {
  background: #FFF;
  color: var(--color-bg);
}

.header-actions .btn-contact-header:last-child {
  background: var(--color-primary);
  color: #FFF;
  border: none;
}

.header-actions .btn-contact-header:last-child:hover {
  background: rgba(255, 168, 57, 0.85);
}

.header-nav-btns {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.header-nav-btns .nav-drawer-btn {
  width: auto;
  flex: none;
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

.btn-contact-header {
  display: none;
}

/* ==============================
   HAMBURGER（SP用）
   ============================== */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 3px;
  background: #FFF;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.35s ease;
  transform-origin: center;
}

.hamburger.is-open .hamburger-line {
  background: #FFF;
}

.hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.hamburger.is-open .hamburger-line:nth-child(2) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* ==============================
   NAV DRAWER（SPドロワー）
   ============================== */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 75vw;
  max-width: 320px;
  height: 100vh;
  background: rgba(10, 10, 10, 0.98);
  border-left: 1px solid var(--color-border);
  z-index: 90;
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  overflow-y: auto;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-drawer-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
  color: #FFF;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-drawer-item .nav-sub {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 0.9;
}

.nav-drawer-item .nav-main {
  font-size: 1.125rem;
  font-weight: 700;
  color: #FFF;
}

.nav-drawer-item:hover .nav-main,
.nav-drawer-item:hover .nav-sub {
  color: var(--color-primary);
}

.nav-drawer-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.nav-drawer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  text-align: center;
}

.nav-drawer-btn-outline {
  background: transparent;
  color: #FFF;
  border: 1px solid #FFF;
}

.nav-drawer-btn-outline:hover {
  background: #FFF;
  color: var(--color-bg);
}

.nav-drawer-btn-primary {
  background: var(--color-primary);
  color: #FFF;
  border: none;
}

.nav-drawer-btn-primary:hover {
  background: rgba(255, 168, 57, 0.85);
}

/* 2行テキストボタン */
.nav-drawer-btn--2line {
  flex-direction: column;
  padding: 0.7rem 1.5rem 0.8rem;
}

.nav-drawer-btn-sub {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.85;
}

.nav-drawer-btn-main {
  line-height: 1.2;
  font-size: 1.125rem;
  font-weight: 700;
}

.drawer-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.drawer-close-line {
  position: absolute;
  display: block;
  width: 22px;
  height: 2px;
  background: #FFF;
  border-radius: 2px;
}

.drawer-close-line:nth-child(1) { transform: rotate(45deg); }
.drawer-close-line:nth-child(2) { transform: rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ==============================
   BUTTONS
   ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  min-width: 260px;
  padding: 15px;
  color: var(--color-primary);
  border: 1px solid var(--color-primary)!important;
}

.btn-primary:hover {
  background: var(--color-primary);
  color: #FFF;
}

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

.btn-outline:hover {
  border-color: var(--color-primary);
  background: transparent;
}

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

.btn-outline-fg:hover {
  background: var(--color-fg);
  color: var(--color-bg);
}

.btn-dark {
  background: #4C4848;
  color: #FFF;
}

.btn-dark:hover {
  background: #9D9D9D;
}

.btn-lg {
  min-width: auto;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-color: #FFF;
}

.btn-lg span {
  display: inline-block;
  margin-left: 10px;
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.4rem 2rem;
  color: #FFF;
}

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

.btn-outline-primary:hover {
  background: var(--color-primary);
  color: var(--color-primary-fg);
}

/* BTN UNDERLINE */
.btn-underline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  gap: 1rem;
}

.btn-underline-text {
  flex: 1;
  text-align: left;
}

.btn-underline-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn-underline:hover .btn-underline-arrow {
  transform: translateX(8px);
}

.btn-underline-center {
  max-width: 320px;
  margin: 0 auto;
  color: #383838;
}

.btn-underline-right {
  max-width: 320px;
  margin-left: auto;
  color: #FFF;
}

/* BTN STORE */
.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border: 1px solid #383838;
  background: transparent;
  color: #383838;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-store:hover {
  background: #383838;
  color: #fff;
}

.btn-store img,
.btn-store .store-logo {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  display: inline-block;
}

.btn-store .store-logo--hover {
  display: none;
}

.btn-store:hover .store-logo--default {
  display: none;
}

.btn-store:hover .store-logo--hover {
  display: inline-block;
}

/* ==============================
   SECTION SHARED
   ============================== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-label {
  font-size: 1rem;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 0.09em;
}

.section-title {
  font-size: clamp(2.9rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #FFF;
}

.concrete-texture .section-title {
  color: #383838;
}

/* ==============================
   PAGE HERO（サブページ共通）
   ============================== */
.page-hero {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.page-hero .container {
  position: relative;
  z-index: 10;
}

.page-hero .section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 0;
}

.page-hero p {
  color: #FFF;
  font-size: 0.875rem;
}

@media (min-width: 1024px) {
  .page-hero p {
    font-size: 1rem;
  }
}

.page-hero--contact .section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

/* ==============================
   BREADCRUMB（サブページ共通）
   ============================== */
.breadcrumb {
  display: flex;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-sep {
  color: var(--color-primary);
}

.breadcrumb-current {
  color: #383838;
}

/* ==============================
   PRODUCT CARD（共通コンポーネント）
   ============================== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

a.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card {
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.product-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #FFF;
  padding-top: 2.25rem;
}

.product-card-img img {
  width: 100%;
  height: calc(100% - 2.25rem);
  object-fit: contain;
  display: block;
}

.product-badge {
  position: absolute;
  top: 0;
  left: 0;
  color: #FFF;
  font-size: 0.875rem;
  font-weight: 800;
  padding: 0.2rem 3rem 0.3rem 3rem;
  z-index: 10;
}

.badge-new {
  background: var(--color-green);
}

.badge-popular {
  background: var(--color-primary);
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-card-body .desc {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.7em * 3);
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: end;
}

.products-more {
  text-align: center;
}

/* ==============================
   PRODUCTS SLIDER（共通コンポーネント）
   ============================== */
.products-slider-wrap {
  display: grid;
  grid-template-columns: 1rem 1fr 1rem;
  padding-bottom: 4rem;
  margin-bottom: 3rem;
}

.products-slider-wrap .products-slider {
  grid-column: 2;
  min-width: 0;
}

.products-slider .slick-list {
  margin: 0 -0.625rem;
  overflow: hidden;
}

.products-slider .slick-slide {
  margin: 0.5em;
  box-sizing: border-box;
  min-width: 0;
}

.products-slider .product-card-body {
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

.products-slider .slick-dots {
  bottom: -2.75rem;
}

.products-slider .slick-dots li.slick-active button::before {
  color: var(--color-primary);
  opacity: 1;
}

.products-slider .slick-prev,
.products-slider .slick-next {
  width: 36px;
  height: 36px;
  background: #141414;
  border: 1px solid var(--color-border);
  z-index: 5;
  transition: background 0.3s, border-color 0.3s;
}

.products-slider .slick-prev:hover,
.products-slider .slick-next:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.products-slider .slick-prev { left: -1rem; }
.products-slider .slick-next { right: -1rem; }

.products-slider .slick-prev::before,
.products-slider .slick-next::before {
  color: #FFF;
  font-size: 1rem;
  opacity: 1;
}

/* ==============================
   STORE LINKS
   ============================== */
.store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.link-icon {
  margin-left: 10px;
  width: 0.8rem;
  height: 0.8rem;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
}

/* ==============================
   FOOTER
   ============================== */
.site-footer {
  background: var(--color-bg);
  border-top: 2px solid var(--color-border);
  padding: 4rem 0;
  padding-top: calc(4rem + 80px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  position: relative;
  padding-bottom: 3rem;
}

.footer-brand::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #9A9A9A;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #FFF;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.footer-brand .footer-col a {
  color: #9A9A9A;
}

.footer-brand .footer-col a:hover {
  color: var(--color-primary);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  margin-bottom: 1rem;
  color: #9A9A9A;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col li {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-muted);
  transition: color 0.2s;
}

.footer-col a {
  font-size: 1rem;
  font-weight: 800;
  color: #FFF;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-col dl {
  font-weight: 800;
  color: #FFF;
}

.footer-col dl div {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.footer-col dl dt {
  width: 25%;
}

.footer-bottom {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* ==============================
   TABLET（640px〜）
   ============================== */
@media (min-width: 640px) {
  .btn-contact-header {
    display: inline-flex;
  }

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

/* ==============================
   TABLET（768px〜）
   ============================== */
@media (min-width: 768px) {
  /* Header */
  .site-nav {
    display: flex;
  }

  .header-actions {
    display: flex;
  }

  .header-nav-btns {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .nav-drawer,
  .nav-overlay {
    display: none;
  }

  /* Footer */
  .footer-brand {
    padding-bottom: 0;
    padding-right: 4rem;
    margin-right: auto;
  }

  .footer-brand::after {
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: 1px;
    height: 100%;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    justify-content: space-between;
    column-gap: 0;
  }

  .footer-col:nth-child(2) {
    justify-self: stretch;
  }

  .footer-col:nth-child(3) {
    justify-self: center;
  }

  .footer-col dl div {
    display: flex;
  }
}

/* ==============================
   PC（961px〜）
   ============================== */
@media (min-width: 961px) {
  /* Header */
  .site-header .container {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }

  .site-logo {
    font-size: 1.625rem;
  }

  .nav-main {
    font-size: 1.125rem;
  }

  .nav-sub {
    font-size: 0.75rem;
  }

  .header-nav-btns .nav-drawer-btn {
    min-width: 260px;
    font-size: 1.125rem;
    padding: 0.6rem 1.5rem 0.8rem;
  }

  /* Buttons */
  .btn-lg {
    min-width: 300px;
  }
}

/* ==============================
   PC（1024px〜）
   ============================== */
@media (min-width: 1024px) {
  .site-logo {
    font-size: 2.3rem;
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* フォントサイズ */
  p {
    font-size: 1rem;
  }

  .btn-primary {
    font-size: 1rem;
  }

  .footer-col dl dt,
  .footer-col dl dd {
    font-size: 1rem;
  }
}