/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== CSS VARIABLES ===== */
:root {
  --color-bg: #ffffff;
  --color-bg-sub: #f7f7f7;
  --color-text: #1a1a1a;
  --color-text-muted: #777777;
  --color-border: #e0e0e0;
  --color-accent: #1a1a1a;
  --font-sans: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --max-width: 960px;
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 15px;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--color-text);
}
.logo img {
  height: 32px;
  width: 32px;
  object-fit: cover;
  border-radius: 4px;
  background: #ffffff;
}
nav { display: flex; gap: 32px; }
nav a {
  font-size: 13px;
  text-decoration: none;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
nav a:hover { color: var(--color-text); }
nav a.active { color: var(--color-text); font-weight: 600; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 32px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy { font-size: 12px; color: var(--color-text-muted); }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a {
  font-size: 12px;
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--color-text); }

/* ===== BACK LINK ===== */
.back-link-wrap {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}
.back-link {
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.back-link:hover { color: var(--color-text); }

/* ===== UTILITIES ===== */
.nowrap { white-space: nowrap; }
.text-sm { font-size: 12px; }

/* ===== BREADCRUMB ===== */
.breadcrumb-wrap {
  background: var(--color-bg-sub);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 32px;
}
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
}
.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--color-text); }
.breadcrumb-sep { color: var(--color-border); }
.breadcrumb-current { color: var(--color-text); }

/* ===== ARTICLE ===== */
.article-section {
  padding: 72px 32px 96px;
}
.article-inner {
  max-width: 720px;
  margin: 0 auto;
}
.article-meta {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.article-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}
.article-body {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text);
}
.article-body p { margin-bottom: 24px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body h2 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.article-body ul {
  margin-bottom: 24px;
  padding-left: 1.5em;
}
.article-body ul li { margin-bottom: 8px; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--color-bg-sub);
  padding: 64px 32px;
  border-bottom: 1px solid var(--color-border);
}
.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.page-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  line-height: 1.3;
}
.page-title strong { font-weight: 700; }

/* ===== BLOG LIST ===== */
.blog-section { padding: 80px 32px; }
.blog-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.post-list {
  list-style: none;
  border-top: 1px solid var(--color-border);
}
.post-item { border-bottom: 1px solid var(--color-border); }
.post-link {
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding: 28px 0;
  text-decoration: none;
  color: var(--color-text);
  transition: opacity 0.2s;
}
.post-link:hover { opacity: 0.6; }
.post-date {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
  min-width: 100px;
}
.post-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.post-arrow {
  margin-left: auto;
  font-size: 18px;
  color: var(--color-text-muted);
  padding-left: 16px;
}

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--color-text);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.75; }
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
  margin-left: 12px;
}
.btn-outline:hover { background: var(--color-text); color: #fff; opacity: 1; }

/* ===== SECTION COMMON ===== */
section { padding: 96px 32px; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  margin-bottom: 48px;
  line-height: 1.3;
}
.section-title strong { font-weight: 700; }

/* ===== HERO ===== */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 80px 32px;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  max-width: 700px;
}
.hero h1 strong { font-weight: 700; }
.hero p {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* ===== ABOUT ===== */
.about { background: var(--color-bg-sub); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.9;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stat {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
}
.stat-number {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}
.service-item {
  background: var(--color-bg);
  padding: 40px 32px;
}
.service-number {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
.service-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
}
.service-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ===== FEATURES ===== */
.features { background: var(--color-bg-sub); }
.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.feature-item {
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.feature-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}
.feature-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ===== MESSAGE ===== */
.message { background: var(--color-bg-sub); }
.message-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.message-text p {
  color: var(--color-text-muted);
  margin-bottom: 18px;
  line-height: 1.9;
  font-size: 14px;
}
.message-signature {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.message-signature .sig-title { font-size: 12px; color: var(--color-text-muted); margin-bottom: 6px; }
.message-signature .sig-name { font-size: 18px; font-weight: 600; }
.message-signature .sig-name-en { font-size: 12px; color: var(--color-text-muted); letter-spacing: 0.05em; margin-top: 4px; }
.message-card {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 36px;
}
.message-card-title {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}
.message-point { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.message-point:last-child { margin-bottom: 0; }
.message-point-num { font-size: 20px; font-weight: 700; line-height: 1; min-width: 28px; }
.message-point-text h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.message-point-text p { font-size: 13px; color: var(--color-text-muted); line-height: 1.7; margin-bottom: 0; }

/* ===== COMPANY PROFILE ===== */
.profile-table { width: 100%; border-collapse: collapse; }
.profile-table tr { border-bottom: 1px solid var(--color-border); }
.profile-table tr:first-child { border-top: 1px solid var(--color-border); }
.profile-table th {
  width: 200px;
  padding: 24px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  color: var(--color-text);
}
.profile-table td {
  padding: 24px 0 24px 32px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
  vertical-align: top;
}

/* ===== CONTACT ===== */
#contact .section-inner { text-align: center; }
#contact .section-title { margin-bottom: 16px; }
.contact-lead {
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
  nav { gap: 16px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .breadcrumb-wrap { padding: 14px 20px; }
  .article-section { padding: 48px 20px 72px; }
  .page-header { padding: 48px 20px; }
  .blog-section { padding: 56px 20px; }
  .post-link { flex-wrap: wrap; gap: 8px; }
  .post-arrow { display: none; }
  .hero { padding: 60px 20px; min-height: 60vh; }
  section { padding: 64px 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .message-grid { grid-template-columns: 1fr; gap: 40px; }
  .profile-table th { width: 120px; }
  .profile-table td { padding-left: 16px; }
  .features-list { grid-template-columns: 1fr; }
}
