/* ============================================================
   カラーパレット
   ============================================================ */
:root {
  --c-sea    : #1A6FA8;
  --c-sky    : #3AABCC;
  --c-sunset : #E07A2F;
  --c-forest : #2E8B57;
  --c-sand   : #C4972A;
}

/* ============================================================
   5色カラーバー（最上部・固定）
   ============================================================ */
body::before {
  content: '';
  display: block;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right,
    var(--c-sea)    0% 20%,
    var(--c-sky)   20% 40%,
    var(--c-sunset) 40% 60%,
    var(--c-forest) 60% 80%,
    var(--c-sand)  80% 100%
  );
  z-index: 9999;
}

/* ============================================================
   ヘッダー：中央揃え縦スタック型
   ============================================================ */
.header-nav {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem var(--gap) 0.8rem;
  position: relative;
}

.logo {
  justify-content: center;
}

.logo a {
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-title {
  font-size: 2rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.logo-sub {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--secondary);
}

.logo-switches {
  position: absolute;
  right: var(--gap);
  top: 1.5rem;
}

#menu {
  justify-content: center;
}

/* ============================================================
   フッター（黒背景）
   ============================================================ */
.site-footer {
  background: #111;
  color: #ccc;
  text-align: center;
  padding: 1.5rem var(--gap);
  margin-top: 0;
}

.site-footer a {
  color: #aaa;
}

/* ============================================================
   写真ヒーロー（横長・全幅）
   ============================================================ */
.home-hero-image {
  position: relative;
  background-image: url('/images/hero.png');
  background-size: cover;
  background-position: center 40%;
  min-height: 420px;
  margin-left: calc(-1 * var(--gap));
  margin-right: calc(-1 * var(--gap));
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.home-hero-image__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
}

/* ============================================================
   ヒーローセクション（タグ・サブタイトル）
   ============================================================ */
.home-hero {
  text-align: left;
  padding: 1.5rem var(--gap) 2rem;
}

.home-hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.htag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 500;
}

.htag--kaigai  { background: rgba(26,  111, 168, 0.1); color: var(--c-sea);    }
.htag--kokunai { background: rgba(58,  171, 204, 0.1); color: var(--c-sky);    }
.htag--hotel   { background: rgba(224, 122, 47,  0.1); color: var(--c-sunset); }
.htag--gourmet { background: rgba(46,  139, 87,  0.1); color: var(--c-forest); }
.htag--hint    { background: rgba(196, 151, 42,  0.1); color: var(--c-sand);   }

.home-hero__sub {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--secondary);
  margin: 0;
}

/* ============================================================
   黒バンド
   ============================================================ */
.home-band {
  background: #111;
  color: #f5f5f5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 1rem var(--gap);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin: 0 calc(-1 * var(--gap));
  width: calc(100% + 2 * var(--gap));
}

.home-band__sep {
  color: #555;
}

/* ============================================================
   汎用セクション
   ============================================================ */
.home-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.home-section--alt {
  background: var(--code-bg);
  margin: 0 calc(-1 * var(--gap));
  padding: 2.5rem var(--gap);
  width: calc(100% + 2 * var(--gap));
}

.home-section__inner {
  max-width: 720px;
  margin: 0 auto;
}

.home-section__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--c-sea);
  display: inline-block;
}

/* ============================================================
   最新記事リスト
   ============================================================ */
.home-posts {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  counter-reset: post-counter;
}

.home-posts__item {
  counter-increment: post-counter;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.home-posts__item::before {
  content: counter(post-counter, decimal-leading-zero);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-sea);
  flex-shrink: 0;
  min-width: 1.8rem;
}

.home-posts__link {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--primary);
  line-height: 1.4;
}

.home-posts__link:hover {
  color: var(--c-sea);
}

.home-posts__date {
  font-size: 0.75rem;
  color: var(--secondary);
  flex-shrink: 0;
  white-space: nowrap;
}

.home-posts__empty {
  color: var(--secondary);
  font-size: 0.9rem;
}

.home-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-sea);
  text-decoration: none;
}

.home-more:hover {
  text-decoration: underline;
}

/* ============================================================
   カテゴリグリッド
   ============================================================ */
.home-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.home-cat {
  flex: 1 1 calc(33.333% - 0.7rem);
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: transform 0.15s, opacity 0.15s;
}

.home-cat:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  color: #fff;
}

.home-cat--kaigai  { background: var(--c-sea);    }
.home-cat--kokunai { background: var(--c-sky);    }
.home-cat--hotel   { background: var(--c-sunset); }
.home-cat--gourmet { background: var(--c-forest); }
.home-cat--hint    { background: var(--c-sand);   }

.home-cat__icon {
  font-size: 1.8rem;
}

.home-cat__name {
  font-size: 0.9rem;
}

/* ============================================================
   Aboutセクション
   ============================================================ */
.home-about__text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* ============================================================
   記事タグ（カラフルなピル型）
   ============================================================ */
.post-tags a {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.82em;
  font-weight: 600;
  text-decoration: none;
  color: #fff !important;
  border: none !important;
  transition: opacity 0.2s;
}

.post-tags a:hover { opacity: 0.8; }

.post-tags a.tag-kaigai  { background: var(--c-sea);    }
.post-tags a.tag-kokunai { background: var(--c-sky);    }
.post-tags a.tag-hotel   { background: var(--c-sunset); }
.post-tags a.tag-gourmet { background: var(--c-forest); }
.post-tags a.tag-hint    { background: var(--c-sand);   }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 480px) {
  .home-cats {
    grid-template-columns: 1fr;
  }

  .home-band {
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }

  .home-band__sep {
    display: none;
  }

  .home-posts__item {
    flex-direction: column;
    gap: 0.25rem;
  }
}
