/* 共通ヘッダー */
.topbar {
  height: 92px;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 10;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #0d5aa5;
}

.brand-mark {
  width: 64px;
  height: 64px;
  display: block;
}

.brand-text {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.topnav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.topnav a {
  color: #222;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: 92px;
  padding: 0 14px;
}

.topnav a.active {
  color: #fff;
}

.topnav a[data-category="recommendation"].active {
  background: #9fcd66;
}

.topnav a[data-category="column"].active {
  background: #f1c54b;
}

.topnav a[data-category="life sharing"].active {
  background: #d84b4b;
}

.topnav a[data-category="news"].active {
  background: #f39a3a;
}

.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.menu-btn {
  border: 1px solid #e6e6e6;
  background: #f4f4f4;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 2px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 220px;
  border: 1px solid #e6e6e6;
  padding: 6px 10px;
  border-radius: 2px;
  color: #999;
}

.search input {
  border: 0;
  outline: none;
  min-width: 0;
  width: 100%;
  font-size: 13px;
}

.mypage {
  background: #3c3c3c;
  color: #fff;
  border: 0;
  width: 42px;
  min-width: 42px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  border-radius: 2px;
}

@media (max-width: 980px) {
  .topnav {
    display: none;
  }

  .topbar {
    grid-template-columns: auto 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    height: auto;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 8px 10px;
  }

  .top-actions {
    gap: 8px;
    min-width: 0;
  }

  .search {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    padding: 5px 8px;
    gap: 6px;
  }

  .search input {
    min-width: 0;
    width: 100%;
    font-size: 12px;
  }

  .mypage {
    width: 36px;
    min-width: 36px;
    height: 34px;
    padding: 0;
    font-size: 14px;
    white-space: nowrap;
  }
}

/* 基本設定 */
:root {
  --bg: #efefef;
  --line: #d8d8d8;
  --card: #ffffff;
  --text: #1f1f1f;
  --muted: #666;
  --brand: #0f6fbf;
  --yellow: #f4b400;
  --red: #d93025;
  --green: #7cb342;
  --chip: #eceff3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
}



/* トップページの基本レイアウト */
.container {
  padding: 16px 8px 40px;
}

/* カテゴリーフィルター */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.filter-chip {
  border: 1px solid #cfd5de;
  background: var(--chip);
  color: #2b3442;
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 16px;
  cursor: pointer;
}

.filter-chip.active {
  background: #1c6dbc;
  border-color: #1c6dbc;
  color: #fff;
}

/* 記事カードのカラムレイアウト */
.masonry {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}

.masonry-column {
  display: grid;
  gap: 12px;
  align-content: start;
}

/* 通常記事カード */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  margin: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.tag {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
  z-index: 2;
  background: transparent;
}

.tag.icon {
  font-size: 13px;
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #dde4ea;
}

.card h2 {
  margin: 10px 10px 6px;
  font-size: 15px;
  line-height: 1.4;
}

.card p {
  margin: 0 10px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* 記事カテゴリー表示 */
.category {
  margin: 10px 10px 0;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 8px;
  border-radius: 10px;
}

.cat-column {
  background: #e8f1ff;
  color: #1359a7;
}

.cat-life-sharing {
  background: #e9f7ef;
  color: #1d7f47;
}

.cat-news {
  background: #ffeceb;
  color: #b03831;
}

.cat-recommendation {
  background: #fff7df;
  color: #9c6e05;
}

/* 読み込み状態メッセージ */
.status {
  margin: 12px 4px 0;
  font-size: 12px;
  color: #5e6774;
}


@media (max-width: 1080px) {
  .masonry {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 820px) {
  .menu {
    display: none;
  }

  .masonry {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .footer-brand {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  .masonry {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .topbar {
    padding: 0 8px;
  }

  .logo {
    font-size: 13px;
  }

  .login {
    font-size: 10px;
    padding: 5px 8px;
  }

  .card h2 {
    font-size: 14px;
  }

  .filters {
    gap: 6px;
  }
}

/* 共通フッター */
.footer {
  background: var(--brand);
  color: #fff;
  padding: 48px 18px 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand .brand-jp {
  font-size: 44px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.footer-brand .brand-en {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.18em;
}


.footer-brand-link {
  display: inline-block;
  line-height: 0;
}

.footer-logo2 {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 20px 24px;
}

.footer-col {
  display: grid;
  gap: 10px;
}

.footer a {
  color: #d7e8ff;
  text-decoration: none;
  font-size: 13px;
}

.footer-meta {
  max-width: 1100px;
  margin: 26px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #cfe2ff;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 560px) {
  .footer-cols {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}


/* カテゴリーアイコン画像 */
.tag.icon img {
  width: 28px;
  height: 28px;
  display: block;
}


/* 人生シェアリング用カード */
.life-card {
  border: 1px solid var(--line);
  background: #fff;
}

.life-card .thumb {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center center;
}

.life-card .tag.icon {
  width: 36px;
  height: 36px;
  background: #d93025;
  color: #fff;
  font-size: 16px;
}

.life-meta {
  padding: 12px 14px 6px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.life-meta h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.life-role {
  font-size: 13px;
  color: #555;
}

.life-interviewer {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}

.life-points-list {
  padding: 12px 14px 16px;
}

.life-points-title {
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.life-points-list ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.life-points-list li {
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.5;
}


/* ヘッダーの最終調整：ロゴ比率を保ち、ナビを右へ寄せる */
.topbar {
  height: 92px;
  grid-template-columns: 260px 1fr auto;
}

.brand-mark {
  width: auto;
  height: 64px;
  max-width: 220px;
  object-fit: contain;
}

.brand-text {
  display: none;
}

.topnav {
  margin-left: 28px;
}

.topnav a {
  height: 92px;
  padding: 0 14px;
}

@media (max-width: 680px) {
  .topbar {
    height: 72px;
    grid-template-columns: auto 1fr;
  }

  .brand-mark {
    height: 48px;
    max-width: 160px;
  }
}


/* Coming Soonページ */
.coming-soon-wrap {
  min-height: calc(100vh - 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 72px;
}

.coming-soon-card {
  width: min(680px, 100%);
  background: #fff;
  border: 1px solid #e6edf4;
  border-radius: 20px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(25, 79, 132, 0.08);
}

.coming-soon-label {
  margin: 0 0 12px;
  color: #79bfe9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coming-soon-card h1 {
  margin: 0 0 14px;
  font-size: 34px;
  color: #1f3d5a;
}

.coming-soon-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: #516477;
}

.coming-soon-link {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #79bfe9;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
