/* ========================================
   合同会社YMD
   ======================================== */

:root {
  --navy: #111827;
  --navy-light: #1f2937;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-pale: #eff4ff;
  --text: #1f2937;
  --text-sub: #4b5563;
  --text-muted: #9ca3af;
  --white: #fff;
  --gray-bg: #f9fafb;
  --border: #e5e7eb;
  --font: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  --max-w: 1080px;
  --head-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: .25s; }
a:hover { color: var(--blue-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Banner ---------- */
.update-banner {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  padding: 9px 48px 9px 24px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .02em;
  position: relative;
}
.update-banner .close-banner {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.5); font-size: 18px;
  cursor: pointer; padding: 4px;
}
.update-banner .close-banner:hover { color: #fff; }
.update-banner.hidden { display: none; }

/* ---------- Header ---------- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  height: var(--head-h);
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.92);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.logo {
  font-size: 18px; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: 10px;
}
.logo .logo-sub {
  font-size: 10px; font-weight: 400; color: var(--text-muted);
  letter-spacing: .12em; border-left: 1px solid var(--border);
  padding-left: 10px;
}

.nav-list { display: flex; align-items: center; gap: 28px; }
.nav-list a {
  color: var(--text-sub); font-size: 13.5px; font-weight: 500;
  padding: 6px 0; position: relative;
}
.nav-list a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--blue); transition: width .25s;
}
.nav-list a:hover, .nav-list a.active { color: var(--navy); }
.nav-list a:hover::after, .nav-list a.active::after { width: 100%; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); transition: .25s; }
.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); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1480796927426-f609979314bd?auto=format&fit=crop&w=1400&q=80');
  background-size: cover; background-position: center 40%;
  filter: brightness(.35);
}
.hero .container { position: relative; z-index: 2; padding: 80px 24px; }
.hero-label {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: .16em;
  color: rgba(255,255,255,.6); text-transform: uppercase;
  margin-bottom: 16px;
  padding: 5px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
}
.hero h1 {
  font-size: 34px; font-weight: 700; color: #fff;
  line-height: 1.55; margin-bottom: 20px;
}
.hero-desc {
  font-size: 15px; color: rgba(255,255,255,.72);
  max-width: 520px; margin-bottom: 32px; line-height: 1.9;
}

.btn {
  display: inline-block; padding: 13px 32px;
  font-size: 14px; font-weight: 600; font-family: var(--font);
  border-radius: 6px; border: none; cursor: pointer;
  transition: .25s; text-align: center;
}
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--blue-pale); color: var(--navy); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 8px;
}
.section-title {
  font-size: 26px; font-weight: 700; color: var(--navy); margin-bottom: 16px;
}
.section-lead {
  font-size: 14.5px; color: var(--text-sub); max-width: 560px; line-height: 1.9;
}

/* ---------- Business Cards (Top) ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }

.biz-card {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  transition: .3s;
  background: var(--white);
}
.biz-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,.07); transform: translateY(-3px); }

.biz-card-img {
  width: 100%; height: 180px; object-fit: cover;
}

.biz-card-body { padding: 24px; }
.biz-card-body h3 {
  font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px;
}
.biz-card-body p {
  font-size: 13.5px; color: var(--text-sub); line-height: 1.85; margin-bottom: 14px;
}
.biz-card-link {
  font-size: 13px; font-weight: 600; color: var(--blue);
  display: inline-flex; align-items: center; gap: 4px;
}
.biz-card-link svg { transition: transform .2s; }
.biz-card-link:hover svg { transform: translateX(3px); }

/* ---------- About Strip (Top) ---------- */
.about-strip { background: var(--gray-bg); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.about-img {
  border-radius: 14px; overflow: hidden;
}
.about-img img { width: 100%; height: 340px; object-fit: cover; }
.about-text .section-label { margin-bottom: 8px; }
.about-text .section-title { margin-bottom: 16px; }
.about-text p {
  font-size: 14.5px; color: var(--text-sub); line-height: 1.9; margin-bottom: 12px;
}
.about-text .btn { margin-top: 12px; }

/* ---------- Summary table ---------- */
.summary-dl {
  display: grid; grid-template-columns: 130px 1fr;
  border-top: 1px solid var(--border); margin-top: 24px;
}
.summary-dl dt, .summary-dl dd {
  padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border);
}
.summary-dl dt { font-weight: 600; color: var(--navy); background: var(--gray-bg); }

/* ---------- Page Header ---------- */
.page-hero {
  position: relative; min-height: 280px;
  display: flex; align-items: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.3);
}
.page-hero .container { position: relative; z-index: 2; text-align: center; padding: 60px 24px; }
.page-hero h1 { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.page-hero p { font-size: 12px; color: rgba(255,255,255,.55); letter-spacing: .14em; }

/* ---------- Business Detail ---------- */
.biz-section { padding: 72px 0; border-bottom: 1px solid var(--border); }
.biz-section:last-of-type { border-bottom: none; }
.biz-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.biz-layout.reverse { direction: rtl; }
.biz-layout.reverse > * { direction: ltr; }
.biz-photo { border-radius: 14px; overflow: hidden; }
.biz-photo img { width: 100%; height: 320px; object-fit: cover; }
.biz-body h2 { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.biz-body .tag {
  display: inline-block; font-size: 11px; font-weight: 600; color: var(--blue);
  background: var(--blue-pale); padding: 3px 12px; border-radius: 100px;
  margin-bottom: 14px; letter-spacing: .04em;
}
.biz-body p { font-size: 14.5px; color: var(--text-sub); line-height: 1.9; margin-bottom: 10px; }
.biz-body ul { margin-top: 16px; }
.biz-body ul li {
  position: relative; padding-left: 18px;
  font-size: 13.5px; color: var(--text); margin-bottom: 8px;
}
.biz-body ul li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; background: var(--blue); border-radius: 50%;
}

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 56px 0; text-align: center;
}
.cta-band h2 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.cta-band p { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 24px; }

/* ---------- Company Table ---------- */
.company-dl {
  display: grid; grid-template-columns: 160px 1fr;
  border-top: 1px solid var(--border);
  max-width: 760px; margin: 0 auto;
}
.company-dl dt, .company-dl dd {
  padding: 18px 20px; font-size: 14.5px; border-bottom: 1px solid var(--border);
}
.company-dl dt { font-weight: 600; color: var(--navy); background: var(--gray-bg); }

.map-wrap {
  max-width: 760px; margin: 48px auto 0;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
}
.map-wrap iframe { width: 100%; height: 380px; border: none; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: flex-start;
}
.contact-info { padding-top: 8px; }
.contact-info h2 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.contact-info p { font-size: 14px; color: var(--text-sub); line-height: 1.9; margin-bottom: 20px; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px; font-size: 14px; color: var(--text);
}
.contact-info-item svg { flex-shrink: 0; margin-top: 3px; color: var(--blue); }

.contact-form { background: var(--gray-bg); border-radius: 14px; padding: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px;
}
.form-group label .req { color: #dc2626; font-size: 11px; margin-left: 4px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; font-size: 14px; font-family: var(--font);
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--white); color: var(--text);
  outline: none; transition: .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-submit { text-align: center; margin-top: 8px; }
.form-note { font-size: 12px; color: var(--text-muted); margin-top: 14px; text-align: center; line-height: 1.8; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 48px 0 20px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; }
.footer-logo { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-addr { font-size: 12px; line-height: 1.8; color: rgba(255,255,255,.4); }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: rgba(255,255,255,.6); font-size: 12.5px; }
.footer-nav a:hover { color: #fff; }
.footer-copy {
  text-align: center; font-size: 11px; color: rgba(255,255,255,.3);
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .nav {
    position: fixed; top: var(--head-h); left: 0; width: 100%;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    transform: translateY(-110%); opacity: 0; pointer-events: none;
    transition: .3s; z-index: 99;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-list { flex-direction: column; gap: 16px; }
  .nav-list a { font-size: 15px; }
  .hamburger { display: flex; }

  .hero { min-height: 400px; }
  .hero h1 { font-size: 24px; }
  .hero-desc { font-size: 14px; }

  .section { padding: 56px 0; }
  .section-title { font-size: 22px; }

  .biz-grid { grid-template-columns: 1fr; }
  .biz-card-img { height: 160px; }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-img img { height: 220px; }

  .biz-layout, .biz-layout.reverse { grid-template-columns: 1fr; gap: 24px; direction: ltr; }
  .biz-photo img { height: 220px; }

  .summary-dl, .company-dl { grid-template-columns: 1fr; }
  .summary-dl dt, .company-dl dt { border-bottom: none; padding-bottom: 2px; }
  .summary-dl dd, .company-dl dd { padding-top: 2px; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-nav { flex-direction: column; gap: 10px; }

  .page-hero { min-height: 200px; }
  .page-hero h1 { font-size: 22px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 20px; }
  .btn { padding: 11px 24px; font-size: 13px; }
  .contact-form { padding: 24px 20px; }
}
