/* ===== Variables ===== */
:root {
  --primary: #111111;
  --accent: #E06820;
  --text: #111111;
  --text-sub: #666666;
  --bg: #ffffff;
  --bg-light: #f7f7f7;
  --border: #d8d8d8;
  --radius: 2px;
  --shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  --max-width: 1100px;
  --header-h: 64px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ===== Container ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.site-logo img {
  height: 22px;
  width: auto;
  display: block;
}
.site-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}
.site-nav a {
  color: var(--text);
  font-size: 0.95rem;
  transition: color 0.2s;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}
.site-nav .btn-nav {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  border-bottom: none;
}
.site-nav .btn-nav:hover { background: var(--primary); border-bottom: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--primary); text-decoration: none; color: #fff; }
.btn-outline { border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; text-decoration: none; }
.btn-white { background: transparent; color: var(--text); border: 2px solid var(--text); }
.btn-white:hover { background: var(--text); color: #fff; text-decoration: none; }

/* ===== Section ===== */
.section { padding: 80px 0; }
.section.bg-light { background: var(--bg-light); }
.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 48px;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
}
.text-center { text-align: center; }

/* ===== Hero (トップページ) ===== */
.hero {
  background: var(--bg);
  color: var(--text);
  padding: 100px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
  color: var(--text);
}
.hero-title span {
  font-size: 1.4rem;
  font-weight: 400;
  display: block;
  margin-top: 8px;
  color: var(--text-sub);
}
.hero-desc { font-size: 1.1rem; margin-bottom: 40px; color: var(--text-sub); }

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--accent); }
.card-icon { font-size: 2.4rem; margin-bottom: 16px; }
.card h3 { font-size: 1.2rem; color: var(--text); margin-bottom: 12px; }
.card p { color: var(--text-sub); font-size: 0.95rem; }

/* ===== About Brief (トップ) ===== */
.about-brief {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.about-brief h2 { font-size: 1.8rem; color: var(--text); margin-bottom: 16px; }
.about-brief p { color: var(--text-sub); margin-bottom: 32px; }

/* ===== CTA Banner ===== */
.cta-section {
  background: var(--bg);
  color: var(--text);
  border-top: 3px solid var(--accent);
  padding: 64px 0;
  text-align: center;
}
.cta-section h2 { font-size: 1.8rem; margin-bottom: 24px; }

/* ===== Page Hero (サブページ共通) ===== */
.page-hero {
  background: var(--bg);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 1.8rem; color: var(--text); }
.breadcrumb { font-size: 0.85rem; color: var(--text-sub); margin-bottom: 8px; }
.breadcrumb a { color: var(--text-sub); }
.breadcrumb a:hover { color: var(--accent); }

/* ===== 会社概要ページ ===== */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th,
.info-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.info-table th {
  width: 180px;
  color: var(--text);
  font-weight: 600;
}
.mission-box {
  border-left: 4px solid var(--accent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  margin: 48px 0;
}
.mission-box h3 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-sub);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.mission-box p { font-size: 1.4rem; font-weight: 500; line-height: 1.9; color: var(--text); }

/* ===== サービスページ ===== */
.service-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.service-item:last-child { border-bottom: none; }
.service-num {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.service-body h3 { font-size: 1.3rem; color: var(--text); margin-bottom: 8px; }
.service-body p { color: var(--text-sub); margin-bottom: 12px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ===== ニュースページ ===== */
.news-list { max-width: 800px; margin: 0 auto; }
.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.news-item:last-child { border-bottom: none; }
.news-date { font-size: 0.85rem; color: var(--text-sub); white-space: nowrap; }
.news-title { font-size: 1rem; }
.news-title a { color: var(--text); }
.news-title a:hover { color: var(--accent); text-decoration: none; }

/* ===== お問い合わせページ ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { font-size: 1.4rem; color: var(--text); margin-bottom: 16px; }
.contact-info p { color: var(--text-sub); margin-bottom: 32px; font-size: 0.95rem; }
.contact-detail { display: flex; flex-direction: column; gap: 16px; }
.contact-detail dt { font-weight: 600; font-size: 0.8rem; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-detail dd { font-size: 1rem; margin-top: 2px; }

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.form-label .required {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: var(--radius);
  margin-left: 6px;
  vertical-align: middle;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg);
  color: var(--text);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 104, 32, 0.12);
}
.form-textarea { resize: vertical; min-height: 160px; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 24px; }
.form-consent input { margin-top: 4px; flex-shrink: 0; accent-color: var(--accent); }
.form-consent label { font-size: 0.9rem; color: var(--text-sub); }
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.btn-submit:hover { background: var(--primary); }
.alert {
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.alert-success { background: #e8f5e9; border: 1px solid #4caf50; color: #2e7d32; }
.alert-error   { background: #fce4ec; border: 1px solid #e57373; color: #b71c1c; }

/* ===== プライバシーポリシーページ ===== */
.prose h2 { font-size: 1.2rem; color: var(--text); margin: 32px 0 10px; border-left: 3px solid var(--accent); padding-left: 10px; }
.prose p { color: var(--text-sub); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 24px; color: var(--text-sub); }
.prose li { margin-bottom: 4px; }
.prose .updated { font-size: 0.85rem; color: var(--text-sub); margin-bottom: 32px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--primary);
  color: #fff;
  padding: 48px 0 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 24px;
}
.footer-logo { font-size: 1.2rem; font-weight: 700; }
.footer-logo small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.55;
  margin-top: 4px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.is-open {
    display: block;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open ul { flex-direction: column; gap: 0; }
  .site-nav.is-open li { border-bottom: 1px solid var(--border); }
  .site-nav.is-open a { display: block; padding: 12px 0; border-bottom: none; }
  .site-nav.is-open a.active { color: var(--accent); border-left: 3px solid var(--accent); padding-left: 10px; }
  .site-nav.is-open .btn-nav {
    margin: 12px 0;
    display: inline-block;
    padding: 8px 20px;
  }
  .hamburger { display: flex; }

  .hero { padding: 64px 0; }
  .hero-title { font-size: 1.6rem; }
  .hero-title span { font-size: 1.1rem; }

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

  .info-table th { width: 100px; font-size: 0.85rem; }
  .info-table td { font-size: 0.9rem; }

  .service-item { grid-template-columns: 48px 1fr; gap: 16px; }
  .service-num { font-size: 2rem; }
  .news-item { grid-template-columns: 1fr; gap: 4px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { gap: 16px; }

  .section { padding: 56px 0; }
  .mission-box { padding: 32px 24px; }
  .mission-box p { font-size: 1.1rem; }
}

/* ===== Capabilities（画像と文字の交互レイアウト） ===== */
.cap-list { display: flex; flex-direction: column; gap: 64px; margin-top: 24px; }
.cap-row { display: flex; align-items: center; gap: 48px; }
.cap-row:nth-child(even) { flex-direction: row-reverse; }
.cap-media { flex: 1 1 50%; min-width: 0; }
.cap-text { flex: 1 1 50%; }
.cap-text h3 { font-size: 1.4rem; margin-bottom: 12px; }
.cap-text h3::before {
  content: ""; display: inline-block;
  width: 24px; height: 3px; background: var(--accent);
  margin-right: 10px; vertical-align: middle;
}
.cap-text p { color: var(--text-sub); }

/* スライドショー */
.slideshow {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-light); box-shadow: var(--shadow);
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sub); font-size: .95rem;
  background: repeating-linear-gradient(45deg, #ececec, #ececec 12px, #f5f5f5 12px, #f5f5f5 24px);
}
.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.8); color: var(--text);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.slide-nav:hover { background: #fff; }
.slide-nav.prev { left: 10px; }
.slide-nav.next { right: 10px; }
.slide-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.slide-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.6); cursor: pointer; padding: 0;
}
.slide-dots button.is-active { background: #fff; }

@media (max-width: 768px) {
  .cap-list { gap: 48px; }
  .cap-row, .cap-row:nth-child(even) { flex-direction: column; gap: 20px; }
}

/* ===== 開発実績 ===== */
.work-note { color: var(--text-sub); font-size: 0.9rem; margin-bottom: 24px; }
.work-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.work-item h3 { font-size: 1.25rem; margin-bottom: 10px; }
.work-item p { color: var(--text-sub); }
.work-item .service-tags { margin: 16px 0; }
.work-link { display: inline-block; margin-top: 8px; font-weight: 500; }
