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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050505;
  color: #e4e4e4;
  line-height: 1.7;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

/* Layout */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
header {
  background: #050505;
  border-bottom: 1px solid #262626;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 0;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  font-size: 13px;
}

nav li a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #f5f5f5;
  letter-spacing: 0.04em;
}

nav li a:hover {
  background: #222222;
}

/* Main & Sections */
main {
  padding: 32px 16px 40px;
}

section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  border-left: 4px solid #c77d2e;
  padding-left: 12px;
  margin-bottom: 20px;
  color: #f9f9f9;
}

/* Card */
.card {
  background: #111111;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  border: 1px solid #252525;
}

/* Two-column layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Company table */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.company-table th,
.company-table td {
  padding: 8px;
  border-bottom: 1px solid #262626;
  text-align: left;
}

.company-table th {
  width: 130px;
  color: #c77d2e;
  font-weight: 600;
}

/* Simple list */
ul.simple-list {
  list-style: disc;
  padding-left: 20px;
}

/* Footer */
footer {
  background: #050505;
  color: #777;
  padding: 18px 16px;
  text-align: center;
  font-size: 11px;
  margin-top: 40px;
  border-top: 1px solid #262626;
}

/* Top hero (dark & chic) */
.hero-top {
  position: relative;
  height: 600px;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.85)),
    url("hero_illustration.png");
  background-size: cover;
  background-position: left top;
  background-repeat: no-repeat;
  color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}

.hero-label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  font-size: 11px;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-copy h1 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.hero-text {
  font-size: 13px;
  max-width: 34rem;
  color: #d0d0d0;
}

/* Hero buttons */
.hero-buttons {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.hero-button {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.05em;
}

.hero-button.primary {
  background: #c77d2e;
  color: #050505;
}

.hero-button.primary:hover {
  background: #da9444;
}

.hero-button.ghost {
  background: transparent;
  color: #f0f0f0;
  border-color: #444444;
}

.hero-button.ghost:hover {
  background: #1d1d1d;
}

/* Hero slider (top) */
.hero-slider {max-width: 700px; margin: 0 auto 40px auto; padding: 10px;} 

.slider {
    margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.6s ease;
}

.slide {
  min-width: 100%;
}

.slide img {
  display: block;
  width: 100%;
  height: auto;
}

/* Slider navigation */
.slider-nav {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.slider-nav button {
  pointer-events: auto;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fefefe;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-nav button:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.slider-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}

.slider-dots span.active {
  background: #c77d2e;
}

/* Feature cards on top */
.section-feature {
  margin-top: 32px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  display: block;
  background: #111111;
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.7);
  border: 1px solid #252525;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.feature-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: #f8f8f8;
}

.feature-card p {
  font-size: 13px;
  color: #cfcfcf;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.85);
  border-color: #c77d2e;
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

/* Works */
.works-image {
  width: 100%;
  border-radius: 12px;
  border: 2px solid #2c2c2c;
  margin-bottom: 10px;
}



/* News list */
.news-list {
  list-style: none;
}

.news-list li {
  padding: 6px 0;
  border-bottom: 1px solid #262626;
  font-size: 13px;
  color: #cfcfcf;
}

.news-date {
  display: inline-block;
  width: 110px;
  font-weight: 600;
  color: #c77d2e;
}

/* Forms */
input, textarea, select {
  font-family: inherit;
  background: #050505;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  color: #f0f0f0;
  padding: 8px;
}

textarea {
  resize: vertical;
}

input:focus, textarea:focus, select:focus {
  outline: 1px solid #c77d2e;
  border-color: #c77d2e;
}

/* Submit buttons */
button[type="submit"] {
  background: #c77d2e;
  color: #050505;
  border-radius: 999px;
  border: none;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.04em;
}

button[type="submit"]:hover {
  background: #da9444;
}

/* Work detail slider */
.work-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 12px;
  background: #050505;
  box-shadow: 0 10px 26px rgba(0,0,0,0.8);
  border: 1px solid #303030;
}

.work-slides {
  display: flex;
  transition: transform 0.6s ease;
}

.work-slide {
  min-width: 100%;
}

.work-slide img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.work-slider-nav {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.work-slider-nav button {
  background: rgba(0,0,0,0.55);
  border: none;
  color: #fefefe;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.work-slider-nav button:hover {
  background: rgba(0,0,0,0.8);
}

.work-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.work-dots span {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  cursor: pointer;
}

.work-dots span.active {
  background: #c77d2e;
}

/* Map iframe background */
.card iframe {
  background: #050505;
}

}

.site-title {font-size: 30px; font-weight: 800; letter-spacing: 0.06em;}

.site-sub{font-size:12px;color:#666;line-height:1.4;margin-top:4px}

/* Hamburger button */
.nav-toggle {
  display: none;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 6px;
  margin-left: 12px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f5f5f5;
  margin: 4px 0;
}

/* Mobile navigation */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .two-column {
    grid-template-columns: 1fr;
  }

  .header-inner {
    justify-content: space-between;
    align-items: center;
  }

  .nav-toggle {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    right: 16px;
    top: 56px;
    flex-direction: column;
    gap: 0;
    background: #111111;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    padding: 8px 0;
    min-width: 190px;
  }

  nav.open ul {
    display: flex;
  }

  nav li a {
    display: block;
    padding: 10px 16px;
    border-radius: 0;
  }

  nav li a:hover {
    background: #222222;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  


.site-title {font-size: 30px; font-weight: 800; letter-spacing: 0.06em;}

.site-sub{font-size:12px;color:#666;line-height:1.4;margin-top:4px}


/* Smartphone: keep company name on one line */
.owned-section { margin: 40px 0; }
.owned-section h2 { font-size: 22px; margin-bottom: 12px; color: #f5a623; }
.owned-list { list-style: disc; margin-left: 20px; }
.owned-list li { margin: 6px 0; }

/* Machine grid layout */
.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.machine-card {
  background: #111111;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #252525;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  text-align: center;
}

.machine-image{
  width:100%;
  height:220px;        /* 全画像同じ高さ */
  object-fit:contain; /* 切り抜きせず縮尺維持 */
  background:#111;
}

.machine-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222222;
  color: #bbbbbb;
  font-size: 14px;
}

.machine-name {
  font-size: 16px;
  font-weight: 600;
}

.machine-image{
  width:100%;
  height:220px;        /* 全画像同じ高さ */
  object-fit:contain; /* 切り抜きせず縮尺維持 */
  background:#111;
}

.rental-note{
  margin: 6px 0 14px;
  color: #ddd;
  font-size: 14px;
}

/* Works cards grid */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 16px;
}



/* Force same size without cropping */
.force-fit{
  width:100% !important;
  height:220px !important;
  object-fit:contain !important;
  background:#0b0b0b !important;
}


/* Unified works card size */

.works-image{height:220px;object-fit:cover;width:100%}
.works-info{flex:1;display:flex;flex-direction:column;justify-content:center;padding:10px 12px}



/* Works grid: always 3 equal columns */
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
/* Works grid: 3 columns responsive */
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:24px;
  margin-top:16px;
}

}

}

/* KOTANI: Works grid fixed 3-column layout */


/* === FORCE 3 COLUMN GRID === */
.works-grid{
  display:grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap:24px !important;
}
.works-grid > .card,
.works-grid > .works-card{
  width:auto !important;
  float:none !important;
  display:block;
}

/* KOTANI CLEAN WORKS GRID */
.works-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:24px;
}

/* ==== 所有機械カードの見た目をリニューアル ==== */
.machine-grid .machine-card{
  background: radial-gradient(circle at top left, #1a2a1a 0%, #080808 45%, #050505 100%);
  border-radius: 16px;
  padding: 18px 16px 16px;
  border: 1px solid #2f3f2f;
  box-shadow: 0 14px 32px rgba(0,0,0,0.75);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.machine-grid .machine-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-top:2px solid #f5a623;
  opacity:0.9;
  pointer-events:none;
}
.machine-grid .machine-card:hover{
  transform: translateY(-4px);
  box-shadow:0 20px 40px rgba(0,0,0,0.9);
  border-color:#f5a623;
}

.machine-grid .machine-image{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:12px;
  margin-bottom:10px;
  background:#050505;
}

.machine-grid .machine-name{
  font-size:15px;
  font-weight:600;
  letter-spacing:0.04em;
  margin:4px 0 0;
  color:#f5f5f5;
}

/* ==== 所有機械グリッド：PCで横3列、タブレット2列、スマホ1列 ==== */
.machine-grid{
  display:grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap:20px !important;
  margin-top:16px !important;
}

@media (max-width: 900px){
  .machine-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px){
  .machine-grid{
    grid-template-columns: 1fr !important;
  }
}


/* ==== 所有設備：見出しオレンジ ==== */
.owned-section h2,
.machine-name{
  color:#f5a623 !important;
}


/* ==== 特定機械名のみ白色 ==== */
.machine-name[data-name="杭打機"],
.machine-name[data-name="コンパクトローダ"],
.machine-name[data-name="小型バックホー"],
.machine-name[data-name="中型バックホー"]{
  color:#ffffff !important;
}


/* ==== 指定機種のみ白色表示 ==== */
.machine-name[data-name="杭打機"],
.machine-name[data-name="コンパクトローダ"],
.machine-name[data-name="小型バックホー"],
.machine-name[data-name="中型バックホー"]{
  color:#ffffff !important;
}


/* ==== 所有機械 メーカー表示 ==== */
.machine-maker{
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #cfcfcf;
}


/* unify work cards */
.work-card{width:100%;max-width:360px;height:360px;display:flex;flex-direction:column}
.work-card img{width:100%;height:240px;object-fit:cover}
.work-info{flex:1;display:flex;flex-direction:column;justify-content:center}
@media(max-width:768px){
  .work-card{max-width:100%;height:320px}
  .work-card img{height:200px}
}


/* ===== Warm Theme Override ===== */
:root{
  --warm-bg:#fbf4e8;           /* creamy */
  --warm-card:#ffffff;
  --warm-accent:#e07a3f;       /* terracotta */
  --warm-accent-2:#f2b705;     /* honey */
  --warm-text:#3b2a20;
  --warm-muted:#7a5a4a;
}
body{
  background: var(--warm-bg);
  color: var(--warm-text);
}
header{background:#fff7ec}
a{color:var(--warm-accent)}
a:hover{opacity:.85}
.hero-overlay, .hero::after{
  background: linear-gradient(to bottom, rgba(224,122,63,.25), rgba(122,90,74,.65));
}
.section-title{color:var(--warm-text)}
.card, .feature-card, .works-card{
  background: var(--warm-card);
  box-shadow: 0 6px 18px rgba(122,90,74,.12);
  border:1px solid rgba(224,122,63,.12);
}
.hero-button.primary{background:var(--warm-accent); color:#fff}
.hero-button.primary:hover{filter:brightness(1.05)}
.hero-button.ghost{border-color:var(--warm-accent); color:var(--warm-accent)}
.nav a{color:var(--warm-text)}
.nav a.active, .nav a:hover{color:var(--warm-accent)}
footer{
  background:#f6e8d7;
  color:var(--warm-muted);
}
/* ===== End Warm Theme ===== */


/* ===== Contrast Fix ===== */
body{color:#2c1b12}
header, footer, .card, .feature-card, .works-card{color:#2c1b12}
h1,h2,h3,h4{color:#2c1b12}
p,li,.place{color:#4a2f22}
.hero-overlay, .hero::after{background: linear-gradient(to bottom, rgba(224,122,63,.45), rgba(122,90,74,.75));}
.hero .hero-title, .hero .hero-subtitle{color:#ffffff;text-shadow:0 2px 6px rgba(0,0,0,.45)}
.nav a{color:#2c1b12}
.nav a:hover,.nav a.active{color:#e07a3f}
/* buttons */
.hero-button.primary{color:#ffffff}
.hero-button.ghost{color:#e07a3f}
/* ===== End Contrast Fix ===== */


/* ===== Force Black for Tabs & Features ===== */
.nav a,
.nav a:hover,
.nav a.active{
  color:#000000 !important;
}
.feature-card h3,
.feature-card p,
.feature-card,
.feature-icon{
  color:#000000 !important;
}
/* ===== End Force Black ===== */

/* Ensure Tabs Black Only */
.nav a{color:#000 !important;}
.nav a:hover,.nav a.active{color:#000 !important;}


/* ===== Force ALL Tabs Black ===== */
.nav a,
.nav a:visited,
.nav a:hover,
.nav a:active,
.nav a.active,
header a{
  color:#000000 !important;
  opacity:1 !important;
}
/* ===== End Force ===== */


/* ===== Machines Section Cream Background ===== */
.machines-section,
.machines,
.machines-grid,
.machine-card,
.machine,
.machine-item{
  background:#fbf4e8 !important;   /* cream */
  border-color: rgba(224,122,63,.15) !important;
}
.machine-card,
.machine,
.machine-item{
  box-shadow: 0 6px 18px rgba(122,90,74,.12) !important;
  color:#2c1b12 !important;
}
/* ===== End Machines Cream ===== */


/* ===== Machines Card Text Black ===== */
.machine-card,
.machine-card *,
.machine,
.machine *,
.machine-item,
.machine-item *{
  color:#000000 !important;
}
/* ===== End Machines Card Text Black ===== */


/* ===== Machines Title (Top Row) Black ===== */
.machine-card h3,
.machine-card .title,
.machine-card .name,
.machine h3,
.machine .title,
.machine .name{
  color:#000000 !important;
}
/* ===== End Machines Title Black ===== */


/* ===== Final Override: Machine Titles Black ===== */
.machine-name,
.machine-name[data-name="杭打機"],
.machine-name[data-name="コンパクトローダ"],
.machine-name[data-name="小型バックホー"],
.machine-name[data-name="中型バックホー"]{
  color:#000000 !important;
}
/* ===== End Final Override ===== */

/* Hero text force white */
.hero h1,
.hero h2,
.hero .catchcopy,
.hero-title,
.hero-text {
  color: #ffffff !important;
}

/* Force hero catch copy to white */
.hero-copy h1,
.hero-copy p {
  color: #ffffff !important;
}


/* ===== Machine Images Unified Size ===== */
.machine-image{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px){
  .machine-image{
    height: 200px;
  }
}
/* ===== End Machine Images Unified Size ===== */

/* ===== First Small Excavator Fix ===== */
.first-small-excavator{
  object-fit: cover !important;
  height: 220px !important;
}
@media (max-width:768px){
  .first-small-excavator{
    height:200px !important;
  }
}
/* ===== End Fix ===== */


/* ===== Mobile Tab Active Black ===== */
@media (max-width: 768px){
  .nav a.active,
  .nav a:hover {
    color: #000000 !important;
    border-bottom-color: #000000 !important;
  }
  .nav a::after,
  .nav a.active::after {
    background-color: #000000 !important;
  }
}
/* ===== End Mobile Tab Active Black ===== */

/* ===== Mobile Tabs Text All Black ===== */
@media (max-width:768px){
  .nav a,
  .nav a span,
  .nav li a{
    color:#000000 !important;
  }
}
/* ===== End Mobile Tabs Text ===== */

/* ===== Strong Mobile Nav Text Black ===== */
@media (max-width: 900px){
  nav li a,
  nav li a:visited,
  nav li a:hover,
  nav li a:active{
    color:#000000 !important;
  }
}
/* ===== End Strong Mobile Nav Text Black ===== */

/* ===== Mobile Works Grid Fix ===== */
@media (max-width: 768px){
  .works-grid{
    grid-template-columns: 1fr !important;
  }
}
/* ===== End Mobile Works Grid Fix ===== */

/* ===== Mobile Nav All Black Final ===== */
@media (max-width: 768px){
  nav a,
  nav a:visited,
  nav a:hover,
  nav a:active,
  nav a.active{
    color:#000000 !important;
  }
  .nav a::after,
  .nav a.active::after,
  nav a::after,
  nav a.active::after{
    background-color:#000000 !important;
    border-color:#000000 !important;
  }
}
/* ===== End Mobile Nav All Black ===== */

/* ===== Mobile Nav Text & Marker ALL Black ===== */
@media (max-width: 768px){
  /* tab text */
  nav a,
  nav a span,
  nav li a,
  nav a:visited,
  nav a:hover,
  nav a:active,
  nav a.active{
    color:#000000 !important;
    opacity:1 !important;
  }
  /* underline / marker */
  .nav a::after,
  .nav a.active::after,
  nav a::after,
  nav a.active::after{
    background-color:#000000 !important;
    border-color:#000000 !important;
  }
}
/* ===== End Mobile Nav Text & Marker ===== */

/* ===== Mobile Nav Background White & Marker Black ===== */
@media (max-width: 768px){
  header, nav, .nav {
    background:#ffffff !important;
  }
  nav li {
    background:#ffffff !important;
  }
  /* tab text */
  nav a,
  nav a:visited,
  nav a:hover,
  nav a:active,
  nav a.active{
    color:#000000 !important;
  }
  /* underline / marker */
  .nav a::after,
  .nav a.active::after,
  nav a::after,
  nav a.active::after{
    background-color:#000000 !important;
    border-bottom-color:#000000 !important;
  }
}
/* ===== End Mobile Nav Background & Marker ===== */

/* ===== FINAL FIX: Mobile Tab Marker Black ===== */
@media (max-width: 768px){
  /* bottom border / outline markers */
  nav a,
  .nav a {
    border-bottom-color: #000000 !important;
    outline-color: #000000 !important;
  }

  /* pseudo-element markers */
  .nav a::after,
  .nav a::before,
  nav a::after,
  nav a::before,
  .nav a.active::after,
  nav a.active::after {
    background:#000000 !important;
    color:#000000 !important;
    border-color:#000000 !important;
    box-shadow:none !important;
  }

  /* any element used as marker */
  .nav .active,
  .nav .is-active,
  .nav .current {
    border-color:#000000 !important;
    color:#000000 !important;
  }
}
/* ===== END FINAL FIX ===== */


/* ===== MOBILE NAV ACTIVE MARKER: BORDER BLACK ===== */
@media (max-width: 768px){

  /* ナビ全体 白背景 */
  header, nav, .nav {
    background: #ffffff !important;
  }

  /* タブ文字は黒 */
  nav a {
    color: #000000 !important;
  }

  /* 選択中のタブに黒い下線を出す */
  nav a.active,
  nav li.active a {
    border-bottom: 3px solid #000000 !important;
    padding-bottom: 6px;
  }

  /* hover / tap 時も黒 */
  nav a:hover,
  nav a:focus {
    border-bottom: 3px solid #000000 !important;
  }
}
/* ===== END MOBILE NAV ACTIVE MARKER ===== */


/* ===== FORCE HAMBURGER ICON BLACK (mobile) ===== */
@media (max-width: 768px){
  .menu-toggle, .menu-toggle span,
  .hamburger, .hamburger span,
  .nav-toggle, .nav-toggle span,
  button.menu-toggle, button.hamburger {
    background:#000 !important;
    color:#000 !important;
    border-color:#000 !important;
  }
  .menu-toggle svg, .menu-toggle svg path,
  .hamburger svg, .hamburger svg path,
  .nav-toggle svg path{
    fill:#000 !important;
    stroke:#000 !important;
  }
}
/* ===== END FORCE HAMBURGER ICON BLACK ===== */

/* ===== FINAL FORCE NAV BG WHITE & MARKER BLACK ===== */
@media (max-width: 768px){
  header, nav, .nav, header * , nav * , .nav *{
    background:#ffffff !important;
  }
  nav a, nav a:visited, nav a:hover, nav a.active{
    color:#000000 !important;
  }
  nav a.active, nav li.active a{
    border-bottom:3px solid #000000 !important;
  }
  .nav-toggle span, .hamburger span{
    background:#000000 !important;
  }
}
/* ===== END FINAL FORCE ===== */

/* ===== FIX: Hamburger Background White ===== */
@media (max-width: 768px){
  .nav-toggle,
  .hamburger,
  .menu-toggle{
    background:#ffffff !important;
  }
}
/* ===== END FIX ===== */


/* ===== Works Category Titles ===== */
.works-category-title{
  font-size:20px;
  margin-top:28px;
  margin-bottom:12px;
  font-weight:700;
  letter-spacing:0.08em;
  border-left:4px solid #f97316;
  padding-left:10px;
}
.works-empty{
  font-size:14px;
  color:#aaa;
  margin-top:8px;
  margin-bottom:8px;
}
/* ===== END Works Category Titles ===== */


/* ===== JPRS Site Seal ===== */
.site-seal {
  text-align: center;
  margin-top: 10px;
}
.site-seal img {
  max-width: 120px;
  height: auto;
  display: inline-block;
}
/* ===== END JPRS Site Seal ===== */


/* ===== FIX SLIDER IMAGE SIZE ===== */
.slider .slides {
  display:flex;
}
.slider .slide {
  min-width:100%;
  height:420px;
  overflow:hidden;
}
.slider .slide img{
  width:100%;
  height:100%;
  object-fit:cover;
}
/* ===== END FIX SLIDER IMAGE SIZE ===== */


/* ===== ENSURE WORKS GRID 3 COLUMNS ===== */
.works-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
@media (max-width: 1024px){
  .works-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px){
  .works-grid{ grid-template-columns: 1fr !important; }
}
/* ===== END ENSURE ===== */


/* ===== FIX WORKS IMAGE SIZE ===== */
.works-card .works-image{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}
/* ===== END FIX WORKS IMAGE SIZE ===== */
