/* ボタン */
.btn {
  width: 100%;
  max-width: none;
  min-height: var(--btn-min-height);
  margin-top: 1.5em;
}

.btn a,
.btn button {
  width: 100%;
  min-height: var(--btn-min-height);
  padding: 14px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-btn-text);
  background: var(--color-bg-dark);
  transition: all var(--transition-base);
  position: relative;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

.btn a::before,
.btn a::after,
.btn button::before,
.btn button::after {
  content: '';
  width: 0;
  height: 0;
  position: absolute;
  border: 1px solid transparent;
  box-sizing: border-box;
  z-index: 2;
}

.btn a::before,
.btn button::before {
  top: 0;
  left: 0;
}

.btn a::after,
.btn button::after {
  bottom: 0;
  right: 0;
}

@media screen and (min-width: 768px) {
  .btn {
    width: auto;
    max-width: var(--btn-max-width);
  }

  .btn a:hover,
  .btn button:hover {
    color: var(--color-text);
    background: var(--color-bg);
  }

  .btn a:hover::before,
  .btn button:hover::before {
    border-bottom-color: var(--color-text);
    border-left-color: var(--color-text);
    width: 100%;
    height: 100%;
    transition: height 0.3s, width 0.3s 0.3s;
  }

  .btn a:hover::after,
  .btn button:hover::after {
    border-top-color: var(--color-text);
    border-right-color: var(--color-text);
    width: 100%;
    height: 100%;
    transition: height 0.3s, width 0.3s 0.3s;
  }
}

.btn.is-center {
  margin-left: auto;
  margin-right: auto;
}

.btn.btn-white a,
.btn.btn-white button {
  background: var(--color-bg);
  color: var(--color-text);
}

@media screen and (min-width: 768px) {
  .btn.btn-white a:hover,
  .btn.btn-white button:hover {
    color: var(--color-bg);
    background: transparent;
  }

  .btn.btn-white a:hover::before,
  .btn.btn-white button:hover::before {
    border-bottom-color: var(--color-bg);
    border-left-color: var(--color-bg);
  }

  .btn.btn-white a:hover::after,
  .btn.btn-white button:hover::after {
    border-top-color: var(--color-bg);
    border-right-color: var(--color-bg);
  }
}

/* Read more リンク */
.more {
  color: var(--color-text-muted);
  text-align: right;
  margin-top: 1em;
}

.more span {
  display: inline-block;
  position: relative;
  font-size: 14px;
}

.more span::after {
  position: absolute;
  bottom: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 2px;
  background: var(--color-text-muted);
  transform: scale(1, 1);
  transform-origin: left top;
  transition: transform var(--transition-base);
}

@media screen and (min-width: 768px) {
  .more span:hover::after {
    transform-origin: right top;
    transform: scale(0, 1);
  }
}

/* 画像フィット */
.fit {
  display: block;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.fit::before {
  content: '';
  display: block;
  padding-top: 66.67%;
}

.fit img {
  width: 100%;
  max-width: none;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* フェードインアニメーション */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* モーフィング装飾SVG */
.morph-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.morph-shape path {
  fill: rgba(33, 33, 33, 0.06);
}
