@charset "UTF-8";

/* Variables */
:root {
  --key-color: #009140;
  --text-color: #1b1b1b;
  --max-width: 800px;
  --border-color: #e5e5e5;
  --gray-bg: #4a4a4a;
  --header-banner-bg: #007a38;
  --fixed-header-height: 120px;
}

/* Common Styles */
body {
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header-past-events {
  width: 100%;
  background: var(--header-banner-bg);
  border-bottom: 1px solid var(--key-color);
}

.header-past-events a {
  display: block;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}

.header-past-events a:hover {
  background: rgba(0, 0, 0, 0.15);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-circle {
  width: 40px;
  height: 40px;
}

.site-title {
  color: var(--key-color);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-info span {
  font-weight: 800;
  color: var(--text-color);
  font-size: 1.5rem;
}

.phone-icon {
  color: var(--key-color);
  width: 20px;
  height: 20px;
}

/* Hero Section */
.hero.is-hidden {
  display: none;
}

.hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 145, 64, 0.7), rgba(0, 145, 64, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  padding: 0 24px;
  color: #ffffff;
}

.hero-title {
  font-size: 2.5rem;
  margin: 0 0 16px 0;
  color: #ffffff;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #ffffff;
}

/* Main Content */
main {
  padding: 50px 25px;
  background: #f1efe7;
}

.page-title {
  position: relative;
  color: var(--key-color);
  font-size: 1.875rem;
  margin: 0 0 24px;
  padding-bottom: 12px;
  font-weight: 700;
  text-align: center;
}

.page-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--key-color), #00c164);
}

/* Filters */
.tournament-filters {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.filter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px auto;
  gap: 16px;
  align-items: end;
}

.filter-group {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 14px 14px 12px;
  margin: 0;
  min-width: 0;
}

.filter-group legend {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-color);
  padding: 0 4px;
}

.filter-note {
  font-size: 0.75rem;
  color: #5f6b61;
  font-weight: 400;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-color);
  background: #f7faf6;
  border: 1px solid #dce7da;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}

.filter-check input {
  width: 14px;
  height: 14px;
  accent-color: var(--key-color);
}

.filter-select-wrap {
  display: block;
}

.filter-select-label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  color: #5f6b61;
}

.filter-select-wrap select {
  width: 100%;
  height: 40px;
  border: 1px solid #cfdccf;
  border-radius: 6px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--text-color);
  font-size: 0.9375rem;
}

.filter-note-month {
  margin-top: 8px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #5f6b61;
}

.filter-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.filter-btn {
  height: 40px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-btn-submit {
  background: var(--key-color);
  color: #ffffff;
}

.filter-btn-reset {
  background: #ffffff;
  border-color: #cfdccf;
  color: var(--text-color);
}

/* Tournament List */

.tournament-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
  color: var(--text-color);
  display: block;
  padding: 20px;
  box-sizing: border-box;
}

/* List card thumbnail layout (optional) */
.tournament-card.has-thumbnail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  column-gap: 16px;
  align-items: center;
}

.tournament-card.has-thumbnail .tournament-header,
.tournament-card.has-thumbnail .tournament-table {
  grid-column: 1;
}

.tournament-thumb {
  display: none;
}

.tournament-card.has-thumbnail .tournament-thumb {
  display: block;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 120px;
  height: 120px;
  align-self: flex-end;
  overflow: hidden;
  background: #f4f4f4;
}

.tournament-card.has-thumbnail .tournament-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tournament-card-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary-color, #2d5a27);
  text-decoration: underline;
}

.tournament-card-link:hover {
  text-decoration: none;
}

.tournament-card:not(:last-child) {
  margin-bottom: 20px;
}

.tournament-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.tournament-card-actions {
  padding: 0 20px 20px
}

.tournament-header {
  margin-bottom: 15px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.tag {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  background: #8c2f8d;
}

.tag-tournament {
  background-color: #c54f4f;
}

.tag-lesson {
  background-color: #5a7fbc;
}

.tag-practice_session {
  background-color: #3b724d;
}

.tag-circle {
  background-color: #4e8f98;
}

.tag-training {
  background-color: #7b63a5;
}

.tag-demo_day {
  background-color: #b9895b;
}

.tag-pro_clinic{
  background-color: #ac944e;
}

.tag-watching {
  background-color: #c6814d;
}

.tag-training_course {
  background-color: #be8350;
}

.tag-junior {
  background-color: #b46ea7;
}

.tournament-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
}

.tournament-table {
  width: 100%;
  border: 1px solid var(--gray-bg);
  box-sizing: border-box;
  table-layout: fixed;
}

.tournament-table thead {
  background-color: var(--gray-bg);
}

.tournament-table th:nth-child(1),
.tournament-table td:nth-child(1) {
  width: 30%;
  min-width: 0;
}

.tournament-table th:nth-child(2),
.tournament-table td:nth-child(2) {
  width: 38%;
  min-width: 0;
}

.tournament-table th:nth-child(3),
.tournament-table td:nth-child(3) {
  width: 40%;
  min-width: 0;
}

.tournament-table th {
  padding: 10px 20px;
  text-align: left;
  color: #ffffff;
  font-weight: 500;
}

.tournament-table th.text-center {
  text-align: center;
}

.tournament-table td {
  padding: 7px 20px;
  color: var(--text-color);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.tournament-table td.text-center {
  text-align: center;
}

.apply-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 4px;
  background-color: var(--key-color);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
  font-size: 0.875rem;
  box-sizing: border-box;
}
.apply-btn::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #7eba98;
  border-right: 0;
 }

.apply-btn:hover {
  opacity: 0.8;
}

.tournament-status {
  border: 1px solid #ff0000;
  color: #ff0000;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.675rem;
  margin-right: 8px;
  font-weight: 600;
  vertical-align: 2px;
}

.icon {
  width: 16px;
  height: 16px;
}

/* Detail Page */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--key-color);
  text-decoration: none;
  transition: opacity 0.3s;
}

.back-link:hover {
  opacity: 0.7;
}

.detail-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 30px 30px 50px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.detail-tags .tag {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.detail-title {
  color: var(--text-color);
  font-size: 1.875rem;
  margin-bottom: 32px;
  font-weight: 600;
  line-height: 1.4;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  line-height: 1.3;
}

.info-icon {
  color: var(--key-color);
  flex-shrink: 0;
  margin-top: 2px;
  width: 24px;
  height: 24px;
}

.info-label {
  font-weight: 500;
  color: #666666;
  margin-bottom: 4px;
}

.info-content {
  color: var(--text-color);
}

.info-content .map-btn {
  display: inline-block;
    margin-left: 2px;
    padding: 5px 7px 4px;
    background-color: #858585;
    color: #ffffff !important;
    font-size: 0.675rem;
    font-weight: 400;
    text-decoration: none;
    border-radius: 2px;
    vertical-align: 1px;
    transition: .5s;
}
.info-content .map-btn::before { 
  content: "";
  display: inline-block;
  width: 8px;
  height: 10px;
  background-image: url(../images/map.svg);
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 3px;
}

.info-content .map-btn:hover {
  opacity: 0.5;
}

/* 404 */
.not-found {
  text-align: center;
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.not-found > p {
  margin-top: 30px;
  line-height: 1.6;  
}
.not-found > div {
  margin-top: 30px;
}

/* Detail Page - PC: ラベル幅固定・info-contentのツラを左揃え・tournament-statusを大きく */
@media (min-width: 641px) {
  .info-list .info-item {
    display: flex;
    align-items: flex-start;
  }
  .info-list .info-label {
    width: 5em;
    min-width: 5em;
    flex-shrink: 0;
  }
  .info-list .info-content {
    flex: 1;
    min-width: 0;
  }
  .tournament-status {
    font-size: 0.95rem;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: 2px;
  }
  .cancel-card .tournament-status {
    vertical-align: 6px;
  }
}

.description-box {
  background-color: #f9f9f9;
  padding: 24px;
  border-radius: 4px;
  margin-bottom: 32px;
}

.description-title {
  color: var(--text-color);
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.description-text {
  line-height: 1.7;
  color: var(--text-color);
}

.apply-section {
  text-align: center;
}

.apply-btn-large {
  padding: 16px 32px;
  background-color: var(--key-color);
  color: #ffffff;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.3s;
}

.apply-btn-large::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #7eba98;
  border-right: 0;
  margin-left: 5px;
}

.apply-btn-large:hover {
  opacity: 0.8;
}

.apply-note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: #666666;
}

/* 要項セクション */
.youkou-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.youkou-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 16px 0;
  padding-left: 12px;
  border-left: 4px solid var(--key-color);
}

.youkou-list {
  margin-bottom: 45px;
}

.youkou-list .info-item:last-child .info-content {
  line-height: 1.6;
}

.info-content .note {
  color: #666666;
  font-size: 0.875em;
  display: block;
  margin-top: 10px;
}

.info-content .link-txt {
  color: #c00;
  text-decoration: underline;
}

.info-content .link-txt:hover {
  opacity: 0.8;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.copyright {
  color: #666666;
  font-size: 0.688rem;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin-top: 40px;
}

/* .pagination-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
} */

/* .pagination-list li {
  margin: 0;
} */

/* .pagination-prev,
.pagination-next, */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--border-color);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

/* .pagination-prev:hover,
.pagination-next:hover, */
.page-numbers:hover {
  background: #f5f5f5;
  border-color: var(--key-color);
  color: var(--key-color);
}

.page-numbers.current {
  background: var(--key-color);
  border-color: var(--key-color);
  color: #ffffff;
  pointer-events: none;
}

.page-numbers.current:hover {
  background: var(--key-color);
  border-color: var(--key-color);
  color: #ffffff;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  .description-box {
    padding: 18px;
    margin-bottom: 24px;
  }

  .description-title {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .description-text {
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .tournament-filters {
    padding: 16px;
    margin-bottom: 20px;
  }

  .filter-form {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
  }

  .filter-actions {
    justify-content: flex-start;
  }

  .header-inner {
    padding: 12px 16px;
  }

  .logo-circle {
    width: 36px;
    height: 36px;
  }

  .site-title {
    font-size: 1.0625rem;
  }

  .header-past-events a {
    padding: 10px 16px;
    font-size: 0.875rem;
  }

  .hero {
    height: 300px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  main {
    padding: 32px 16px;
  }

  .container {
    padding: 0 16px;
  }

  .page-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }

  .page-title::after {
    width: 56px;
    height: 3px;
  }

  .tournament-card {
    padding: 16px;
  }

  .tournament-card.has-thumbnail {
    grid-template-columns: minmax(0, 1fr) 120px;
    column-gap: 12px;
    row-gap: 0;
  }

  .tournament-card.has-thumbnail .tournament-thumb {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 120px;
    max-width: none;
    height: 120px;
    aspect-ratio: auto;
    justify-self: stretch;
  }

  .tournament-card:not(:last-child) {
    margin-bottom: 16px;
  }

  .tournament-header {
    margin-bottom: 10px;
  }

  .tag {
    padding: 4px 10px;
    font-size: 0.7rem;
  }

  .tag-list {
    gap: 8px;
    margin-bottom: 8px;
  }

  .tournament-name {
    font-size: 1rem;
  }

  .tournament-table {
    font-size: 0.875rem;
  }

  .tournament-table th,
  .tournament-table td {
    padding: 8px 12px;
  }

  .apply-btn {
    padding: 8px 14px;
    font-size: 0.8125rem;
  }

  .footer-inner {
    padding: 0 16px;
  }

  .pagination {
    margin-top: 32px;
  }

  /* .pagination-prev,
  .pagination-next, */
  .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.8125rem;
  }

  .detail-tags .tag {
    padding: 4px 10px;
    font-size: 0.7rem;
  }
  .detail-tags {
    gap: 8px;
    margin-bottom: 8px;
  }

  .detail-card {
    padding: 16px 16px 30px;
  }  
}

/* Responsive - Mobile: Table as card list */
@media (max-width: 640px) {
  .tournament-card.has-thumbnail {
    grid-template-columns: minmax(0, 1fr) 96px;
    column-gap: 10px;
  }

  .tournament-card.has-thumbnail .tournament-thumb {
    width: 96px;
    height: 96px;
  }

  .tournament-table,
  .tournament-table thead,
  .tournament-table tbody,
  .tournament-table tr,
  .tournament-table th,
  .tournament-table td {
    display: block;
  }

  .tournament-table thead {
    display: none;
  }

  .tournament-table {
    border: none;
  }

  .tournament-table tbody tr {
    padding: 0;
    border: none;
  }

  .tournament-table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .tournament-table td:last-child {
    border-bottom: none;
    padding-top: 14px;
    padding-bottom: 0;
  }

  .tournament-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    color: var(--gray-bg);
    font-size: 0.75rem;
    margin-bottom: 4px;
  }

  .tournament-table td[data-label="お申し込み"]::before {
    margin-bottom: 8px;
  }

  .apply-btn {
    width: 100%;
    justify-content: center;
  }
  .tournament-table th:nth-child(1), .tournament-table td:nth-child(1) , .tournament-table th:nth-child(2), .tournament-table td:nth-child(2) , .tournament-table th:nth-child(3), .tournament-table td:nth-child(3) {
    width: 100%; }

  .detail-title {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  .apply-btn-large {
    padding: 10px 20px; 
    font-size: 0.875rem;
  }

  .info-list {
    gap: 0;
    margin-bottom: 25px;
    font-size: 1rem;
  }

  .info-list .info-item {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .info-list .info-item:last-child {
    border-bottom: none;
    padding-top: 14px;
    padding-bottom: 0;
  }

  .info-list .info-label {
    display: block;
    font-weight: 700;
    color: var(--gray-bg);
    font-size: 0.75rem;
    margin-bottom: 4px;
  }

  .info-list .info-content {
    display: block;
  }

  .apply-btn-large::after {
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 7px solid #7eba98;
    margin-left: 3px;
    margin-bottom: 1px;
  }
  .youkou-title {
    font-size: 1rem;
    margin-bottom: 5px;
   }
}

/* Responsive - Small mobile */
@media (max-width: 480px) {
  .description-box {
    padding: 14px 12px;
    margin-bottom: 18px;
  }

  .description-title {
    font-size: 0.9375rem;
    margin-bottom: 8px;
  }

  .description-text {
    font-size: 0.875rem;
    line-height: 1.65;
  }

  .filter-group {
    padding: 12px 10px 10px;
  }

  .filter-options {
    gap: 6px;
  }

  .filter-check {
    font-size: 0.8125rem;
    padding: 5px 8px;
  }

  .filter-btn {
    height: 36px;
    font-size: 0.8125rem;
  }

  .tournament-card.has-thumbnail {
    grid-template-columns: minmax(0, 1fr) 80px;
    column-gap: 8px;
  }

  .tournament-card.has-thumbnail .tournament-thumb {
    width: 80px;
    height: 80px;
  }

  .header-inner {
    padding: 10px 12px;
  }

  .logo-circle {
    width: 25px;
    height: 25px;
  }

  .site-title {
    font-size: 0.875rem;
  }

  .header-past-events a {
    padding: 8px 12px;
    font-size: 0.8125rem;
  }

  .hero {
    height: 150px;
  }

  .hero-title {
    font-size: 1.375rem;
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 0.875rem;
  }

  main {
    padding: 35px 10px;
  }

  .container {
    padding: 0 12px;
  }

  .page-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }

  .tournament-card {
    padding: 14px;
  }

  .tournament-card:not(:last-child) {
    margin-bottom: 14px;
  }

  .pagination {
    margin-top: 24px;
  }

  .pagination-list {
    gap: 2px;
  }

  /* .pagination-prev,
  .pagination-next, */
  .page-numbers {
    min-width: 32px;
    height: 32px;
    padding: 0 3px;
    font-size: 0.75rem;
  }

  .page-numbers.prev,
  .page-numbers.next {
    padding: 0 6px;
  }

  .phone-icon {
    width: 13px;
    height: 13px;
  }
  .contact-info { 
    gap:3px
  }

  .info-list {
    font-size: 0.875rem;
    gap: 0;
  }
}


/*　Gutenberg用フロントCSS  */

/* 見出し */
.free-content-block h2 {
  font-size: 26px;
  margin: 2em 0 0.8em;
}

.free-content-block h3 {
  font-size: 20px;
  margin: 1.8em 0 0.6em;
}

/* 段落 */
.free-content-block p {
  line-height: 1.5;
  margin-bottom: 1.4em;
}

/* リスト */
.free-content-block ul {
  line-height: 1.5;
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.free-content-block li {
  margin-bottom: 0.5em;
}

/* リンク */
.free-content-block a {
  color: var(--key-color);
  text-decoration: underline;
}

/* 画像 */
.wp-block-image {
  margin: 2em 0;
  text-align: center;
}

.wp-block-image img {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
}

/* キャプション */
.wp-block-image figcaption {
  font-size: 13px;
  color: #777;
  margin-top: 8px;
}

/* ボタン */
.wp-block-button {
  margin: 2em 0;
  text-align: center;
}

.wp-block-button__link {
  background: var(--key-color);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
}

/* テーブル */
.free-content-block .wp-block-table table {
  line-height: 1.5;
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
}

.free-content-block .wp-block-table th,
.free-content-block .wp-block-table td {
  border: 1px solid var(--gray-bg);
  padding: 10px;
}

.free-content-block .wp-block-table th {
  background: #f5f5f5;
}

/* 区切り */
.wp-block-separator {
  margin: 2em 0;
  border-top: 1px solid var(--gray-bg);
}

/* カラム */
.wp-block-columns {
  gap: 20px;
  margin: 2em 0;
}

/* カバー */
.wp-block-cover {
  margin: 2em 0;
  border-radius: 12px;
  overflow: hidden;
}

/* 埋め込み */
.wp-block-embed {
  margin: 2em 0;
}