@charset "utf-8";

/* =============================
   記事汎用スタイル
   ・記事本文/サマリー/ブロックの余白や体裁
   ・ウィジェットや細かいパーツは parts.css へ
   ============================= */

/* 記事コンテナ */
article,
.type-post,
.event-item,
.entry-summary {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.site-main article {
  margin-bottom: 40px;
  border: 2px solid var(--main-color);
  box-shadow: 5px 5px 0 rgba(201, 184, 255, 0.45);
}

.post-thumbnail {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.entry-content {
  padding: 2.5rem;
  overflow: hidden;
}

.entry-content p {
  margin-bottom: 2rem;
}

.entry-content .wp-block-group {
  margin: 2rem auto;
}

.event-item p,
.widget_block p {
  margin: 0;
}

.post-title,
.post-title a {
  font-weight: 700;
}

.post-title {
  margin-bottom: 5px;
}

.post-title a {
  text-decoration: none;
}

.post-excerpt {
  font-size: 1rem;
  line-height: 1.6;
}

.entry-meta {
  padding: 2rem;
  text-align: right;
}

.entry-meta p {
  margin-bottom: 1rem;
}

.post-categories-tags a {
  padding-right: 2px;
}

.row {
  padding: 0 15px;
}

/* タイトル・見出し */
body:not(.search-results) .entry-title {
  position: relative;
  margin: 0;
  padding: 8rem 1.5rem 1.5rem;
  color: #333;
  background: #fff;
  text-align: center;
}

/* グラデーションタイトルバー（装飾） */
body:not(.search-results) .entry-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.6rem;
  background: linear-gradient(90deg, var(--main-color), #f2a6c8);
}

/* ウィンドウボタン SVG（装飾） */
body:not(.search-results) .entry-title .buttons {
  position: absolute;
  top: 0;
  right: 0.8rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body:not(.search-results) .entry-title .buttons button,
.widget-area .widget .buttons .close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: default;
}

body:not(.search-results) .entry-title .buttons svg,
.widget-area .widget .buttons .close svg {
  width: 10px;
  height: 10px;
  fill: var(--main-color-on-bg);
}

p + .wp-block-heading {
  margin-top: 2rem;
}

.entry-content h2.wp-block-heading {
  font-weight: 700;
  border-top: 4px solid var(--main-color);
  margin: 6rem -3rem 3rem;
  padding: 2rem 3rem;
  background: #f7f5ff;
}

.entry-content h3 {
  line-height: 1.8;
  font-weight: 700;
  position: relative;
  margin: 3rem 0 2rem;
  padding-left: 1.6rem;
  border-left: 3px solid var(--assort-color);
}

.entry-content h3:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  border-bottom: 1px solid #ddd;
}

.entry-content h4 {
  margin: 2em 0 1em;
  padding-bottom: 0.2em;
  font-weight: bold;
  color: var(--main-color-dark);
  border-bottom: 1px dashed var(--assort-color);
}

.underline {
  background: linear-gradient(transparent 50%, var(--main-color) 50%);
}

/* リスト */
.wp-block-list {
  margin: 2em auto;
  list-style-type: none !important;
  counter-reset: number;
}

.widget-area .wp-block-list {
  margin-bottom: 0;
}

ol.wp-block-list {
  padding: 0.3em 0.8em;
  border: 2px solid var(--main-color);
}

ol.wp-block-list li {
  position: relative;
  padding: 0.5em 0.5em 0.5em 40px;
  line-height: 1.5;
  border-bottom: 1px dashed var(--main-color);
}

ol.wp-block-list li::before {
  position: absolute;
  top: 50%;
  left: 0;
  display: inline-block;
  width: 25px;
  height: 25px;
  font-family: Avenir, 'Arial Black', Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 25px;
  color: var(--main-color-on-bg);
  text-align: center;
  background: var(--main-color);
  border-radius: 50%;
  content: counter(number);
  counter-increment: number;
  transform: translateY(-50%);
}

ol.wp-block-list li:last-of-type {
  border-bottom: none;
}

ul.wp-block-list li {
  position: relative;
  padding: 0 0.3em 0.3em 1.3em;
}

ul.wp-block-list li::after,
ul.wp-block-list li::before {
  position: absolute;
  top: 0.43em;
  left: 0.5em;
  display: block;
  width: 4px;
  height: 11px;
  content: '';
  background: var(--main-color);
  border-radius: 10px;
  transform: rotate(45deg);
}

ul.wp-block-list li::before {
  top: 0.6em;
  left: 0.2em;
  height: 8px;
  transform: rotate(-45deg);
}

.hcb_wrap.hcb_wrap {
  margin-top: 0 !important;
}

/* カテゴリー・タグ */
.post-categories,
.post-tags {
  display: flex;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.post-categories li,
.post-tags li {
  padding: 5px 10px;
  background-color: var(--gray-01);
  border-radius: 5px;
}

.post-categories li a,
.post-tags li a {
  text-decoration: none;
}

.post-categories li:hover,
.post-tags li:hover {
  color: #fff;
  background-color: var(--active-color);
}

.post-categories li:hover a,
.post-tags li:hover a {
  color: #fff;
}

/* イベントカード */
.event-item {
  justify-content: space-between;
  padding: 20px;
}

.event-item .excerpt-content {
  flex-grow: 1;
  margin-bottom: 0;
}

.event-item .read-more-link {
  display: block;
  width: 50%;
  margin: 1rem auto 0;
  padding: 8px 12px;
  color: var(--gray-03);
  text-align: center;
  text-decoration: none;
  background-color: var(--gray-01);
  border-radius: 5px;
}

.event-item .read-more-link:hover {
  color: #fff;
  background-color: var(--active-color);
}

/* 吹き出し */
.entry-content .balloon {
  display: flex;
  width: 100%;
  margin: 1.5em 0;
}

.entry-content .balloon .faceicon {
  float: left;
  width: 150px;
  margin-right: 20px;
}

.entry-content .balloon .faceicon img {
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.entry-content .balloon .chatting {
  flex-grow: 0;
  max-width: 70%;
}

.entry-content .says {
  position: relative;
  display: inline-block;
  margin: 20px 0;
  padding: 17px 13px;
  background: #fcf1de;
  border-radius: 12px;
  word-wrap: break-word;
}

.entry-content .says::after {
  position: absolute;
  top: 18px;
  left: -24px;
  display: inline-block;
  content: '';
  border: 12px solid transparent;
  border-right: 12px solid #fcf1de;
}

.entry-content .says p {
  margin: 0;
  padding: 0;
}

/* 埋め込み */

/* X（Twitter）*/
.wp-block-embed-twitter,
.wp-block-embed-x {
  display: flex;
  justify-content: center;
}

.twitter-tweet {
  margin-left: auto !important;
  margin-right: auto !important;
}

.youtube-box {
  overflow: hidden;
}

.youtube {
  position: relative;
  width: 100%;
  height: 0;
  margin: 3rem 0;
  padding-bottom: 56.25%;
}

.youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.youtube-short {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 20px;
  padding-top: 90%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.youtube-short iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* テーブル */
thead th {
  font-weight: 700;
  text-align: center;
}

.entry-content .wp-block-table {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  table-layout: fixed;
  border-collapse: collapse;
  border: none !important;
}

.wp-block-table table {
  border: 2px solid var(--main-color);
}

.entry-content .wp-block-table thead {
  border-bottom: 2px solid var(--main-color);
}

.entry-content .wp-block-table thead th {
  color: var(--main-color-on-bg);
  background: var(--main-color);
  border: none;
  border-right: 1px solid var(--gray-02);
}

.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
  padding: 1em 10px 1em 1em;
  vertical-align: middle;
  border: none;
  border-right: 1px solid var(--gray-02);
}

.entry-content .wp-block-table th:last-child,
.entry-content .wp-block-table td:last-child {
  border-right: none;
}

.entry-content .wp-block-table td:first-child,
.entry-content .wp-block-table td:first-child a {
  font-weight: bold;
}

.entry-content .wp-block-table td:first-child a:hover {
  text-decoration: underline;
}

.entry-content .wp-block-table tr {
  padding: 0.35em;
  background-color: #fff;
  border-bottom: 1px solid var(--gray-02);
}

.entry-content .wp-block-table tr:last-child {
  border-bottom: none;
}

.entry-content .wp-block-table tr.pref {
  font-weight: bold;
  border-top: 2px solid var(--main-color);
}

.entry-content .wp-block-table .pref-cell {
  padding-top: 1em;
  padding-bottom: 1em;
  font-size: 1.1em;
  background-color: #fff !important;
}

table.link {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
}

table.link th,
table.link td {
  padding: 10px;
  text-align: left;
  border: 1px solid var(--gray-02);
}

table.link th {
  text-align: center;
  font-weight: 700;
  background-color: var(--gray-02);
}

table.link th:nth-child(1) {
  width: 100px;
}

table.link th:nth-child(2) {
  width: 200px;
}

table.link th:nth-child(3) {
  width: 150px;
}

/* その他 */
.wp-element-caption {
  text-align: center;
  font-size: 0.9em;
}

.beaver-news-wrap {
  margin-bottom: 2em;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .entry-content {
    padding: 1.75rem;
  }

  .post-excerpt {
    font-size: 0.9rem;
  }

  .entry-content .balloon .chatting {
    max-width: calc(100% - 100px);
  }

  .entry-content .balloon .faceicon {
    width: 100px;
  }

  .entry-content .says {
    margin: 0;
  }

  table.link {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    border: 1px solid var(--gray-02);
  }

  table.link thead {
    display: none;
  }

  table.link tbody,
  table.link tr,
  table.link td {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
  }

  table.link tr {
    padding: 0;
  }

  table.link td::before {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    content: attr(data-label);
  }

  table.link td[rowspan] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

/************************************
****　もしもかんたんリンク
************************************/
/* 枠 */
div.easyLink-box {
  margin: 0 auto 1em !important;
  padding: 1em 1.5em !important;
  background-color: #fafafa !important;
  border: none !important;
  border-radius: 4px;
  box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.26);
  line-height: 1.5;
  max-width: 90% !important;
}
@media screen and (max-width: 703px) {
  div.easyLink-box {
    text-align: center;
    max-height: none !important;
    padding: 10px !important;
  }
}
@media screen and (max-width: 620px) {
  div.easyLink-box {
    display: block !important;
  }
}
@media screen and (max-width: 480px) {
  div.easyLink-box {
    max-width: 100% !important;
  }
}
/* 商品名 */
div.easyLink-box div.easyLink-info p.easyLink-info-name {
  text-align: center;
}
div.easyLink-box div.easyLink-info p.easyLink-info-name a {
  font-size: 14px;
  color: #565656 !important;
}
div.easyLink-box div.easyLink-info p.easyLink-info-name a:hover {
  color: #337ab7 !important;
}
@media screen and (max-width: 703px) {
  div.easyLink-box div.easyLink-info p.easyLink-info-name a {
    font-size: 14px;
  }
}
/* 画像 */
@media screen and (min-width: 704px) {
  div.easyLink-box div.easyLink-img {
    margin-top: 1em;
  }
  div.easyLink-box div.easyLink-img p.easyLink-img-box {
    align-items: start !important;
  }
}
@media screen and (min-width: 481px) and (max-width: 620px) {
  div.easyLink-box div.easyLink-img {
    display: inline-block !important;
  }
}
div.easyLink-box div.easyLink-img a.easyLink-arrow-left img,
div.easyLink-box div.easyLink-img a.easyLink-arrow-right img {
  /*左右矢印の影非表示*/
  box-shadow: none;
}
/* ボタン */
div.easyLink-box div.easyLink-info p.easyLink-info-btn a {
  border-radius: 20px !important;
  line-height: 40px !important;
  width: 75% !important;
  font-size: 0.8em !important;
}
@media screen and (min-width: 704px) {
  div.easyLink-box div.easyLink-info p.easyLink-info-btn {
    margin-top: 0.5em !important;
    justify-content: center !important;
  }
  div.easyLink-box div.easyLink-info p.easyLink-info-btn a {
    margin: 0.5em 0 0 0 !important;
  }
}
@media screen and (max-width: 703px) {
  div.easyLink-box div.easyLink-info p.easyLink-info-btn {
    margin-top: 0.2em !important;
  }
  div.easyLink-box div.easyLink-info p.easyLink-info-btn a {
    display: inline-block !important;
    margin-top: 0.5em !important;
    margin-bottom: 0 !important;
  }
}
@media screen and (max-width: 620px) {
  div.easyLink-box div.easyLink-info p.easyLink-info-btn a {
    width: 85% !important;
  }
}

.info {
  border: 1px solid var(--gray-01);
  border-radius: 1px;
  font-size: 0.95em;
  margin-bottom: 1em;
  padding: 0.75em;
  text-align: center;
}
