@charset "UTF-8";
/* =====================================================
   コラム
   トップの新着コラム・一覧ページ・記事ページ
   ===================================================== */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.inner--narrow {
  max-width: 848px;
}

/* ---------- トップページ：新着コラム ---------- */
.column-latest {
  padding: 88px 0 20px;
}

.column-latest__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.column-latest__head .sec-title {
  margin-bottom: 0;
}

/* ---------- カード一覧 ---------- */
.column-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.column-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  color: var(--text);
  box-shadow: 0 4px 18px rgba(20, 40, 80, .08);
  transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s;
}

.column-card__link:hover {
  color: var(--text);
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(20, 40, 80, .14);
}

.column-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--pale);
}

.column-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.column-card__link:hover .column-card__thumb img {
  transform: scale(1.06);
}

.column-noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--pale), var(--cta-bg));
}

.column-noimage img {
  width: 56% !important;
  height: auto !important;
  object-fit: contain !important;
  opacity: .5;
}

.column-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
}

.column-card__meta,
.entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 12px;
  color: var(--muted);
}

.column-card__meta time,
.entry__meta time {
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--navy);
}

.column-tag {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--pale);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}

.column-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.column-card__excerpt {
  font-size: 13px;
  line-height: 1.9;
  color: var(--sub);
}

.column-card__more {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.column-card__link:hover .column-card__more {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- ページ見出し（一覧・記事共通） ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding: 40px 0 64px;
  background: var(--hero-bg);
}

.page-head::before,
.page-head::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.page-head::before {
  width: 320px;
  height: 320px;
  right: -80px;
  top: -140px;
  background: rgba(255, 255, 255, .6);
}

.page-head::after {
  width: 180px;
  height: 180px;
  right: 18%;
  bottom: -110px;
  background: rgba(45, 127, 211, .08);
}

.page-head .inner {
  position: relative;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 10px;
}

.breadcrumb a {
  color: var(--sub);
}

.breadcrumb a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.breadcrumb [aria-current] {
  max-width: 24em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-head__title span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--navy);
}

.page-head__title h1 {
  font-family: var(--round);
  font-size: 40px;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--ink);
}

.page-head__lead {
  margin-top: 16px;
  font-size: 15px;
  line-height: 2;
  color: #374151;
}

/* ---------- 一覧ページ ---------- */
.column-archive {
  padding: 56px 0 96px;
}

.column-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}

.column-cats a {
  display: inline-block;
  padding: 8px 20px;
  border: 1.5px solid var(--frame);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--sub);
  transition: background-color .2s, color .2s, border-color .2s;
}

.column-cats a:hover,
.column-cats a[aria-current] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.column-empty {
  padding: 64px 24px;
  border-radius: 16px;
  background: var(--pale);
  text-align: center;
  font-size: 15px;
  color: var(--sub);
}

/* ページ送り */
.pagination {
  margin-top: 56px;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--frame);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  transition: background-color .2s, color .2s, border-color .2s;
}

.pagination a.page-numbers:hover,
.pagination .page-numbers.current {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.pagination .page-numbers.dots {
  border: none;
  background: none;
}

/* ---------- 記事ページ ---------- */
.page-head--entry {
  padding-bottom: 48px;
}

.entry__title {
  margin-top: 14px;
  font-family: var(--round);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--ink);
}

.entry__inner {
  padding-top: 48px;
  padding-bottom: 72px;
}

.entry__thumb {
  margin: 0 0 48px;
  border-radius: 16px;
  overflow: hidden;
}

.entry__thumb img {
  width: 100%;
  height: auto;
}

/* 本文 */
.entry__content {
  font-size: 16px;
  line-height: 2.1;
  color: #2b3340;
}

.entry__content > * + * {
  margin-top: 1.6em;
}

.entry__content h2 {
  margin-top: 2.6em;
  padding: 14px 20px;
  border-left: 5px solid var(--navy);
  border-radius: 0 8px 8px 0;
  background: var(--pale);
  font-size: 22px;
  line-height: 1.6;
  color: var(--ink);
}

.entry__content h3 {
  margin-top: 2.2em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
}

.entry__content h4 {
  margin-top: 2em;
  font-size: 17px;
  color: var(--navy);
}

.entry__content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry__content strong {
  background: linear-gradient(transparent 62%, rgba(45, 127, 211, .16) 62%);
}

.entry__content ul,
.entry__content ol {
  padding-left: 1.5em;
}

.entry__content li + li {
  margin-top: .4em;
}

.entry__content li::marker {
  color: var(--navy);
}

.entry__content blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--cta-bg);
  color: var(--sub);
}

.entry__content img {
  height: auto;
  border-radius: 12px;
}

.entry__content figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.entry__content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.entry__content th,
.entry__content td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.entry__content th {
  background: var(--pale);
}

.entry__content hr {
  border: none;
  border-top: 1px dashed var(--frame);
}

.entry__pages {
  margin-top: 40px;
  text-align: center;
  font-weight: 700;
}

/* 前後の記事 */
.entry-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.entry-nav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--pale);
  color: var(--text);
  transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), background-color .2s;
}

.entry-nav__item:hover {
  color: var(--text);
  background: var(--cta-bg);
  transform: translateY(-4px);
}

.entry-nav__item--next {
  grid-column: 2;
  text-align: right;
}

.entry-nav__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}

.entry-nav__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.entry__back {
  margin-top: 48px;
  text-align: center;
}

/* 記事下の見学・相談の案内 */
.entry-cta {
  padding: 0 0 96px;
}

.entry-cta__box {
  position: relative;
  overflow: hidden;
  padding: 56px 40px;
  border-radius: 24px;
  background: var(--cta-bg);
  text-align: center;
}

.entry-cta__box::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  left: -70px;
  bottom: -90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
}

.entry-cta__en {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--navy);
}

.entry-cta__title {
  position: relative;
  margin-top: 10px;
  font-family: var(--round);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.6;
  color: var(--ink);
}

.entry-cta__text {
  position: relative;
  margin: 14px 0 28px;
  font-size: 15px;
  color: #374151;
}

/* ---------- 2カラムレイアウト（一覧・記事共通） ---------- */
.column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
}

.column-layout .column-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.page-head--entry .entry__title {
  max-width: calc(100% - 356px);
}

/* ---------- サイドバー ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar__block {
  padding: 26px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(20, 40, 80, .07);
}

.sidebar__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px dotted var(--frame);
  font-family: var(--round);
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
}

.sidebar__title span {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--blue);
}

/* カテゴリー */
.sidebar-cats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  transition: background-color .2s, color .2s, padding .25s;
}

.sidebar-cats__name::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--blue);
  vertical-align: middle;
}

.sidebar-cats__count {
  min-width: 28px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--pale);
  font-size: 11px;
  text-align: center;
  color: var(--navy);
}

.sidebar-cats a:hover {
  padding-left: 18px;
  background: var(--pale);
  color: var(--navy);
}

.sidebar-cats a[aria-current] {
  background: var(--navy);
  color: #fff;
}

.sidebar-cats a[aria-current] .sidebar-cats__name::before {
  background: #ffe58a;
}

.sidebar-cats a[aria-current] .sidebar-cats__count {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

/* 新着コラム */
.sidebar-posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-posts__link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--text);
}

.sidebar-posts__link:hover {
  color: var(--navy);
}

.sidebar-posts__thumb {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pale);
}

.sidebar-posts__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.sidebar-posts__thumb .column-noimage img {
  width: 80% !important;
}

.sidebar-posts__link:hover .sidebar-posts__thumb img {
  transform: scale(1.08);
}

.sidebar-posts__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sidebar-posts__body time {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--navy);
}

.sidebar-posts__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.sidebar-posts__link:hover .sidebar-posts__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sidebar__more {
  display: block;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  color: var(--navy);
}

.sidebar__more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ウィジェット（管理画面から追加したもの・ブロックウィジェット対応） */
.sidebar__widgets {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar__widgets .widget > *:first-child {
  margin-top: 0;
}

.sidebar__widgets h2,
.sidebar__widgets h3,
.sidebar__widgets .wp-block-heading,
.sidebar__widgets .wp-block-search__label {
  display: block;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px dotted var(--frame);
  font-family: var(--round);
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
}

.sidebar__widgets ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.7;
}

.sidebar__widgets li a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--text);
  transition: background-color .2s, color .2s;
}

.sidebar__widgets li a:hover {
  background: var(--pale);
  color: var(--navy);
}

.sidebar__widgets a {
  color: var(--text);
}

.sidebar__widgets p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--sub);
}

/* 検索フォーム */
.sidebar__widgets .wp-block-search__inside-wrapper,
.sidebar__widgets .search-form {
  display: flex;
  gap: 8px;
}

.sidebar__widgets input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--frame);
  border-radius: 999px;
  background: var(--pale);
  font: inherit;
  font-size: 14px;
  color: var(--text);
}

.sidebar__widgets input[type="search"]:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
}

.sidebar__widgets .wp-block-search__button,
.sidebar__widgets .search-submit {
  flex-shrink: 0;
  height: 44px;
  margin: 0;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

.sidebar__widgets .wp-block-search__button:hover,
.sidebar__widgets .search-submit:hover {
  background: var(--navy-dark);
}

/* 見学・相談の案内（追従） */
.sidebar-cta {
  position: sticky;
  top: 108px;
  padding: 0;
  overflow: hidden;
  background: var(--cta-bg);
  box-shadow: none;
}

.sidebar-cta__img {
  position: relative;
  aspect-ratio: 16 / 10;
}

.sidebar-cta__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-cta__badge {
  position: absolute;
  right: 12px;
  bottom: -28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4aa8ea, #1b80d2 70%);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .7);
  font-family: var(--round);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  color: #fff;
  transform: rotate(-8deg);
}

.sidebar-cta__badge b {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.sidebar-cta__body {
  padding: 34px 22px 24px;
}

.sidebar-cta__title {
  font-family: var(--round);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.6;
  color: var(--ink);
}

.sidebar-cta__text {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.85;
  color: var(--sub);
}

.sidebar-cta__btn {
  width: 100%;
  height: 52px;
  margin-top: 16px;
  font-size: 14px;
}

/* =====================================================
   タブレット（〜1000px）
   ===================================================== */
@media (max-width:1000px) {
  .column-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .column-layout {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .page-head--entry .entry__title {
    max-width: none;
  }
  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .sidebar__widgets {
    grid-column: 1 / -1;
  }
  .sidebar-cta {
    position: static;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
  .sidebar-cta__img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 220px;
  }
  .sidebar-cta__badge {
    right: -20px;
    bottom: auto;
    top: 20px;
  }
  .sidebar-cta__body {
    padding: 28px 32px 28px 40px;
  }
}

/* =====================================================
   スマートフォン（〜767px）
   ===================================================== */
@media (max-width:767px) {
  .column-latest {
    padding: 56px 0 8px;
  }
  .column-latest__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }
  .column-latest__head .btn {
    order: 2;
  }
  .column-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .column-card__body {
    padding: 18px 20px 20px;
  }
  .column-card__title {
    font-size: 16px;
  }
  .page-head {
    padding: 24px 0 44px;
  }
  .breadcrumb ol {
    margin-bottom: 24px;
  }
  .page-head__title h1 {
    font-size: 30px;
  }
  .page-head__lead {
    font-size: 13px;
  }
  .column-archive {
    padding: 40px 0 64px;
  }
  .column-cats {
    margin-bottom: 28px;
    gap: 8px;
  }
  .column-cats a {
    padding: 6px 16px;
    font-size: 12px;
  }
  .entry__title {
    font-size: 23px;
  }
  .entry__inner {
    padding-top: 32px;
    padding-bottom: 56px;
  }
  .entry__thumb {
    margin-bottom: 32px;
    border-radius: 12px;
  }
  .entry__content {
    font-size: 15px;
    line-height: 2;
  }
  .entry__content h2 {
    font-size: 19px;
    padding: 12px 16px;
  }
  .entry__content h3 {
    font-size: 17px;
  }
  .entry-nav {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }
  .entry-nav__item--next {
    grid-column: auto;
  }
  .entry-cta {
    padding-bottom: 64px;
  }
  .entry-cta .inner {
    padding: 0 16px;
  }
  .entry-cta__box {
    padding: 40px 20px;
    border-radius: 18px;
  }
  .entry-cta__title {
    font-size: 21px;
  }
  .entry-cta__text {
    font-size: 13px;
    text-align: left;
  }
  .entry-cta__box .btn {
    width: 100%;
    white-space: normal;
  }
  .column-layout {
    gap: 48px;
  }
  .column-layout .column-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sidebar {
    display: flex;
    align-items: stretch;
    gap: 16px;
  }
  .sidebar-cta {
    display: block;
  }
  .sidebar-cta__img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .sidebar-cta__badge {
    right: 12px;
    top: auto;
    bottom: -28px;
  }
  .sidebar-cta__body {
    padding: 34px 22px 24px;
  }
  .sidebar__block {
    padding: 22px 20px;
    border-radius: 16px;
  }
  .sidebar-cta {
    padding: 0;
  }
}
