:root {
  --wpt-accent: #b94708;
  --wpt-accent-dark: #963806;
  --wpt-navy: #283446;
  --wpt-ink: #263643;
  --wpt-paper: #fffaf6;
  --wpt-line: rgba(40, 52, 70, 0.18);
}

.wpt-news-home {
  width: 100%;
  margin: 0;
  padding: clamp(72px, 7.5vw, 112px) 24px;
  color: var(--wpt-ink);
  border-top: 1px solid rgba(40, 52, 70, 0.08);
  border-bottom: 1px solid rgba(40, 52, 70, 0.08);
  background: #fff;
}

.wpt-news-home__inner {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: clamp(42px, 6vw, 82px);
  align-items: stretch;
}

.wpt-news-home__inner {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.wpt-news-home__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding-top: 4px;
}

.wpt-news-home__eyebrow {
  position: relative;
  margin: 0 0 12px;
  padding-left: 30px;
  color: var(--wpt-accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
}

.wpt-news-home__eyebrow::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
  transform: translateY(-50%);
}

.wpt-news-home h2 {
  margin: 0;
  padding: 0;
  color: var(--wpt-navy);
  border: 0;
  background: transparent;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.wpt-news-home__all {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 14px 0 4px;
  color: var(--wpt-navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wpt-news-home__all span {
  color: var(--wpt-accent);
  font-size: 20px;
  transition: transform 0.2s ease;
}

.wpt-news-home__all:hover,
.wpt-news-home__all:focus-visible {
  color: var(--wpt-accent);
}

.wpt-news-home__all:hover span,
.wpt-news-home__all:focus-visible span {
  transform: translateX(4px);
}

.wpt-news-list {
  border-top: 2px solid var(--wpt-navy);
}

.wpt-news-list__item {
  margin: 0;
  border-bottom: 1px solid var(--wpt-line);
}

.wpt-news-list__item > a {
  display: grid;
  grid-template-columns: 116px 130px minmax(0, 1fr) 28px;
  gap: 20px;
  min-height: 88px;
  align-items: center;
  padding: 16px 10px;
  color: var(--wpt-ink);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.wpt-news-list__item > a:hover,
.wpt-news-list__item > a:focus-visible {
  color: var(--wpt-accent);
  background: rgba(185, 71, 8, 0.035);
}

.wpt-news-list time {
  color: #68747c;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.wpt-news-list__category {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  color: var(--wpt-accent);
  border: 1px solid rgba(185, 71, 8, 0.28);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.wpt-news-list__title {
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
}

.wpt-news-list__arrow {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: var(--wpt-accent);
  border: 1px solid rgba(185, 71, 8, 0.28);
  border-radius: 50%;
  font-size: 16px;
  text-align: right;
  transition: transform 0.2s ease;
}

.wpt-news-list__item > a:hover .wpt-news-list__arrow,
.wpt-news-list__item > a:focus-visible .wpt-news-list__arrow {
  transform: translateX(4px);
}

/* font-size:0 の保存済み見出しを、文字の強弱を保ったまま通常表示へ戻す */
.post_content h2[style*="font-size:0"],
.post_content h2[style*="font-size: 0"] {
  font-size: 35px !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.post_content h2[style*="font-size:0"] .swl-fz,
.post_content h2[style*="font-size: 0"] .swl-fz {
  font-size: inherit !important;
}

.wpt-company-location {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 56px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.055);
}

.wpt-company-location__label {
  margin-bottom: 8px;
  color: #f3a168;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.wpt-company-location__title {
  margin: 0 0 20px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.4;
}

.wpt-company-location p:not(.wpt-company-location__title) {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
}

.wpt-company-location a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  margin-top: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.wpt-company-location a span {
  color: #f3a168;
}

.wpt-company-map {
  width: 100%;
  min-height: 310px;
  overflow: hidden;
  background: #eef0f2;
}

.wpt-company-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 310px;
  border: 0;
}

.swell-block-column > .wpt-company-map {
  margin-bottom: 0 !important;
}

.swell-block-column:has(> .wpt-company-map) {
  padding-bottom: 0 !important;
}

@media (min-width: 768px) {
  .swell-block-column:has(> .wpt-company-map) {
    display: flex;
    flex-direction: column;
    align-self: stretch;
  }

  .swell-block-column > .wpt-company-map {
    height: auto;
    min-height: 380px;
    flex: 1;
  }

  .swell-block-column > .wpt-company-map iframe {
    height: 100%;
    min-height: 380px;
    flex: none;
  }
}

/* フォームとフッターの操作領域を確保 */
.wpforms-submit,
.wpforms-container button[type="submit"] {
  min-height: 48px !important;
  padding-block: 12px !important;
}

.wpforms-field-radio li,
.wpforms-field-checkbox li {
  display: flex;
  min-height: 44px;
  align-items: center;
}

footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

@media (max-width: 767px) {
  .wpt-news-home.animated.fadeIn {
    animation-duration: var(--animate-duration, 1s) !important;
    animation-timing-function: ease !important;
  }

  .wp-hero-v1,
  .wp-hero-v1 * {
    box-sizing: border-box;
  }

  .wp-hero-v1__inner,
  .wp-hero-v1__box,
  .wp-hero-v1__title,
  .wp-hero-v1__sub,
  .wp-hero-v1__checks,
  .wp-hero-v1__actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .wp-hero-v1__title-main {
    font-size: clamp(26px, 7vw, 28px) !important;
    line-height: 1.4 !important;
  }

  .wp-hero-v1__sub {
    font-size: 15.5px !important;
    line-height: 1.75 !important;
  }

  .wp-hero-v1__checks li {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 15.5px !important;
    line-height: 1.75 !important;
  }

  .post_content .wp-hero-v1 .wp-hero-v1__button {
    width: 100% !important;
    max-width: 100%;
    min-width: 0 !important;
    padding-inline: 16px !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .wpt-news-home {
    padding: 72px 20px;
  }

  .wpt-news-home__inner {
    display: block;
  }

  .wpt-news-home__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px;
    margin-bottom: 24px;
  }

  .wpt-news-home h2 {
    font-size: 27px;
    line-height: 1.4;
  }

  .wpt-news-home__all {
    flex: 0 0 auto;
    margin-top: 0;
    font-size: 13px;
    white-space: nowrap;
  }

  .wpt-news-list__item > a {
    grid-template-columns: auto minmax(0, 1fr) 24px;
    grid-template-areas:
      "date category arrow"
      "title title arrow";
    gap: 5px 14px;
    min-height: 94px;
    padding: 18px 4px;
  }

  .wpt-news-list time {
    grid-area: date;
  }

  .wpt-news-list__category {
    grid-area: category;
  }

  .wpt-news-list__title {
    grid-area: title;
    font-size: 15.5px;
    line-height: 1.75;
  }

  .wpt-news-list__arrow {
    grid-area: arrow;
    align-self: center;
  }

  .post_content h2[style*="font-size:0"],
  .post_content h2[style*="font-size: 0"] {
    font-size: 27px !important;
    line-height: 1.4 !important;
    padding-inline: 16px !important;
  }

  .wpt-company-location {
    min-height: 280px;
    padding: 32px 26px;
  }

  .wpt-company-map,
  .wpt-company-map iframe {
    min-height: 280px;
  }

}

@media (max-width: 359px) {
  .wp-hero-v1__p {
    display: inline !important;
  }

  .wpt-news-home {
    padding-inline: 16px;
  }

  .wpt-news-home__heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .wpt-news-home__all {
    max-width: none;
    margin-top: 0;
    line-height: 1.5;
  }

  .wpt-news-list__item > a {
    gap: 5px 10px;
  }

  .post_content h2[style*="font-size:0"],
  .post_content h2[style*="font-size: 0"] {
    font-size: 26px !important;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .wpt-news-home__inner {
    display: block;
  }

  .wpt-news-home__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px;
    margin-bottom: 28px;
  }

  .wpt-news-home__all {
    margin-top: 0;
  }

  .wpt-news-list__item > a {
    grid-template-columns: 106px 118px minmax(0, 1fr) 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wpt-news-home * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Prevent desktop header reflow before the menu builder runs. */
@media (min-width: 960px) {
  #gnav .c-gnav,
  #fix_header .c-gnav {
    flex-wrap: nowrap;
  }

  #gnav .c-gnav > li,
  #fix_header .c-gnav > li {
    display: none;
  }

  #gnav .c-gnav > .menu-item-2996,
  #gnav .c-gnav > .menu-item-2997,
  #gnav .c-gnav > .menu-item-3011,
  #gnav .c-gnav > .menu-item-3006,
  #gnav .c-gnav > .menu-item-3017,
  #gnav .c-gnav > .menu-item-3007,
  #fix_header .c-gnav > .menu-item-2996,
  #fix_header .c-gnav > .menu-item-2997,
  #fix_header .c-gnav > .menu-item-3011,
  #fix_header .c-gnav > .menu-item-3006,
  #fix_header .c-gnav > .menu-item-3017,
  #fix_header .c-gnav > .menu-item-3007 {
    display: flex;
  }

  #gnav .menu-item-2996,
  #fix_header .menu-item-2996 { order: 1; }
  #gnav .menu-item-2997,
  #fix_header .menu-item-2997 { order: 2; }
  #gnav .menu-item-3011,
  #fix_header .menu-item-3011 { order: 3; }
  #gnav .menu-item-3006,
  #fix_header .menu-item-3006 { order: 4; }
  #gnav .menu-item-3017,
  #fix_header .menu-item-3017 { order: 5; }
  #gnav .menu-item-3007,
  #fix_header .menu-item-3007 { order: 6; }
}
