/* ============================================
   デジタルオフィスサービス 2026 リニューアル版
   Responsive Corporate Site Stylesheet
   ============================================ */

:root {
  --color-primary: #1a365d;
  --color-primary-dark: #102a43;
  --color-secondary: #2563eb;
  --color-accent: #f59e0b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-text: #334155;
  --color-text-light: #64748b;
  --color-border: #e2e8f0;
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-primary);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-en {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.logo-ja {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-top: 2px;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-primary);
  margin: 6px 0;
  transition: 0.3s;
}

.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-secondary);
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/img/img_top_main.jpg") center/cover no-repeat;
  opacity: 0.15;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin: 0 0 24px;
  line-height: 1.3;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin: 0 0 32px;
  opacity: 0.95;
  max-width: 640px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  color: var(--color-primary);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Section */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--color-primary);
  margin: 0 0 12px;
}

.section-title p {
  color: var(--color-text-light);
  margin: 0;
  font-size: 1rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin: 0 0 12px;
}

.card p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.card a {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
}

/* News */
.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  flex-shrink: 0;
  min-width: 100px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.news-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 9999px;
  margin-right: 8px;
}

.news-title {
  color: var(--color-text);
  font-weight: 500;
}

.news-title:hover {
  color: var(--color-secondary);
}

/* About table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.info-table th,
.info-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 160px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-weight: 600;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

/* Service */
.service-list {
  max-width: 900px;
  margin: 0 auto;
}

.service-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.service-item h3 {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.service-item p {
  margin: 0;
  color: var(--color-text-light);
}

/* Inquiry */
.inquiry-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.inquiry-card {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inquiry-card:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-md);
}

.inquiry-card h3 {
  color: var(--color-primary);
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.inquiry-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin: 0 0 16px;
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: #cbd5e1;
  padding: 48px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand {
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a {
  color: #cbd5e1;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Page header */
.page-header {
  background: var(--color-bg-alt);
  padding: 56px 0;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--color-primary);
  margin: 0 0 12px;
}

.page-header p {
  color: var(--color-text-light);
  margin: 0;
}

/* Content */
.content {
  max-width: 900px;
  margin: 0 auto;
}

.content h2 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

.content h3 {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-top: 28px;
  margin-bottom: 12px;
}

.content p {
  margin-bottom: 16px;
}

.content img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.content th,
.content td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
}

.content th {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Loading / Error */
.news-loading {
  text-align: center;
  color: var(--color-text-light);
  padding: 32px;
}

.news-error {
  text-align: center;
  color: #dc2626;
  padding: 32px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.is-open {
    max-height: 400px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .main-nav a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav li:last-child a {
    border-bottom: none;
  }

  .hero {
    padding: 64px 0;
  }

  .section {
    padding: 56px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .news-item {
    flex-direction: column;
    gap: 8px;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    border-bottom: none;
    padding-bottom: 4px;
  }

  .info-table td {
    padding-top: 4px;
  }
}

/* News detail page */
.news-detail {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 40px;
}

.news-detail-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.news-detail-date {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.news-detail-title {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  color: var(--color-primary);
  margin: 0 0 16px;
  line-height: 1.4;
}

.news-detail-body {
  line-height: 1.9;
  color: var(--color-text);
}

.news-detail-body p {
  margin-bottom: 20px;
}

.news-detail-meta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.news-detail-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}


.news-detail-body h3 {
  color: var(--color-primary);
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-secondary);
}

.news-detail-body hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 24px 0;
}

.news-detail-body a {
  word-break: break-all;
}

.news-detail-actions .btn {
  padding: 12px 24px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .news-detail {
    padding: 24px;
  }

  .news-detail-actions {
    flex-direction: column;
  }
}
