body {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    background: #f7f7f7;
    color: #333;
    padding-top: 80px;  /* 必要に応じて調整（70〜90の間） */
}

/* ========== Header ========== */
.header {
    background: #004c97;
    color: #fff;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* 少し影を付けると立体感UP */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.header-inner {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: auto;
}
.site-title {
    font-size: 1.6rem;
    margin: 0;
}

.site-title a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
}

.site-title a:hover {
    text-decoration: underline;
}

.nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-size: 0.95rem;
}

.nav a:hover {
    text-decoration: underline;
}

/* ========== Search bar ========== */
.search-area {
    background: #fff;
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.search-input {
    width: 90%;
    max-width: 480px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

/* ========== Tags ========== */
.tag-area {
    width: 90%;
    margin: 25px auto;
}
.tag-area h2 {
    margin-bottom: 10px;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    background: #e9f2ff;
    color: #004c97;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* ========== Cards ========== */
.card-container {
    width: 90%;
    margin: 20px auto 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: .2s;
    text-decoration: none;
    color: inherit;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}
.card-content h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}
.tags span {
    background: #eee;
    padding: 4px 8px;
    margin-right: 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* ========== Footer ========== */
.footer {
    text-align: center;
    padding: 15px 0;
    background: #fff;
    color: #333;
    border-top: 1px solid #ddd;
}

/* ========== Detail Page ========== */

.detail-hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-hero-overlay h2 {
    color: #fff;
    font-size: 2rem;
    margin: 0;
    text-align: center;
}

.detail-container {
    width: 90%;
    max-width: 900px;
    margin: 40px auto 80px;
}

.detail-tags span {
    background: #e9f2ff;
    color: #004c97;
    padding: 6px 12px;
    margin-right: 8px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.detail-date {
    margin: 15px 0 20px;
    color: #666;
}

.detail-body {
    line-height: 1.9;
    color: #333;
    font-size: 1rem;
    margin-bottom: 30px;
}

.detail-gallery-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.detail-gallery-title .gallery-note {
    font-size: 0.8rem;     /* タイトルより一段小さく */
    font-weight: normal;
    color: #666;
    margin-left: 8px;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

/* ========== gallery Popup ========== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #fff;
}

/* SNS */
.sns-share {
    margin-top: 35px;
}
.sns-share p {
    font-weight: bold;
    margin-bottom: 10px;
}
.share-btn {
    display: inline-block;
    padding: 8px 12px;
    margin-right: 8px;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}
.share-btn.x { background: #000; }
.share-btn.fb { background: #1877f2; }
.share-btn.line { background: #00c300; }

.tag-list a.tag {
    display: inline-block;
    padding: 6px 12px;
    background: #eee;
    border-radius: 5px;
    margin-right: 6px;
    text-decoration: none;
    color: #333;
}

.tag-list a.tag:hover {
    background: #d0e6ff;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination-wrapper {
    display: flex;
    gap: 6px;
}

.pagination-btn {
    padding: 6px 12px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 5px;
    color: #004c97;
    text-decoration: none;
    font-size: 14px;
}

.pagination-btn:hover {
    background: #e8f2ff;
}

.pagination-btn.active {
    background: #004c97;
    color: #fff;
    border-color: #004c97;
}

.pagination-btn.disabled {
    background: #f0f0f0;
    color: #aaa;
    pointer-events: none;
}

.pagination-ellipsis {
    padding: 6px 12px;
    color: #777;
}

.tag-list .tag.active {
    background: #004c97;
    color: #fff;
    border-color: #004c97;
}

.current-filter {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #444;
}

.current-filter .reset-filter {
    margin-left: 8px;
    color: #004c97;
    text-decoration: underline;
    cursor: pointer;
}

.tag-small {
    display:inline-block;
    background:#eee;
    padding:3px 6px;
    margin-right:4px;
    border-radius:4px;
    font-size:0.8rem;
    color:#444;
    text-decoration:none;
}

.tag-small:hover {
    background:#d0e6ff;
}

.tag-small.active {
    background: #004c97;
    color: #fff;
}

/* スライダー全体 */
.slider-area {
    width: 90%;
    max-width: 1100px;
    margin: 30px auto;
}

.slider-area h2 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* スライドカード内 */
.slide-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.slide-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.slide-info {
    padding: 12px;
}

.slide-info h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.slide-info .tags span {
    display: inline-block;
    background: #eee;
    padding: 3px 6px;
    border-radius: 4px;
    margin-right: 4px;
    font-size: 0.75rem;
}

/* Swiper navigation */
.swiper-button-next,
.swiper-button-prev {
    color: #004c97;
}

/* Pagination dots */
.swiper-pagination-bullet {
    background: #004c97;
}

.swiper-slide {
    width: 300px; /* PC時は固定幅にする */
}

@media (max-width: 768px) {
    .swiper-slide {
        width: 80%; /* スマホ時に可変 */
    }
}
