/* ===============================
   2-Column Layout
   =============================== */
.l-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}
.c-article {
  margin: 50px 0;
}
.c-article__container {
  max-width: 1200px;
  width: 100%;
  display: block;
  padding-top: 50px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .l-2col {
    grid-template-columns: 1fr;
  }
}

.l-main {
  min-width: 0; /* prevent overflow */
}

.l-aside {
  position: relative;
}

@media (min-width: 1025px) {
  .l-aside {
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

/* ===============================
   Sidebar Widgets
   =============================== */
.w-box {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.w-box + .w-box {
  margin-top: 16px;
}

.w-box__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ===============================
   Category List
   =============================== */
.w-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.w-list--cats li + li {
  margin-top: 8px;
}

.w-list--cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #333;
  padding: 8px 10px;
  transition: 0.2s;
  border-bottom: 1px solid #ddd;
}

.w-list--cats a:hover {
  border-color: #ccc;
  transform: translateY(-1px);
}

.w-count {
  font-size: 12px;
  opacity: 0.8;
}

/* ===============================
   Recent Posts
   =============================== */
.w-list--posts {
  display: grid;
  gap: 10px;
}

.w-post__link {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.w-post__thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.w-post__title {
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.w-post__date {
  font-size: 12px;
  color: #888;
}

/* ===============================
   CTA Block
   =============================== */
.w-cta .w-box__text {
  color: #555;
  line-height: 1.7;
  margin-bottom: 10px;
}

.w-btn {
  display: inline-block;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  background: #2a2b2d;
  color: #fff;
  border: 1px solid #2a2b2d;
  transition: 0.2s;
}

.w-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
/* ===== Search box ===== */
.w-search__form {
  display: flex;
  gap: 8px;
}
.w-search__input {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}
.w-search__btn {
  border: none;
  border-radius: 8px;
  background: #2a2b2d;
  color: #fff;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.w-search__btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ===== List style: thumbnail left, content right ===== */
.c-card--row {
  display: grid;
  grid-template-columns: 320px 1fr; /* サムネ幅 / 本文 */
  gap: 20px;
  align-items: stretch;
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 20px 0;
    background: #fff;
}

.c-card--row .c-card__thumb {
  display: block;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.c-card--row .c-card__thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.c-grid {
  border: 1px solid #e9eef5;
}
.c-card--row .c-card__box {
  background: #fff;
  padding: 16px 18px;
  display: grid;
  align-content: start;
  gap: 10px;
  text-align: left;
}

.c-card--row .c-card__title {
  margin: 0;
  line-height: 1.4;
  font-size: 0; /* 中のバッジの行高で揃えるため */
}

.c-card--row .c-card__title a {
  text-decoration: none;
}
h3.c-card__title{
  font-size: 2rem;
}

.c-title-badge {
  display: inline-block;
  color: #000;
  font-weight: 700;
  font-size: 18px;
  padding: 8px 0;
  border-radius: 8px;
  letter-spacing: 0.02em;
}

.c-card--row .c-card__date {
  font-size: 14px;
  color: #6b7a90;
}

.c-card--row .c-card__excerpt {
  font-size: 15px;
  color: #123;
  line-height: 1.9;
  /* 複数行省略（必要ならON） */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-entry {
  text-align: left;
}
.p-entry p {
  line-height: 2;
  margin-bottom:5rem;
}
h2 {
  line-height: 1.5;
  font-weight: bold;
  background-color: #eee2da;
  color: #555555;
  margin: 10px 0;
  padding: 10px;
  border-bottom: none;
}

h3 {
  margin: 0;
}
h3.wp-block-heading {
  color: #555;
  margin: 10px 0;
  padding: 10px;
  font-weight: bold;
  font-size: 1.5rem;
  border-left: 3px solid #eee2da;
}
section {
  margin: 10px 0;
}
.wp-block-list li {
  line-height: 3;
}


.p-supervisor {
  border-top: 1px solid #ddd;
  margin-top: 4rem;
  padding-top: 2rem;
}

.p-supervisor__title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.p-supervisor__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 24px;
  background: #fff;
}

.p-supervisor__thumb img {
  border-radius: 50%;
}

.p-supervisor__name {
  font-weight: 700;
  font-size: 1.7rem;
  margin-bottom: 0.2rem;
}

.p-supervisor__position {
  color: #666;
  font-size: 1.4 0.8rem;
}
.p-entry p.p-supervisor__position {
  line-height: 2;
}

.p-entry p.p-supervisor__desc {
  font-size: 1.1rem;
  line-height: 2;
}
h1 {
  margin-left: 0;
}
.p-entry__meta,
.p-entry__cats {
  margin: 10px 0;
}
.p-supervisor__thumb img {
  width: 100%;
}
.check-box{
  line-height: 2;
}
/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .c-card--row {
    grid-template-columns: 280px 1fr;
  }
}

@media (max-width: 768px) {
  .p-supervisor__inner {
    flex-direction: column;
  }
  .p-supervisor__thumb {
    margin: 0;
  }
  .p-supervisor__thumb img {
    width: 50%;
    display: block;
    margin: 0 auto;
  }
  .c-card--row {
    grid-template-columns: 1fr;
    gap: 0px;
  }
  .c-card--row .c-card__thumb img {
    aspect-ratio: 16/9;
  }
  .c-title-badge {
    font-size: 16px;
    border-radius: 6px;
    padding: 7px 10px;
  }
  .c-article {
    padding: 0 10px;
    box-sizing: border-box;
  }
  .c-card--row .c-card__box {
    padding: 14px;
  }
  .c-card--row .c-card__title{
    padding: 10px 0;
  }
  .p-entry p {
    line-height: 30px;
  }
  h1 {
    font-size: 2.3rem;
  }

  .c-article__container {
        padding-top: 0px;
  }
}
