/*
Theme Name: Unifu WP
Description: Union Future Centerの公式サイト用クラシックテーマ。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: unifu-wp
*/
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  color: #182c27;
  background: #fffefa url('images/imgVector.svg') center top/100% auto no-repeat;
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
}

h2 {
  font-size: 39px;
  line-height: 1.44;
  letter-spacing: 0;
}

p {
  line-height: 1.65;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #246f59;
  outline-offset: 6px;
}

a:hover,
button:hover {
  filter: brightness(.93);
}

.wrap {
  width: calc(100% - 210px);
  max-width: 1230px;
  margin-inline: auto;
}

.header {
  height: 80px;
  display: flex;
  align-items: center;
  padding-top: 15px;
  background: #fffefa;
}

.brand {
  flex-shrink: 0;
  line-height: 1.4;
  white-space: nowrap;
}

.brand strong {
  font-size: 19px;
}

.brand span {
  font-size: 11px;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 100px;
  font-size: 12px;
  font-weight: 700;
}

.button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 227px;
  min-height: 47px;
  padding: 10px 24px;
  background-color: transparent;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: white;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transition: filter .2s, transform .2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button span {
  font-size: 17px;
  font-weight: 400;
}

.header .header-contact {
  width: 130px;
  min-height: 38px;
  justify-content: center;
  font-size: 12px;
  padding: 9px;
}

.header-contact span {
  display: none;
}

.menu-toggle {
  display: none;
}

.hero {
  width: calc(100% - 180px);
  max-width: 1260px;
  height: 603px;
  display: grid;
  grid-template-columns: 1fr 564px;
  gap: 77px;
  padding-top: 12px;
}

.hero-copy {
  padding-top: 80px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 67px;
  line-height: 1.45;
  white-space: nowrap;
  letter-spacing: 0;
}

.hero-copy>p {
  font-size: 17px;
  line-height: 26px;
  max-width: 533px;
  margin-top: 23px;
}

.hero-copy>.button {
  margin-top: 22px;
}

.art {
  position: relative;
  min-width: 0;
  overflow: visible;
}

.art-canvas {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
  transform: scale(var(--art-scale, 1));
  font-family: inherit;
}

.art-canvas img {
  display: block;
  max-width: none;
}

.art-canvas [data-container] {
  container-type: size;
}

.art-canvas p {
  margin: 0;
}

.news {
  position: relative;
  padding-top: 112px;
  min-height: 342px;
  background: url('images/imgVector7.svg') center bottom/100% 230px no-repeat;
}

.news-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 115.315px;
}

.news-inner {
  min-height: 230px;
  display: grid;
  grid-template-columns: 330px 1fr 185px;
  align-items: start;
  padding-top: 23px;
  gap: 73px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: #246f59;
  display: flex;
  align-items: center;
  gap: 13px;
  line-height: 20px;
}

.eyebrow img {
  flex: none;
}

.news h2 {
  font-size: 30px;
  margin-top: 26px;
}

.news-entry {
  display: flex;
  align-items: center;
  gap: 34px;
  border: 0;
  background: none;
  text-align: left;
  padding: 40px 0 0;
  white-space: nowrap;
  font-size: 14px;
}

.news-entry strong {
  font-size: 15px;
  margin-left: 18px;
}

.star {
  color: #dea43a;
  font-size: 17px;
}

.outline {
  margin-top: 33px;
  background-image: url('images/imgVector10.svg');
  color: #182c27;
  width: 185px;
  min-height: 43px;
  justify-content: center;
  font-size: 14px;
  padding: 10px;
}

.worries {
  padding-top: 90px;
  min-height: 685px;
}

.worries h2 {
  margin-top: 29px;
}

.worries>p:not(.eyebrow) {
  margin-top: 10px;
}

.worry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 9px;
  align-items: start;
}

.worry-grid>.art:nth-child(odd) {
  margin-top: 55px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 528px;
  align-items: center;
  gap: 100px;
}

.split h2 {
  margin-top: 51px;
  white-space: nowrap;
}

.split>div>p:not(.eyebrow) {
  font-size: 17px;
  line-height: 26px;
  margin-top: 33px;
}

.union {
  padding: 100px 0px;
}

.union .art {
  align-self: center;
}

.leader {
  height: 620px;
  background: url('images/imgVector23.svg') center/100% 100% no-repeat;
}

.leader .split {
  height: 100%;
  grid-template-columns: 1fr 503px;
  gap: 150px;
}

.leader h2 {
  margin-top: 62px;
}

.leader .split>div>p:not(.eyebrow) {
  margin-top: 42px;
}

.services {
  padding:100px 0px;
}

.services>h2 {
  font-size: 40px;
  margin-top: 22px;
}

.services>p:not(.eyebrow) {
  margin-top: 16px;
}

.service-list {
  margin-top: 70px;
}

.service {
  display: grid;
  grid-template-columns: 397px minmax(0, 1fr);
  gap: 136px;
  align-items: center;
  min-height: 470px;
}

.service .art {
  max-width: 397px;
}

.service-copy {
  padding-bottom: 16px;
}

.service-name {
  font-size: 18px;
  font-weight: 700;
  color: #247a61;
  line-height: 26px;
}

.service h3 {
  font-size: 27px;
  line-height: 39px;
  margin-top: 18px;
  white-space: nowrap;
}

.service-description {
  font-size: 16px;
  color: #617068;
  font-weight: 700;
  line-height: 23px;
}

.service h4 {
  font-size: 13px;
  color: #176a46;
  margin-top: 39px;
}

.service ul {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
  color: #617068;
  font-size: 16px;
  font-weight: 700;
  line-height: 23px;
}

.service li::before {
  content: '●';
}

.community {
  padding: 100px 32px;
  background: url('images/imgVector33.svg') center/100% 100% no-repeat;
}

.community .split {
  grid-template-columns: 1fr 574px;
  gap: 100px;
}

.community h2 {
  font-size: 38px;
  margin-top: 32px;
}

.community .split>div>p:not(.eyebrow) {
  line-height: 36px;
  margin-top: 18px;
}

.community .art {
  align-self: start;
  margin-top: 52px;
}

.club {
  padding: 100px 32px;
  background: url('images/imgVector47.svg') center/100% 100% no-repeat;
  color: #fff;
}

.club .split {
  height: 100%;
  grid-template-columns: 1fr 594px;
  gap: 54px;
  align-items: start;
}

.club h2 {
  margin-top: 55px;
  line-height: 1.54;
}

.club .split>div>p:not(.eyebrow) {
  font-size: 16px;
  line-height: 33px;
  margin-top: 28px;
}

.club-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 52px;
  row-gap: 52px;
  list-style: none;
  padding: 0;
  margin: -13px 0 0;
}

.club-grid li {
  text-align: center;
  min-width: 0;
}

.club-grid .art {
  width: 145px;
  margin: auto;
}

.club-grid li>p {
  font-size: 12px;
  white-space: nowrap;
  line-height: 18px;
  margin-top: 6px;
}

.philosophy {
  position: relative;
  text-align: center;
  padding: 100px 32px;
  background: url('images/imgVector60.svg') center/100% 100% no-repeat;
}

.philosophy>.eyebrow {
  justify-content: center;
}

.philosophy h2 {
  font-size: 47px;
  line-height: 1.49;
  margin-top: 31px;
}

.philosophy-button {
  background-image: url('images/imgVector61.svg');
  width: 220px;
  margin-top: 22px;
  padding-left: 40px;
  padding-right: 11px;
}

.philosophy>p:not(.eyebrow) {
  font-size: 16px;
  line-height: 32px;
  margin-top: 36px;
}

.quote {
  position: absolute;
  font-size: 110px;
  line-height: 1.2;
  font-weight: 400;
  color: #6592a5;
}

.quote-open {
  top: 54px;
  left: 9.86%;
}

.quote-close {
  bottom: 83px;
  right: 8.5%;
}

.contact {
  height: 455px;
  padding-top: 101px;
  background: url('images/imgVector62.svg') center/100% 100% no-repeat;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 45px;
  align-items: start;
  margin-top: 40px;
}

.contact h2 {
  font-size: 34px;
  white-space: nowrap;
}

.contact-row p {
  font-size: 15px;
  line-height: 26px;
  margin-top: 16px;
}

.contact-button {
  width: 205px;
  flex-shrink: 0;
  margin-top: 14px;
  background-image: url('images/imgVector63.svg');
  padding-left: 40px;
  padding-right: 11px;
}

footer {
  height: 144px;
  position: relative;
  background: url('images/imgVector64.svg') center/100% 100% no-repeat;
  color: white;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-top: 39px;
}

footer strong {
  font-size: 16px;
}

footer p {
  font-size: 11px;
  color: #b7c4bd;
  margin-top: 12px;
}

footer small {
  font-size: 10px;
  color: #86998e;
  margin-bottom: 3px;
}

.back-top {
  position: absolute;
  right: 0;
  top: 0;
  display: grid;
  place-items: center;
  background: #f99332;
  width: 50px;
  height: 50px;
}

.back-top img {
  transform: rotate(90deg);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  background: white;
  padding: 12px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

@media(min-width:901px) {
  .header {
    justify-content: space-between;
    gap: 32px;
    padding: 15px max(6.25%, calc((100% - 1260px)/2)) 0;
  }

  .header nav {
    margin-left: auto;
    justify-content: flex-end;
    gap: clamp(28px, 5vw, 72px);
    flex-shrink: 0;
  }
}

@media(min-width:901px) and (max-width:1350px) {
  .wrap {
    width: 86%;
  }

  .hero {
    width: 87.5%;
    grid-template-columns: 1fr 43%;
    gap: 4%;
    height: auto;
    min-height: 570px;
  }

  .hero h1 {
    font-size: clamp(42px, 4.65vw, 63px);
  }

  .hero-copy {
    padding-top: 65px;
  }

  .hero-copy>p {
    font-size: 15px;
  }

  .split,
  .leader .split,
  .community .split {
    grid-template-columns: 1fr 43%;
    gap: 6%;
  }

  .split h2 {
    font-size: clamp(26px, 2.71vw, 37px);
  }

  .service {
    grid-template-columns: 32% 1fr;
    gap: 11%;
  }

  .service h3 {
    font-size: clamp(20px, 1.875vw, 25px);
    white-space: normal;
  }

  .service-description,
  .service ul {
    font-size: 14px;
  }

  .club .split {
    grid-template-columns: 1fr 48%;
    gap: 5%;
  }

  .club-grid {
    column-gap: 15px;
  }

  .club-grid .art {
    max-width: 100%;
  }

  .club-grid li>p {
    font-size: 10px;
  }

  .contact h2 {
    font-size: clamp(23px, 2.36vw, 32px);
  }

  .news-inner {
    grid-template-columns: 25% 1fr 185px;
    gap: 30px;
  }

  .news-entry {
    gap: 20px;
  }

  .news-entry strong {
    margin-left: 0;
  }

  .hero>.art {
    margin-top: 20px;
  }

  .service {
    min-height: 470px;
  }
}

@media(max-width:900px) {

  .wrap,
  .hero {
    width: calc(100% - 48px);
  }

  h2 {
    font-size: 28px;
  }

  .header {
    height: 86px;
    padding: 16px 24px;
    justify-content: space-between;
    position: relative;
    z-index: 10;
  }


  .brand strong {
    font-size: 16px;
  }

  .brand span {
    font-size: 10px;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: 0;
    font-size: 11px;
    font-weight: 700;
    padding: 12px 0 12px 12px;
  }

  .menu-toggle span {
    font-size: 18px;
    margin-left: 8px;
  }

  .header nav {
    display: none;
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    background: #fffefa;
    padding: 24px;
    box-shadow: 0 12px 16px #182c2710;
    gap: 25px;
    flex-wrap: wrap;
  }

  .header nav.is-open {
    display: flex;
  }

  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    padding: 44px 0 40px;
    gap: 28px;
  }

  .hero-copy {
    padding: 0; 
  }

  .hero h1 {
    font-size: clamp(31px, 6vw, 52px);
    white-space: normal;
    line-height: 1.5;
  }

  .hero-copy>p {
    font-size: 15px;
    line-height: 1.9;
    margin-top: 22px;
    max-width: 620px;
  }

  .hero-copy>.button {
    margin-top: 24px;
  }

  .hero>.art {
    width: min(100%, 480px);
    align-self: center;
  }

  .news {
    min-height: 0;
    padding-top: 55px;
    background-size: 100% calc(100% - 54px);
  }

  .news-wave {
    height: 56px;
  }

  .news-inner {
    display: flex;
    flex-wrap: wrap;
    padding: 22px 0 34px;
    min-height: 0;
    gap: 22px;
    align-items: center;
  }

  .news-inner>div {
    width: 100%;
  }

  .news h2 {
    margin-top: 13px;
    font-size: 27px;
  }

  .news-entry {
    padding: 0;
    gap: 17px;
    font-size: 12px;
  }

  .news-entry strong {
    margin-left: 0;
    font-size: 14px;
  }

  .outline {
    margin-top: 0;
    margin-left: auto;
    width: 160px;
    font-size: 12px;
  }

  .worries {
    padding: 64px 0 40px;
    min-height: 0;
  }

  .worries h2 {
    margin-top: 22px;
    font-size: 27px;
  }

  .worries>p:not(.eyebrow) {
    font-size: 14px;
  }

  .worry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 6px;
    margin-top: 30px;
  }

  .worry-grid>.art:nth-child(odd) {
    margin-top: 24px;
  }

  .split,
  .leader .split,
  .community .split {
    display: flex;
    flex-direction: column;
    gap: 35px;
    align-items: stretch;
  }

  .split h2 {
    margin-top: 25px;
    font-size: clamp(23px, 3.8vw, 32px);
    white-space: normal;
  }

  .split>div>p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.9;
    margin-top: 24px;
  }

  .split>.art {
    width: min(100%, 500px);
    margin: 0 auto;
  }

  .union {
    height: auto;
    padding: 45px 0 65px;
  }

  .leader {
    height: auto;
    padding: 65px 0;
  }

  .leader .split>div>p:not(.eyebrow) {
    margin-top: 24px;
  }

  .services {
    padding-top: 64px;
    padding-bottom: 64px;
    min-height: 0;
  }

  .services>h2 {
    font-size: 27px;
    margin-top: 23px;
  }

  .services>p:not(.eyebrow) {
    font-size: 14px;
  }

  .service-list {
    margin-top: 45px;
  }

  .service {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-height: 0;
    margin-top: 65px;
  }

  .service:first-child {
    margin-top: 0;
  }

  .service>.art {
    width: min(85%, 360px);
  }

  .service-copy {
    width: 100%;
    padding: 0;
  }

  .service-name {
    font-size: 16px;
  }

  .service h3 {
    font-size: 23px;
    line-height: 1.6;
    white-space: normal;
    margin-top: 12px;
  }

  .service-description {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.8;
  }

  .service h4 {
    margin-top: 25px;
  }

  .service ul {
    font-size: 14px;
    line-height: 1.9;
    margin-top: 12px;
  }

  .service li {
    padding-left: 1em;
    text-indent: -1em;
  }

  .community {
    height: auto;
    padding: 65px 0;
  }

  .community h2 {
    font-size: 27px;
  }

  .community .split>div>p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.9;
  }

  .community .art {
    width: 100%;
    max-width: 574px;
  }

  .club {
    height: auto;
    padding: 65px 0;
  }

  .club .split {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 45px;
  }

  .club h2 {
    font-size: 30px;
    margin-top: 25px;
  }

  .club .split>div>p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.9;
    margin-top: 23px;
  }

  .club-grid {
    margin: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 28px;
    width: 100%;
  }

  .club-grid .art {
    width: 100%;
    max-width: 145px;
  }

  .club-grid li>p {
    white-space: normal;
    font-size: 11px;
    line-height: 1.7;
  }

  .philosophy {
    height: auto;
    padding: 65px 24px ;
  }

  .philosophy h2 {
    font-size: clamp(25px, 4.4vw, 37px);
    line-height: 1.65;
    margin-top: 28px;
  }

  .philosophy>p:not(.eyebrow) {
    font-size: 14px;
    line-height: 2;
    margin-top: 30px;
  }

  .quote {
    font-size: 70px;
  }

  .quote-open {
    left: 12px;
    top: 35px;
  }

  .quote-close {
    right: 12px;
    bottom: 15px;
  }

  .contact {
    height: auto;
    padding: 64px 0;
  }

  .contact-row {
    flex-direction: column;
    gap: 24px;
    margin-top: 26px;
  }

  .contact h2 {
    font-size: 27px;
    white-space: normal;
  }

  .contact-row p {
    font-size: 14px;
    line-height: 1.9;
  }

  .contact-button {
    margin: 0;
  }

  .footer-inner {
    padding-top: 38px;
  }

  footer strong {
    font-size: 13px;
  }

  footer small {
    font-size: 9px;
  }


}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Desktop dimensions follow the 1440 */
@media(min-width:1351px) {
  .hero-copy {
    padding-top: 92px;
  }
}

@media(min-width:901px) {
  .services {
    padding-bottom: 129px;
  }

  .services>h2 {
    line-height: 1.2;
  }

  .service-list {
    margin-top: 35px;
  }
}

/* News: centered heading above a constrained article / archive row. */
.worry-grid .art-canvas p {
  white-space: nowrap;
  overflow-wrap: normal;
  left: 0 !important;
  width: 100% !important;
  height: auto !important;
}

.worry-grid :is([data-node-id="28:361"], [data-node-id="28:367"], [data-node-id="28:373"], [data-node-id="28:379"]) {
  font-size: 24px !important;
}

.worry-grid :is([data-node-id="28:362"], [data-node-id="28:368"], [data-node-id="28:374"], [data-node-id="28:380"]) {
  font-size: 16px !important;
}

@media(max-width:540px) {
  .worry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    gap: 18px 8px;
  }

  .worry-grid>.art:nth-child(odd) {
    margin-top: 0;
  }

  .worry-grid .art-canvas p {
    white-space: normal;
    overflow-wrap: anywhere !important;
    left: 7% !important;
    width: 86% !important;
  }

  .worry-grid :is([data-node-id="28:361"], [data-node-id="28:367"], [data-node-id="28:373"], [data-node-id="28:379"]) {
    top: 24% !important;
    height: 32% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(15px / var(--art-scale, 1)) !important;
    line-height: 1.4 !important;
  }

  .worry-grid :is([data-node-id="28:362"], [data-node-id="28:368"], [data-node-id="28:374"], [data-node-id="28:380"]) {
    top: 58% !important;
    font-size: calc(12px / var(--art-scale, 1)) !important;
    line-height: 1.5 !important;
  }
}

.news {
  background-size: 100% calc(100% - 112px)
}

.news .news-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: calc(100% - 48px);
  max-width: 900px;
  gap: 28px;
  padding: 20px 0 40px;
}

.news-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  white-space: nowrap;
}

.news-heading .eyebrow {
  justify-content: center;
}

.news-heading h2 {
  margin-top: 0;
}

.news-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.news .news-entry {
  padding: 0;
  min-height: 44px;
}

.news .outline {
  margin: 0;
  flex-shrink: 0;
  width: 185px;
  gap: 8px;
}

@media(max-width:900px) {
  .news {
    background-size: 100% calc(100% - 54px);
  }
}

@media(max-width:540px) {
  .news-row {
    flex-wrap: wrap;
    gap: 18px;
  }

  .news .outline {
    margin-left: auto;
  }

  .news .news-entry {
    gap: 14px;
  }
}