/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --blue:      #2196F3;
  --blue-dark: #1565C0;
  --blue-mid:  #1976D2;
  --blue-pale: #E3F2FD;
  --blue-bg:   #F0F8FF;
  --text:      #1a1a1a;
  --text-mid:  #555;
  --text-mute: #888;
  --border:    rgba(0,0,0,0.1);
  --bg:        #ffffff;
  --bg-alt:    #F5F8FC;
  --radius:    10px;
  --radius-sm: 6px;
  --max-w:     1080px;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Hiragino Kaku Gothic ProN','Hiragino Sans','Noto Sans JP',Meiryo,sans-serif;
  color: var(--text); background: var(--bg);
  line-height: 1.75; font-size: 15px;
}
a { color: var(--blue); text-decoration: none; }
a:hover { opacity: .8; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== NAV ===== */
.site-nav {
  background: #fff;
  border-bottom: 3px solid var(--blue);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: stretch; justify-content: space-between;
  height: 68px; padding: 0 1.5rem;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo svg { width: 40px; height: 40px; flex-shrink: 0; }
.logo-name { font-size: 20px; font-weight: 700; color: var(--blue); letter-spacing: .4px; }
.logo-sub  { font-size: 10px; color: var(--text-mute); line-height: 1.3; }
.nav-links { display: flex; align-items: stretch; gap: 0; }
.nav-links a {
  display: flex; align-items: center;
  padding: 0 1.25rem;
  font-size: 14px; font-weight: 600; color: var(--text-mid);
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue); border-bottom-color: var(--blue);
}
.nav-tel {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700; color: var(--blue);
}
.nav-tel svg { width: 18px; height: 18px; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; }
/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 23px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.mobile-nav {
  display: none; flex-direction: column;
  position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 99; padding: 1.5rem;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block; padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px; font-weight: 600; color: var(--text);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ===== HERO (index) ===== */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #42A5F5 100%);
  color: #fff;
  min-height: 420px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative; overflow: hidden;
  padding: 4rem 2rem;
}
.hero-bg-b {
  position: absolute; right: -60px; top: -60px;
  width: 360px; height: 360px; opacity: .07; pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  padding: 4px 16px; margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700; line-height: 1.4;
  margin-bottom: 1rem;
}
.hero p { font-size: 15px; opacity: .9; max-width: 520px; margin: 0 auto 2rem; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: #fff; color: var(--blue);
  font-size: 14px; font-weight: 700;
  padding: 12px 32px; border-radius: 4px;
  border: none; cursor: pointer;
  display: inline-block;
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.15); color: var(--blue); }
.btn-ghost {
  background: transparent; color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 12px 32px; border-radius: 4px;
  border: 2px solid rgba(255,255,255,.5);
  cursor: pointer; display: inline-block;
  transition: border-color .15s;
}
.btn-ghost:hover { border-color: #fff; color: #fff; }

/* ===== PAGE HEADER (sub pages) ===== */
.page-header {
  background: var(--blue);
  color: #fff; padding: 2.5rem 2rem;
  text-align: center;
}
.page-header h1 { font-size: 26px; font-weight: 700; }
.page-header p  { font-size: 14px; opacity: .85; margin-top: .4rem; }

/* ===== SECTION ===== */
.section { padding: 4rem 2rem; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-label {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue); margin-bottom: .4rem;
}
.section-title { font-size: clamp(20px, 3.5vw, 26px); font-weight: 700; margin-bottom: .4rem; }
.section-sub { font-size: 13px; color: var(--text-mute); }

/* ===== INTRO BLOCK ===== */
.intro-block {
  max-width: 760px; margin: 0 auto;
  font-size: 15px; line-height: 1.9; color: var(--text-mid);
  text-align: center;
}
.intro-block p { margin-bottom: .75rem; }

/* ===== SERVICE CARDS (index) ===== */
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: 0 6px 24px rgba(33,150,243,.12); transform: translateY(-3px); }
.svc-icon {
  width: 48px; height: 48px; background: var(--blue-pale); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.svc-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 16px; font-weight: 700; margin-bottom: .5rem; }
.service-card p  { font-size: 13px; color: var(--text-mid); line-height: 1.65; }
.service-card .more-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: var(--blue); margin-top: .75rem;
}

/* ===== BIG CTA BUTTONS (index) ===== */
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 2rem; }
.cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--blue); color: #fff;
  padding: 1.25rem 2rem; border-radius: var(--radius);
  font-size: 16px; font-weight: 700;
  transition: background .15s, transform .15s;
}
.cta-btn:hover { background: var(--blue-mid); transform: translateY(-2px); color: #fff; }
.cta-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.cta-btn.ghost { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.cta-btn.ghost:hover { background: var(--blue-pale); }
.cta-btn.ghost svg { stroke: var(--blue); }

/* ===== WORK PAGE ===== */
.maker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.maker-block {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem;
}
.maker-block h3 {
  font-size: 14px; font-weight: 700; color: var(--blue);
  border-bottom: 2px solid var(--blue-pale); padding-bottom: .5rem; margin-bottom: 1rem;
}
.maker-block li { font-size: 13px; color: var(--text-mid); padding: .3rem 0; border-bottom: 1px dashed var(--border); }
.maker-block li:last-child { border-bottom: none; }
.machine-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.machine-block {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem;
}
.machine-block h4 {
  font-size: 14px; font-weight: 700;
  background: var(--blue); color: #fff;
  padding: 6px 12px; border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.machine-block li { font-size: 13px; color: var(--text-mid); padding: .3rem 0; border-bottom: 1px dashed var(--border); }
.machine-block li:last-child { border-bottom: none; }

/* ===== SELL PAGE ===== */
.sell-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 2.5rem; }
.sell-feature {
  background: #fff; border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem; border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
}
.sell-feature h3 { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: .5rem; }
.sell-feature p  { font-size: 13px; color: var(--text-mid); line-height: 1.7; }
.buy-check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 1.25rem; }
.buy-check-list li {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .75rem 1rem; font-size: 13px; color: var(--text-mid);
  display: flex; gap: 8px; align-items: flex-start;
}
.buy-check-list li::before { content: "✓"; color: var(--blue); font-weight: 700; flex-shrink: 0; }

/* ===== COMPANY PAGE ===== */
.company-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td {
  padding: .75rem 1rem; border-bottom: 1px solid var(--border);
  font-size: 14px; text-align: left; vertical-align: top;
}
.company-table th { width: 130px; color: var(--text-mute); font-weight: 600; white-space: nowrap; }
.company-table td { color: var(--text); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-wrap iframe { width: 100%; height: 300px; border: none; display: block; }
.map-tabs { display: flex; }
.map-tab {
  flex: 1; padding: 10px; font-size: 13px; font-weight: 600;
  background: #fff; border: none; cursor: pointer; font-family: inherit;
  color: var(--text-mute); border-bottom: 2px solid var(--border);
  transition: .15s;
}
.map-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.map-link { font-size: 12px; text-align: right; margin-top: 6px; display: block; }

/* ===== CONTACT PAGE ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.quick-contacts { display: flex; flex-direction: column; gap: 14px; }
.quick-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; display: flex; align-items: center; gap: 14px;
}
.quick-item svg { width: 28px; height: 28px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; flex-shrink: 0; }
.quick-item .q-label { font-size: 11px; color: var(--text-mute); margin-bottom: 2px; }
.quick-item .q-val   { font-size: 17px; font-weight: 700; color: var(--blue); }
.quick-item .q-note  { font-size: 12px; color: var(--text-mute); }
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem;
}
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-row .req { color: #E53935; font-size: 10px; background: #FFEBEE; padding: 2px 6px; border-radius: 3px; margin-left: 6px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%; padding: 10px 14px;
  font-size: 14px; font-family: inherit;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #FAFAFA; color: var(--text);
  transition: border-color .15s, background .15s;
  appearance: none;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(33,150,243,.1);
}
.form-row textarea { height: 130px; resize: vertical; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit {
  width: 100%; margin-top: 1rem;
  background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 700; font-family: inherit;
  padding: 13px; border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  transition: background .15s, transform .15s;
}
.form-submit:hover { background: var(--blue-mid); transform: translateY(-1px); }
.form-note { font-size: 12px; color: var(--text-mute); text-align: center; margin-top: .75rem; }
#form-thanks { display: none; text-align: center; padding: 2.5rem 1rem; }
#form-thanks svg { width: 56px; height: 56px; stroke: var(--blue); fill: none; stroke-width: 1.4; margin: 0 auto 1rem; display: block; }
#form-thanks h3 { font-size: 18px; font-weight: 700; margin-bottom: .5rem; }
#form-thanks p  { font-size: 13px; color: var(--text-mute); }

/* ===== GALLERY ===== */
.gallery-filter { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 1.75rem; }
.filter-btn {
  font-size: 12px; font-weight: 600; padding: 7px 18px; border-radius: 100px;
  border: 1.5px solid var(--border); background: #fff; color: var(--text-mute);
  cursor: pointer; transition: .15s; font-family: inherit;
}
.filter-btn.active, .filter-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.gallery-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.gallery-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); transform: translateY(-2px); }
.gallery-thumb {
  height: 150px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; position: relative;
}
.gallery-thumb svg { width: 38px; height: 38px; opacity: .28; }
.gallery-ph { font-size: 11px; color: var(--text-mute); }
.cat-badge { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 100px; }
.cat-r { background: #E3F2FD; color: #1565C0; }
.cat-t { background: #E7E7EB; color: #C4A3BF; }
.cat-s { background: #E8F5E9; color: #2E7D32; }
.cat-p { background: #FFF3E0; color: #E65100; }
.bg-r  { background: #E3F2FD; }
.bg-t  { background: #E7E7EB; }
.bg-s  { background: #E8F5E9; }
.bg-p  { background: #FFF3E0; }
.gallery-info { padding: 10px 12px 14px; }
.gallery-info h4 { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.gallery-info p  { font-size: 11px; color: var(--text-mute); }
.gallery-note { text-align: center; margin-top: 1.25rem; font-size: 12px; color: var(--text-mute); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--blue-dark); color: rgba(255,255,255,.75);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 2rem;
  align-items: start;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-logo svg { width: 38px; height: 38px; }
.footer-name { font-size: 18px; font-weight: 700; color: #fff; }
.footer-address { font-size: 13px; line-height: 1.9; }
.footer-address strong { color: #fff; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; text-align: right; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,.7); }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w); margin: 2rem auto 0;
  padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15);
  font-size: 12px; text-align: center; color: rgba(255,255,255,.45);
}
/* page-top */
.page-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.page-top.show { opacity: 1; pointer-events: auto; }
.page-top svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-tel { display: none; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .company-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .cta-row { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 3rem 1.25rem; }
  .maker-grid { grid-template-columns: 1fr; }
  .machine-2col { grid-template-columns: 1fr; }
  .sell-features { grid-template-columns: 1fr; }
  .buy-check-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .form-2col { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 440px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 21px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; max-width: 300px; text-align: center; }
  .nav-inner { padding: 0 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .service-card, .gallery-card, .btn-primary, .form-submit, .cta-btn { transition: none; }
}
