/* ==========================================================================
   CENTER official site - base styles
   ========================================================================== */

:root {
  --color-navy: #071526;
  --color-badge: #002d63;
  --color-white: #ffffff;
  --color-gray-light: #a8a8a8;
  --color-gray: #9b9b9b;
  --color-black: #111111;

  --font-jp-mincho: "Sawarabi Mincho", serif;
  --font-jp-sans: "Noto Sans JP", sans-serif;
  --font-en: "Inter", sans-serif;

  --container-width: 1280px;
  --content-max-width: 1600px;
  --container-pad: 50px;

  --header-height: 96px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-jp-sans);
  color: var(--color-black);
  line-height: 1.6;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul {
  list-style: none;
}

.arrow {
  font-family: var(--font-en);
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

/* ==========================================================================
   Shared components
   ========================================================================== */

.section-label {
  font-family: var(--font-jp-mincho);
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--color-black);
  margin-bottom: 4px;
}

.section-label--light {
  color: var(--color-white);
}

.section-label-en {
  font-family: var(--font-jp-mincho);
  font-size: 17px;
  color: var(--color-black);
  margin-bottom: 32px;
}

.section-label-en--light {
  color: var(--color-white);
}

.section-rule {
  display: block;
  width: 90px;
  height: 1px;
  background: var(--color-black);
}

.section-rule--light {
  background: rgba(255, 255, 255, 0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 224px;
  max-width: 100%;
  height: 61px;
  border: 1px solid var(--color-black);
  font-family: var(--font-jp-sans);
  font-size: 15px;
  color: var(--color-black);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline--dark {
  border-color: var(--color-black);
  color: var(--color-black);
}

.business .btn-outline,
.recruit .btn-outline,
.btn-outline--light {
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.business .btn-outline:hover,
.recruit .btn-outline:hover,
.btn-outline--light:hover {
  background: var(--color-white);
  color: var(--color-black);
}

.btn-outline--sm {
  width: auto;
  height: 45px;
  padding: 0 24px;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline--sm:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

.link-underline {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-jp-mincho);
  font-size: 12px;
  color: var(--color-white);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 22px 0;
  background: transparent;
  box-shadow: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: var(--color-navy);
  box-shadow: 0 4px 16px rgba(7, 21, 38, 0.25);
}

.site-header__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo img {
  width: 160px;
  height: auto;
}

.gnav__list {
  display: flex;
  gap: 48px;
}

.gnav__list a {
  font-family: var(--font-jp-sans);
  font-size: 15.5px;
  color: var(--color-white);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

/* ==========================================================================
   Hero (FV)
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
  box-sizing: border-box;
}

.hero__title {
  font-family: var(--font-jp-mincho);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 34.5px);
  color: var(--color-white);
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero__subtitle {
  font-family: var(--font-en);
  font-size: clamp(14px, 1.6vw, 19px);
  color: var(--color-white);
}

/* ==========================================================================
   News
   ========================================================================== */

.news {
  background: var(--color-navy);
}

.news__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  width: 100%;
}

.news__head {
  flex: 0 0 350px;
  min-width: 0;
  background: var(--color-navy);
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 540px;
}

.news__head .btn-outline {
  margin-top: 28px;
}

.news__list {
  flex: 1;
  background: var(--color-white);
  padding: 92px clamp(50px, 6vw, 120px) 92px 80px;
  display: flex;
  flex-direction: column;
}

.news__item {
  display: grid;
  grid-template-columns: 90px 100px 1fr 24px;
  align-items: center;
  gap: 16px;
  padding: 17px 0;
  max-width: 900px;
  border-bottom: 1px solid #e3e3e3;
}

.news__date {
  font-size: 15px;
  color: var(--color-black);
}

.news__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 31px;
  padding: 0 14px;
  background: var(--color-badge);
  color: var(--color-white);
  font-size: 14px;
  white-space: nowrap;
}

.news__title {
  font-size: 15px;
  color: var(--color-black);
}

.news__chevron {
  text-align: right;
  color: var(--color-black);
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  background: var(--color-white);
  padding: 130px 0;
}

.about__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  gap: 60px;
  align-items: center;
}

.about__media {
  flex: 1;
}

.about__image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__image img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
}

.about__intro {
  flex: 0 0 420px;
}

.about__heading {
  font-family: var(--font-jp-mincho);
  font-weight: 400;
  font-size: 26px;
  color: var(--color-black);
  margin: 8px 0 24px;
}

.about__desc {
  font-size: 15px;
  line-height: 2;
  color: #444;
}

@media (max-width: 1080px) {
  .about__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .about__intro {
    flex: none;
  }
}

@media (max-width: 860px) {
  .about {
    padding: 88px 0;
  }

  .about__image {
    height: 320px;
  }
}

/* ==========================================================================
   Business
   ========================================================================== */

.business {
  background: var(--color-navy);
  padding: 130px 0;
}

.business__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.business__intro {
  flex: 0 0 260px;
}

.business__desc {
  font-family: var(--font-jp-mincho);
  font-size: 17px;
  color: var(--color-white);
  margin: 24px 0 32px;
  line-height: 1.7;
}

.business__cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.business-card__image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.business-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 21, 38, 0.85) 0%, rgba(7, 21, 38, 0) 55%);
}

.business-card__title {
  position: absolute;
  left: 27px;
  bottom: 60px;
  z-index: 1;
  font-family: var(--font-jp-mincho);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--color-white);
}

.business-card {
  position: relative;
}

.business-card__desc {
  font-family: var(--font-jp-mincho);
  font-size: 17px;
  color: var(--color-white);
  margin: 24px 0 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

/* ==========================================================================
   Company
   ========================================================================== */

.company {
  background: var(--color-white);
  padding: 130px 0;
}

.company--no-top-pad {
  padding-top: 0;
}

.company__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.company__intro {
  flex: 0 0 260px;
}

.company__desc {
  font-family: var(--font-jp-mincho);
  font-size: 17px;
  color: var(--color-black);
  margin: 24px 0 32px;
  line-height: 1.7;
}

.company__media {
  position: relative;
  flex: 1;
}

.company__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-navy);
  transform: translate(24px, 24px);
}

.company__image {
  position: relative;
  height: 398px;
  overflow: hidden;
  transform: rotate(-3deg);
  box-shadow: 0 20px 45px rgba(7, 21, 38, 0.3);
}

.company__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.21);
}

.company__inner--details {
  margin-top: 90px;
  align-items: stretch;
}

.company__details {
  flex: 1 1 460px;
  display: flex;
  flex-direction: column;
}

.company__details-item {
  padding: 20px 0;
  border-top: 1px solid #e3e3e3;
}

.company__details-item:last-child {
  border-bottom: 1px solid #e3e3e3;
}

.company__details-item dt {
  font-family: var(--font-jp-sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--color-gray);
  margin-bottom: 8px;
}

.company__details-item dd {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-black);
}

.company__map {
  flex: 1;
  min-height: 340px;
}

.company__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
}

@media (max-width: 1080px) {
  .company__inner--details {
    flex-direction: column;
  }

  .company__details {
    flex: none;
  }
}

/* ==========================================================================
   Recruit banner (sits inside the dark footer block)
   ========================================================================== */

.recruit {
  background: var(--color-navy);
  padding: 110px 0;
}

.recruit__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  gap: 40px;
  align-items: center;
}

.recruit__intro {
  flex: 0 0 260px;
}

.recruit__desc {
  font-family: var(--font-jp-mincho);
  font-size: 17px;
  color: var(--color-white);
  margin: 24px 0 32px;
  line-height: 1.7;
}

.recruit__image {
  position: relative;
  flex: 1;
  height: 382px;
  overflow: hidden;
}

.recruit__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recruit__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-navy);
  padding-top: 120px;
}

.site-footer__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad) 60px;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.site-footer__logo img {
  width: 160px;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 200px));
  gap: 80px;
}

.footer-col__title {
  font-family: var(--font-jp-sans);
  font-size: 15px;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col a {
  font-size: 15px;
  color: var(--color-gray-light);
}

.site-footer__address {
  font-style: normal;
  font-size: 15px;
  color: var(--color-gray-light);
  line-height: 2.2;
  margin-top: 12px;
}

.site-footer__copyright {
  margin-top: 60px;
  text-align: center;
  font-size: 15px;
  color: var(--color-gray);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .business__cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --container-pad: 24px;
  }

  .site-header {
    padding: 16px 0;
  }

  .site-header__logo img {
    width: 130px;
  }

  .nav-toggle {
    display: flex;
  }

  .gnav {
    position: fixed;
    inset: 0;
    background: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }

  .gnav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .gnav__list {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .gnav__list a {
    font-size: 20px;
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: 480px;
  }

  .news__inner {
    flex-direction: column;
  }

  .news__head {
    flex: none;
    min-height: auto;
    align-items: flex-start;
    padding: 64px var(--container-pad);
  }

  .news__list {
    padding: 40px var(--container-pad) 56px;
  }

  .news__item {
    grid-template-columns: 84px 90px 1fr 20px;
    gap: 10px;
  }

  .news__title {
    white-space: normal;
  }

  .business,
  .company,
  .recruit {
    padding: 88px 0;
  }

  .business__inner,
  .company__inner,
  .recruit__inner {
    flex-direction: column;
    gap: 36px;
  }

  .business__intro,
  .company__intro,
  .recruit__intro {
    flex: none;
  }

  .company__media {
    max-width: 100%;
  }

  .company__media::before {
    display: none;
  }

  .company__image {
    transform: none;
    box-shadow: none;
  }

  .recruit__image {
    width: 100%;
    height: 260px;
  }

  .site-footer__nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 520px) {
  .hero__title {
    font-size: 26px;
  }

  .btn-outline {
    width: 100%;
    max-width: 260px;
  }

  .news__item {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date badge"
      "title chevron";
    row-gap: 8px;
    column-gap: 12px;
  }

  .news__date {
    grid-area: date;
  }

  .news__badge {
    grid-area: badge;
    justify-self: end;
  }

  .news__title {
    grid-area: title;
  }

  .news__chevron {
    grid-area: chevron;
    justify-self: end;
  }

  .site-footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .site-footer__nav {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Inner pages (service / news / recruit / contact / privacy / single)
   ========================================================================== */

.page-heading {
  background: var(--color-navy);
  padding: 190px 0 60px;
}

.page-heading__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.page-heading__en {
  font-family: var(--font-jp-mincho);
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
}

.page-heading__ja {
  font-family: var(--font-jp-mincho);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 34px);
  color: var(--color-white);
  margin-top: 8px;
}

.page-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 90px var(--container-pad);
}

.page-content--narrow {
  max-width: 900px;
}

/* Service list ------------------------------------------------------- */

.service-list {
  display: flex;
  flex-direction: column;
  gap: 90px;
}

.service-item {
  display: flex;
  gap: 60px;
  align-items: center;
}

.service-item:nth-child(even) {
  flex-direction: row-reverse;
}

.service-item__media {
  flex: 0 0 46%;
  height: 320px;
  overflow: hidden;
}

.service-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-item__logo {
  height: 32px;
  margin-bottom: 20px;
}

.service-item__logo img {
  height: 100%;
  width: auto;
}

.service-item__category {
  font-size: 13px;
  color: var(--color-gray);
  margin-bottom: 8px;
}

.service-item__title {
  font-family: var(--font-jp-mincho);
  font-weight: 400;
  font-size: 26px;
  margin-bottom: 20px;
}

.service-item__desc {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .service-list {
    gap: 56px;
  }

  .service-item,
  .service-item:nth-child(even) {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .service-item__media {
    flex: none;
    height: 220px;
  }
}

/* News list page ------------------------------------------------------- */

.news-page-list {
  display: flex;
  flex-direction: column;
}

.news-page-list__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid #e3e3e3;
}

.news-page-list__item a {
  display: contents;
  color: inherit;
}

.news-page-list__date {
  font-size: 15px;
  color: var(--color-gray);
}

.news-page-list__title {
  font-size: 15px;
  color: var(--color-black);
}

/* Recruit detail --------------------------------------------------------- */

.recruit-detail__lead {
  font-family: var(--font-jp-mincho);
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 60px;
}

.recruit-detail__list {
  display: flex;
  flex-direction: column;
}

.recruit-detail__item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid #e3e3e3;
}

.recruit-detail__item:last-child {
  border-bottom: 1px solid #e3e3e3;
}

.recruit-detail__item dt {
  font-family: var(--font-jp-sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-black);
}

.recruit-detail__item dd {
  font-size: 14px;
  line-height: 1.9;
  color: #444;
}

.recruit-detail__btn {
  margin-top: 60px;
  text-align: center;
}

@media (max-width: 860px) {
  .recruit-detail__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Contact form (Contact Form 7) ------------------------------------------ */

.page-content .wpcf7-form p {
  margin-bottom: 24px;
}

.page-content .wpcf7-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.page-content .wpcf7-form input[type="text"],
.page-content .wpcf7-form input[type="tel"],
.page-content .wpcf7-form input[type="email"],
.page-content .wpcf7-form select,
.page-content .wpcf7-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font-jp-sans);
  background: var(--color-white);
}

.page-content .wpcf7-form textarea {
  min-height: 160px;
  resize: vertical;
}

.page-content .wpcf7-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 224px;
  height: 61px;
  border: 1px solid var(--color-black);
  background: transparent;
  font-size: 15px;
  font-family: var(--font-jp-sans);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-content .wpcf7-form input[type="submit"]:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.contact-intro {
  font-size: 15px;
  margin-bottom: 40px;
}

/* Privacy policy ---------------------------------------------------------- */

.privacy-block {
  margin-bottom: 40px;
}

.privacy-block h2 {
  font-family: var(--font-jp-mincho);
  font-weight: 400;
  font-size: 19px;
  margin-bottom: 16px;
}

.privacy-block p,
.privacy-block li {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
}

.privacy-block ul {
  padding-left: 1.4em;
  list-style: disc;
}

.privacy-intro {
  font-size: 15px;
  margin-bottom: 50px;
}

.privacy-date {
  font-size: 14px;
  color: var(--color-gray);
  margin-top: 60px;
}

/* Single post -------------------------------------------------------------- */

.single-post__date {
  font-size: 15px;
  color: var(--color-gray);
  margin-bottom: 12px;
}

.single-post__title {
  font-family: var(--font-jp-mincho);
  font-weight: 400;
  font-size: 28px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e3e3e3;
}

.single-post__content {
  font-size: 15px;
  line-height: 2;
  color: #333;
}

.single-post__content p {
  margin-bottom: 1.6em;
}

.single-post__content img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal--delay {
  transition-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
