@charset "UTF-8";

/* =========================================================
   journal.css — JOURNAL一覧＆詳細
   ========================================================= */

.jrn {
  padding-block: clamp(50px, 6vw, 90px) clamp(80px, 10vw, 130px);
}

/* =========================================================
   Category filter strip
   ========================================================= */
.jrn-cat {
  display: grid;
  grid-template-columns: 191px 1fr;
  align-items: stretch;
  background: rgba(75, 118, 96, 0.04);
  border: 1px solid rgba(75, 118, 96, 0.18);
  border-radius: clamp(8px, 1vw, 14px);
  overflow: hidden;
  margin-bottom: clamp(40px, 5vw, 60px);
}
.jrn-cat__label {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-green-light);
  color: #fff;
  font-family: var(--ff-en);
  font-weight: 600;
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: 0.08em;
}
.jrn-cat__list {
  list-style: none;
  margin: 0;
  padding: clamp(16px, 2vw, 24px) clamp(20px, 2.4vw, 30px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.jrn-cat__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 0;
  color: var(--c-text);
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.jrn-cat__chip:hover { color: var(--c-green-light); opacity: 1; }
.jrn-cat__chip.is-current { color: var(--c-green-light); font-weight: 700; }
.jrn-cat__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  padding: 0 8px;
  background: var(--c-green-light);
  color: #fff;
  border-radius: var(--r-pill);
  font-family: var(--ff-en);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.jrn-cat--bottom { margin-top: clamp(40px, 5vw, 60px); margin-bottom: 0; }
.jrn-cat__select { display: none; }

/* =========================================================
   Article card grid (4 rows x 3 cols on listing)
   ========================================================= */
.jrn-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
}
.jrn-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.jrn-card {
  list-style: none;
}
.jrn-card__link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  color: inherit;
  transition: transform .25s var(--ease);
}
.jrn-card__link:hover { opacity: 1; transform: translateY(-3px); }
.jrn-card__media {
  aspect-ratio: 364 / 232;
  border-radius: clamp(6px, 0.8vw, 10px);
  overflow: hidden;
  background: var(--c-bg-soft);
}
.jrn-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s var(--ease);
}
.jrn-card__link:hover .jrn-card__media img { transform: scale(1.05); }
.jrn-card__date {
  font-family: var(--ff-en-body);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  margin-top: 6px;
}
.jrn-card__title {
  font-weight: 700;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--c-text);
  margin: 0;
}
.jrn-card__excerpt {
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jrn-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-green-light);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 6px 18px;
  border-radius: var(--r-pill);
  align-self: flex-start;
  margin-top: auto;
}

/* =========================================================
   Pagination
   ========================================================= */
.jrn-pager {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(50px, 6vw, 80px);
}
.jrn-pager__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: rgba(75, 118, 96, 0.08);
  color: var(--c-text);
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.06em;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.jrn-pager__item:hover { background: rgba(75, 118, 96, 0.2); opacity: 1; }
.jrn-pager__item.is-current {
  background: var(--c-green-light);
  color: #fff;
}

/* =========================================================
   Article detail
   ========================================================= */
.jrn-article {
  padding-block: clamp(40px, 5vw, 70px) clamp(60px, 7vw, 90px);
}
.jrn-article__crumb {
  font-size: 14px;
  color: var(--c-text);
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin: 0 0 clamp(28px, 3vw, 44px);
}
.jrn-article__crumb a { color: var(--c-text); }
.jrn-article__crumb a:hover { color: var(--c-green); opacity: 1; }
.jrn-article__crumb span[aria-hidden] { margin: 0 8px; color: var(--c-muted); }

.jrn-article__head {
  display: grid;
  grid-template-columns: minmax(0, 610fr) minmax(0, 540fr);
  gap: clamp(28px, 4vw, 50px);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 70px);
}
.jrn-article__media {
  aspect-ratio: 610 / 389;
  border-radius: clamp(8px, 1vw, 16px);
  overflow: hidden;
}
.jrn-article__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.jrn-article__meta {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 22px);
}
.jrn-article__date {
  font-family: var(--ff-en-body);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--c-muted);
}
.jrn-article__title {
  font-weight: 700;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--c-green);
  margin: 0;
}
.jrn-article__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-green-light);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 8px 22px;
  border-radius: var(--r-pill);
  align-self: flex-start;
}

/* Article body */
.jrn-article__body {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px);
}
.jrn-article__body p {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--c-text);
  margin: 0;
}
.jrn-article__h2 {
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 0.04em;
  color: var(--c-green-light);
  line-height: 1.5;
  margin: clamp(18px, 2vw, 24px) 0 0;
  padding-bottom: 14px;
  position: relative;
}
.jrn-article__h2::after {
  content: "";
  display: block;
  width: 35px;
  height: 1px;
  background: var(--c-green-light);
  margin-top: 14px;
}
.jrn-article__h3 {
  font-weight: 700;
  font-size: clamp(17px, 1.6vw, 20px);
  letter-spacing: 0.04em;
  color: var(--c-green-light);
  line-height: 1.5;
  margin: 0 0 -10px;
}
.jrn-article__figure {
  margin: clamp(12px, 1.4vw, 18px) 0;
  border-radius: clamp(6px, 0.8vw, 10px);
  overflow: hidden;
}
.jrn-article__figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* Prev/Next navigation */
.jrn-article__prevnext {
  max-width: 750px;
  margin: clamp(50px, 6vw, 80px) auto 0;
  padding-top: clamp(30px, 3vw, 40px);
  border-top: 1px solid rgba(68, 106, 86, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.jrn-article__prevnext-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--c-text);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.jrn-article__prevnext-link:hover { opacity: 1; color: var(--c-green-light); }
.jrn-article__prevnext-pill {
  position: relative;
  display: inline-block;
  width: 53px;
  height: 24px;
  border-radius: var(--r-pill);
  background: var(--c-green-light);
  flex-shrink: 0;
}
.jrn-article__prevnext-pill::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 18px;
  height: 1.2px;
  background: #fff;
  transform: translateY(-50%);
}
.jrn-article__prevnext-pill::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1.2px solid #fff;
  border-right: 1.2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}
.jrn-article__prevnext-pill--prev::before { left: 23px; }
.jrn-article__prevnext-pill--prev::after {
  left: 11px;
  right: auto;
  transform: translateY(-50%) rotate(-135deg);
}

/* =========================================================
   Other Post (related) section
   ========================================================= */
.jrn-other {
  padding-block: clamp(40px, 5vw, 80px) clamp(80px, 10vw, 130px);
  background: var(--c-bg-soft);
}
.jrn-other__head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(40px, 5vw, 60px);
}
.jrn-other__en {
  font-family: var(--ff-en);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--c-green-light);
  margin: 0;
}
.jrn-other__rule {
  display: inline-block;
  width: 50px;
  height: 1px;
  background: rgba(68, 106, 86, 0.6);
}
.jrn-other__jp {
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: 0.06em;
  color: var(--c-green-light);
  margin: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .jrn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jrn-article__head { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .jrn-cat { grid-template-columns: 1fr; }
  .jrn-cat__label { padding: 14px; }
  .jrn-grid { grid-template-columns: 1fr; }
  .jrn-pager__item { min-width: 40px; height: 40px; font-size: 14px; }
  .jrn-article__prevnext { flex-direction: column; align-items: stretch; }
  .jrn-article__prevnext-link--next { justify-content: flex-end; }
}

/* スマホ: カテゴリーを楕円セレクトボックス化 (2026-07-08) */
@media (max-width: 900px) {
  .jrn-cat { display: block; border: none; background: none; border-radius: 0; overflow: visible; }
  .jrn-cat__label, .jrn-cat__list { display: none; }
  .jrn-cat__select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    padding: 13px 46px 13px 24px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--c-green-light);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231D9538' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 13px 9px;
    border: 1.5px solid var(--c-green-light);
    border-radius: 999px;
  }
  .jrn-cat__select:focus { outline: none; border-color: var(--c-green); }
}
