/* ==========================================
   E&Rs inc. WEB Design / style03.css
   ------------------------------------------
   共通レイアウト基盤CSS（確定版）
========================================== */

/* ===== ベース設定 ===== */
body {
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  background: #fff;
  padding-top: 80px; /* 固定ヘッダー分 */
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

h1, h2, h3, p, ul {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================
   HEADER（固定・全ページ共通）
========================================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #f5f7fa;
  z-index: 1000;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header-left {
  flex-shrink: 0;
  margin-right: 20px;
}

header nav {
  flex-grow: 1;
}

header nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 20px;
}

header nav ul li {
  white-space: nowrap;
}

header nav ul li a {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  transition: opacity 0.2s ease, color 0.2s ease;
}

header nav ul li a:hover {
  opacity: 0.7;
  color: #0033cc;
}

/* ===== Design（思想リンク） ===== */
header nav ul li a[href="design.html"] {
  opacity: 0.75;
  font-weight: 500;
}

header nav ul li a[href="design.html"]:hover {
  opacity: 1;
  text-decoration: underline;
}

/* EN を少し離す */
header nav ul li:last-child {
  margin-left: 16px;
}

/* ロゴ */
.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ==========================================
   CONTENT BLOCK（汎用）
========================================== */
.content-block {
  width: 100%;
  max-width: 960px;
  margin: 60px auto;
  padding: 0 20px;
}

.content-block h1 {
  font-size: 28px;
  margin-top: 24px;
  margin-bottom: 25px;
  font-weight: 700;
}

.content-block p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ==========================================
   CARDS（汎用）
========================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
  max-width: 1080px;
  margin: 60px auto;
  padding: 0 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  padding: 24px;
}

/* ==========================================
   COMPANY / VISION
========================================== */
.company-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  margin-top: 40px;
  align-items: start;
}

.info-block {
  margin-bottom: 45px;
}

.info-block h2 {
  font-size: 15px;
  font-weight: 800;
  color: #142850;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  border-left: 4px solid #142850;
  padding-left: 10px;
}

.office-name {
  font-weight: 700;
  color: #333;
  margin-bottom: 2px;
}

.bg-accent-box {
  padding: 35px;
  border-radius: 16px;
  background: #f8f9fc;
  border: 1px solid #e9ecf2;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.business-item {
  margin-bottom: 20px;
}

.business-item h3 {
  font-size: 14px;
  font-weight: 700;
  color: #142850;
  margin-bottom: 4px;
}

.business-item p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #555;
}

/* Vision */
.vision-detail-card {
  padding: 35px;
  border-radius: 16px;
  background: #142850;
  color: #fff;
}

.vision-detail-card h2 {
  color: #fff;
  border-left-color: #fff;
  margin-bottom: 15px;
}

.vision-lead {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 15px;
}

.vision-body {
  font-size: 13.5px;
  line-height: 1.8;
  opacity: 0.9;
}

/* ==========================================
   FOOTER
========================================== */
footer {
  padding: 40px;
  text-align: center;
  background: #f7f7f7;
  color: #555;
  font-size: 14px;
  margin-top: 80px;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    padding: 10px;
  }

  .header-left {
    margin-right: 0;
    margin-bottom: 10px;
  }

  header nav ul {
    justify-content: center;
    gap: 8px 12px;
  }

  body {
    padding-top: 110px;
  }

  .company-layout {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}
/* ==========================================
   NEWS / WHAT'S NEW
========================================== */

.news-wrapper {
  max-width: 960px;
  margin: 60px auto;
  padding: 0 24px;
  line-height: 1.8;
}

.news-wrapper h2 {
  color: #142850;
  border-bottom: 2px solid #142850;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter button {
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  background: #eef3ff;
  color: #143c78;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter button:hover {
  background: #dbe6ff;
}

.filter button.active {
  background: #142850;
  color: #fff;
}

.news-item {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  transition: opacity 0.2s ease;
}

.news-item.hide {
  display: none;
}

.news-date {
  font-weight: 700;
  color: #142850;
  margin-bottom: 6px;
  display: block;
}

.news-category {
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
  display: block;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}
