@charset "UTF-8";
/* =============================================
   勇和金属株式会社 — Design System
   ============================================= */

/* --- CSS Variables --- */
:root {
  --color-primary: #1a2332;
  --color-primary-light: #263245;
  --color-accent: #c77826;
  --color-accent-light: #e8953a;
  --color-gold: #b8942e;
  --color-white: #ffffff;
  --color-bg: #f8f8f6;
  --color-bg-dark: #f0efec;
  --color-text: #1a1a1a;
  --color-text-light: #666666;
  --color-text-lighter: #999999;
  --color-border: #e5e3e0;
  --font-jp: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-en: 'Montserrat', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 50px rgba(0,0,0,.12);
  --radius: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 80px;
  --header-h-scroll: 64px;
  --container: 1120px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-jp);
  color: var(--color-text);
  line-height: 1.85;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: var(--header-h);
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-en);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

/* --- Utility --- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sp-only { display: none; }
@media (max-width: 767px) { .sp-only { display: block; } .pc-only { display: none; } }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 36px; font-size: 15px; font-weight: 700; border-radius: var(--radius);
  transition: var(--transition); letter-spacing: 0.03em; font-family: var(--font-jp);
  white-space: nowrap;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(199,120,38,.3); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: #fff; color: var(--color-primary); border-color: #fff; }
.btn-white { background: #fff; color: var(--color-accent); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.btn-sm { padding: 10px 22px; font-size: 13px; }
.btn-lg { padding: 18px 48px; font-size: 17px; }

/* --- Section labels & headers --- */
.section { padding: 100px 0; }
.section-gray { background: var(--color-bg); }
.section-dark { background: var(--color-primary); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .section-subtitle { color: rgba(255,255,255,.55); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  color: var(--color-accent); text-transform: uppercase; margin-bottom: 12px;
  font-family: var(--font-en);
}
.section-title { margin-bottom: 14px; }
.section-subtitle { color: var(--color-text-light); font-size: 15px; max-width: 560px; margin: 0 auto; }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: var(--transition);
}
.header.scrolled { border-bottom-color: var(--color-border); box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); transition: height var(--transition);
}
.header.scrolled .header-inner { height: var(--header-h-scroll); }
.header-logo { flex-shrink: 0; }
.header-logo img { height: 40px; width: auto; transition: height var(--transition); }
.header.scrolled .header-logo img { height: 34px; }

/* Navigation */
.header-nav { display: flex; align-items: center; gap: 2px; }
.header-nav > li { position: relative; }
.header-nav > li > a {
  display: block; padding: 28px 16px; font-size: 14px; font-weight: 500;
  color: var(--color-text); font-family: var(--font-jp); letter-spacing: 0.02em;
  position: relative;
}
.header-nav > li > a::after {
  content: ''; position: absolute; bottom: 20px; left: 16px; right: 16px;
  height: 2px; background: var(--color-accent); transform: scaleX(0);
  transition: transform var(--transition);
}
.header-nav > li > a:hover { color: var(--color-accent); }
.header-nav > li > a:hover::after { transform: scaleX(1); }

/* Dropdown */
.header-nav .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: var(--transition); overflow: hidden;
}
.header-nav li:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { border-bottom: 1px solid var(--color-border); }
.dropdown li:last-child { border-bottom: none; }
.dropdown a {
  display: block; padding: 14px 20px; font-size: 14px; color: var(--color-text);
  transition: var(--transition);
}
.dropdown a:hover { background: var(--color-bg); color: var(--color-accent); padding-left: 24px; }

/* Header tel */
.header-tel {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; color: var(--color-accent); white-space: nowrap;
}
.header-tel small { display: block; font-size: 10px; font-weight: 400; color: var(--color-text-lighter); line-height: 1.4; }
.header-tel svg { flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 2001;
}
.hamburger span {
  display: block; width: 26px; height: 2px; background: var(--color-text);
  transition: var(--transition); border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(255,255,255,.98); flex-direction: column;
  padding: 100px 40px 40px; overflow-y: auto;
}
.mobile-nav.visible { display: flex; }
.mobile-nav a { display: block; padding: 16px 0; font-size: 17px; font-weight: 700; color: var(--color-primary); border-bottom: 1px solid var(--color-border); }
.mobile-nav .mobile-tel {
  margin-top: 32px; padding: 20px; background: var(--color-bg); border-radius: var(--radius); text-align: center;
}
.mobile-nav .mobile-tel a { border: none; font-size: 22px; color: var(--color-accent); padding: 0; }
.mobile-nav .mobile-tel small { font-size: 12px; color: var(--color-text-light); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative; height: calc(100vh - var(--header-h)); min-height: 560px; max-height: 840px;
  display: flex; align-items: center; overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background: center/cover no-repeat;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,35,50,.88) 0%, rgba(26,35,50,.4) 60%, rgba(26,35,50,.2) 100%);
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero-dots {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 2;
}
.hero-dots .dot {
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5);
  cursor: pointer; transition: var(--transition);
}
.hero-dots .dot.active, .hero-dots .dot:hover { background: #fff; border-color: #fff; }
.hero-tag {
  display: inline-block; padding: 6px 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 2px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--color-gold);
  text-transform: uppercase; font-family: var(--font-en); margin-bottom: 24px;
}
.hero h1 { color: #fff; font-weight: 800; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--color-gold); }
.hero-desc { color: rgba(255,255,255,.7); font-size: 16px; line-height: 2; margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 36px; margin-top: 56px; }
.hero-point { color: #fff; }
.hero-point .num { font-size: 2rem; font-weight: 800; color: var(--color-gold); font-family: var(--font-en); }
.hero-point .label { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 2px; letter-spacing: 0.06em; }

/* =============================================
   SERVICE CARDS
   ============================================= */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 44px 32px; text-align: center;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  border-top: 3px solid transparent;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-top-color: var(--color-accent); }
.service-card .card-icon {
  width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--color-bg); display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.service-card:hover .card-icon { background: var(--color-accent); }
.service-card:hover .card-icon svg { stroke: #fff; }
.service-card svg { stroke: var(--color-accent); transition: var(--transition); }
.service-card h3 { font-size: 17px; margin-bottom: 10px; font-family: var(--font-jp); font-weight: 700; }
.service-card p { font-size: 14px; color: var(--color-text-light); line-height: 1.9; }

/* =============================================
   ABOUT SPLIT
   ============================================= */
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); width: 100%; height: 440px; object-fit: cover; }
.about-img::after {
  content: ''; position: absolute; bottom: -16px; right: -16px;
  width: 100%; height: 100%; border: 2px solid var(--color-accent);
  border-radius: var(--radius); z-index: -1;
}
.about-text h2 { margin-bottom: 18px; }
.about-text p { color: var(--color-text-light); margin-bottom: 16px; line-height: 2.1; }
.about-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.about-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.about-list li::before { content: ''; display: block; width: 6px; height: 6px; background: var(--color-accent); border-radius: 50%; flex-shrink: 0; }

/* =============================================
   PROCESS (4 steps)
   ============================================= */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.process-grid::before {
  content: ''; position: absolute; top: 36px; left: 14%; right: 14%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}
.process-step { text-align: center; position: relative; z-index: 1; }
.process-step .step-num {
  width: 48px; height: 48px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--color-primary); color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 18px;
  font-weight: 800; font-family: var(--font-en);
}
.process-step h4 { font-size: 16px; font-family: var(--font-jp); font-weight: 700; margin-bottom: 8px; color: var(--color-primary); }
.process-step p { font-size: 13px; color: var(--color-text-light); line-height: 1.8; max-width: 200px; margin: 0 auto; }

/* =============================================
   ITEMS TABLE
   ============================================= */
.items-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.item-tag {
  background: #fff; padding: 20px 16px; text-align: center; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; color: var(--color-primary);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.item-tag:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--color-accent); }

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a3450 100%);
  padding: 80px 0; text-align: center; color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,.6); margin-bottom: 28px; font-size: 16px; }
.cta-tel { font-size: 2.6rem; font-weight: 800; color: var(--color-gold); display: block; margin-bottom: 6px; letter-spacing: 0.04em; }
.cta-hours { font-size: 13px; color: rgba(255,255,255,.45); }

/* =============================================
   MAP
   ============================================= */
.map-wrap { height: 400px; }
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--color-primary); color: rgba(255,255,255,.55); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-col h4 { color: #fff; font-size: 14px; font-family: var(--font-jp); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 13px; color: rgba(255,255,255,.45); transition: var(--transition); }
.footer-col ul a:hover { color: #fff; }
.footer-brand img { height: 32px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.8; }
.footer-brand p { font-size: 13px; line-height: 2; margin-bottom: 14px; }
.footer-tel { font-size: 1.5rem; font-weight: 800; color: var(--color-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.3);
}
.footer-bottom a { color: rgba(255,255,255,.3); }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* =============================================
   PAGE HEADER (sub pages)
   ============================================= */
.page-header {
  position: relative; height: 300px;
  background: url('../assets/images/green-wind.jpg') center/cover no-repeat;
  display: flex; align-items: center;
}
.page-header::before { content: ''; position: absolute; inset: 0; background: rgba(26,35,50,.8); }
.page-header-inner { position: relative; z-index: 1; }
.page-header h1 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.breadcrumb { display: flex; gap: 6px; font-size: 12px; color: rgba(255,255,255,.4); margin-top: 8px; }
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: #fff; }

/* =============================================
   GALLERY
   ============================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4/3; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-overlay {
  position: absolute; inset: 0; background: rgba(26,35,50,.5);
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 5000;
  align-items: center; justify-content: center;
}
.lightbox.visible { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close { position: absolute; top: 24px; right: 32px; font-size: 40px; color: #fff; cursor: pointer; z-index: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 48px; color: #fff; cursor: pointer; padding: 20px; }
.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }

/* =============================================
   COMPANY TABLE
   ============================================= */
.info-table { width: 100%; max-width: 720px; margin: 0 auto; border-collapse: collapse; }
.info-table th, .info-table td { padding: 16px 20px; font-size: 14px; text-align: left; }
.info-table th { font-weight: 700; color: var(--color-primary); white-space: nowrap; width: 140px; background: var(--color-bg); }
.info-table td { color: var(--color-text-light); }
.info-table tr { border-bottom: 1px solid var(--color-border); }

/* =============================================
   PRIVACY PAGE
   ============================================= */
.privacy-content { max-width: 740px; margin: 0 auto; }
.privacy-content h3 { font-family: var(--font-jp); font-size: 18px; margin: 32px 0 10px; }
.privacy-content p { color: var(--color-text-light); line-height: 2.1; margin-bottom: 14px; }

/* =============================================
   FLOATING CTA (mobile)
   ============================================= */
.float-cta {
  display: none; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 999;
  background: var(--color-accent); color: #fff; padding: 12px 20px; text-align: center;
  font-weight: 700; font-size: 15px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .header-nav, .header-tel { display: none; }
  .hamburger { display: flex; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .about-row { grid-template-columns: 1fr; gap: 40px; }
  .about-img::after { display: none; }
  .about-img img { height: 300px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .process-grid::before { display: none; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .items-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero-points { gap: 24px; flex-wrap: wrap; }
}

@media (max-width: 767px) {
  body { padding-top: 64px; }
  :root { --header-h: 64px; --header-h-scroll: 56px; }
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .hero {
    height: auto; min-height: 480px; max-height: none; padding: 60px 0;
  }
  .hero h1 { font-size: 1.8rem; }
  .hero-desc { font-size: 14px; }
  .hero-points { display: none; }
  .hero-tag { font-size: 10px; }
  .cards-3 { grid-template-columns: 1fr; }
  .service-card { padding: 32px 24px; }
  .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .process-step p { max-width: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .items-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
  .page-header { height: 200px; }
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { padding: 10px 14px; }
  .info-table td { padding: 10px 14px; }
  .float-cta { display: block; }
  .btn { padding: 12px 24px; font-size: 14px; }
  .cta-tel { font-size: 1.8rem; }
}
