/* banner-cta-th25.css — ベースライン(自動読込・module-base.css前提)。編集せず上書きで調整。 */
@charset "UTF-8";

/* ── th25_module--3col: PC3列・SP縦並び ── */
.th25_module--3col {
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.th25-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1440px;
  margin: 0 auto;
}
.th25-card {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s, transform 0.3s;
}
.th25-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.14);
  transform: translateY(-3px);
}
.th25-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.th25-card figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.th25-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: none;
  transition: transform 0.4s ease;
  display: block;
}
.th25-card:hover figure img {
  transform: scale(1.04);
}
.th25-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  background: #fff;
}
.th25-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.6rem;
  line-height: 1.3;
}
.th25-card-more {
  margin: 0;
}
.th25-card-more .add_arrow {
  display: inline-block;
  position: relative;
  font-size: 0.875rem;
  color: var(--color-heading-ink);
  padding-right: 1.4em;
  text-decoration: none;
  font-weight: 600;
  border: none;
}
.th25-card-more .add_arrow::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--color-heading-ink);
  border-right: 1.5px solid var(--color-heading-ink);
  transform: translateY(-50%) rotate(45deg);
  transition: right 0.2s;
}
.th25-card:hover .th25-card-more .add_arrow::after {
  right: -3px;
}

/* SP: 縦並び */
@media (max-width: 767px) {
  .th25-3col-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .th25-card figure {
    aspect-ratio: 16/9;
  }
  .th25-card-body {
    padding: 1rem 1.25rem 1.25rem;
  }
}

/* タブレット: 2列 */
@media (min-width: 768px) and (max-width: 1023px) {
  .th25-3col-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.th25_module a:not(.add_arrow) {
  text-decoration: none;
  border: none;
  display: block;
  width: 100%;
  height: 100%;
}
@media (max-width: 1023px) {
  .th25_module .col {
    width: 100%;
    margin-bottom: 0;
  }
}
.th25_module .th25_module_bnr {
  position: relative;
  max-width: 960px;
  margin: auto;
}
.th25_module .th25_module_bnr:after {
  content: "";
  position: absolute;
  background: color-mix(in srgb, #000 50%, transparent);
  opacity: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: 0.3s;
}
.th25_module .th25_module_bnr:hover:after {
  opacity: 1;
}
.th25_module .th25_module_bnr:hover .more .add_arrow {
  color: var(--color-text);
  border-color: #fff !important;
}
.th25_module .th25_module_bnr:hover .more .add_arrow:before {
  height: 100%;
  width: 135%;
}
.th25_module .th25_module_bnr:hover .more .add_arrow:after {
  border-color: #000;
}
.th25_module .more {
  width: 175px;
}
.th25_module .more .add_arrow {
  width: 175px;
  padding: 0.1em 1.3em 0.1em 1em;
  transition: 0.3s;
  display: inline-block;
  letter-spacing: normal;
  border: 1px solid #fff;
  color: var(--color-on-primary);
  margin-bottom: 1px;
  text-decoration: none;
  font-size: 0.875rem;
}
@media (min-width: 768px) {
  .th25_module .more .add_arrow {
    font-size: 1.125rem;
  }
}
.th25_module .more .add_arrow:before {
  content: "";
  height: 100%;
  left: -35%;
  top: 0;
  transform: skew(50deg);
  transition-duration: 0.3s;
  transform-origin: top left;
  width: 0;
  position: absolute;
  background-color: #fff;
  z-index: -1;
}
.th25_module .more .add_arrow:after {
  border-color: #fff;
  right: 8%;
  width: 5px;
  height: 5px;
  transition: 0.3s;
}
.th25_module .more .add_arrow:hover {
  color: var(--color-text) !important;
}
.th25_module .more .add_arrow:hover:after {
  right: 5%;
}
.th25_module .th25_module_txt {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  margin: auto;
  text-align: center;
  z-index: 1;
}
.th25_module .th25_module_txt.twrap1 {
  top: 73%;
}
.th25_module .th25_module_txt.twrap2, .th25_module .th25_module_txt.twrap3 {
  top: 50%;
}
.th25_module img {
  max-width: 100%;
}
.th25_module .th25_module_p {
  color: var(--color-on-primary);
  margin-bottom: 0;
  padding-bottom: 0.3em;
  font-size: 1.875rem;
}
@media (max-width: 1023px) {
  .th25_module .th25_module_p {
    font-size: 1.375rem;
  }
}

body #page_block3 .th25_module .more a:hover {
  background: transparent;
}
@media (min-width: 1024px) and (max-width: 1200px) {
  body.two_column #page_block3 .th25_module_p {
    font-size: 1.375rem;
  }
}
