@charset "utf-8";

@media screen and (min-width: 768px) {
  .page__office-inner.l-inner {
    max-width: calc(1104px + 40px * 2);
  }
}

.page__office-head {
  padding-block: 133px 120px;
}

.page__office-head-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}

@media screen and (min-width: 768px) {
  .page__office-head-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
}

.page__office-head-title-wrapper {
  flex-shrink: 0;
}

.page__office-head-title {
  font-size: clamp(23px, 2.05vw, 28px);
  font-weight: 700;
  letter-spacing: calc(80 / 1000 * 1em);
  line-height: calc(48 / 28);
}

.page__office-head-title-row {
  display: flex;
}

.page__office-head-title--green {
  color: #007989;
}

.page__office-head-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 671px;
}

.page__office-head-text {
  font-size: 14px;
  line-height: calc(30 / 14);
}

.page__office-head-button {
  margin-top: 56px;
  text-align: center;
  display: block;
}

.page__office-head-button-link p {
  border-radius: 10px;
  background: #007989;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  padding: 18px 29px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #007989;
  transition: color 0.3s ease, background 0.3s ease;
}

.page__office-head-button-link p::after {
  content: "";
  width: 15px;
  height: 13px;
  flex-shrink: 0;
  background: url(../images/button-arrow-white.svg) no-repeat center
    center/contain;
  transition: transform 0.5s ease;
}

.page__office-head-button-link:hover {
  opacity: 1;
}

.page__office-head-button-link:hover p {
  background: var(--color-white);
  color: #007989;
}

.page__office-head-button-link:hover p::after {
  transform: translateX(4px);
  background: url(../images/button-arrow-green.svg) no-repeat center
    center/contain;
}

.page__office-head-nav {
  margin-top: 90px;
  border: 2px solid #027989;
  display: grid;
  grid-template-columns: 1fr;
  color: #027989;
}

.page__office-head-nav-item:nth-child(1),
.page__office-head-nav-item:nth-child(2),
.page__office-head-nav-item:nth-child(3) {
  border-bottom: 2px solid #027989;
}

@media screen and (min-width: 500px) {
  .page__office-head-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .page__office-head-nav-item:nth-child(3) {
    border-bottom: none;
  }
  .page__office-head-nav-item:nth-child(2),
  .page__office-head-nav-item:nth-child(4) {
    border-left: 2px solid #027989;
  }
}
@media screen and (min-width: 1000px) {
  .page__office-head-nav {
    grid-template-columns: repeat(4, 1fr);
  }
  .page__office-head-nav-item:not(:first-child) {
    border-left: 2px solid #027989;
  }

  .page__office-head-nav-item:nth-child(1),
  .page__office-head-nav-item:nth-child(2) {
    border-bottom: none;
  }
}

.page__office-head-nav-item {
  height: 94px;
  padding: 25px 56px 25px 30px;
  position: relative;
  color: #027989;
}

@media screen and (min-width: 1000px) {
  .page__office-head-nav-item {
    height: 134px;
    padding: 43px 56px 45px 30px;
  }
}

.page__office-head-nav-item::before,
.page__office-head-nav-item::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.page__office-head-nav-item::before {
  background: #027989;
  width: 20px;
  aspect-ratio: 26/26;
  right: 30px;
}

.page__office-head-nav-item::after {
  background: url(../images/down-arrow) no-repeat center center / contain;
  width: 8px;
  height: 4px;
  right: 36px;
}

@media screen and (min-width: 1000px) {
  .page__office-head-nav-item::before {
    width: 26px;
  }
  .page__office-head-nav-item::after {
    right: 39px;
  }
}

.page__office-head-nav-title-en {
  font-size: clamp(11px, 0.88vw, 12px);
  font-weight: 500;
  letter-spacing: calc(50 / 1000 * 1em);
  line-height: calc(24 / 12);
}

.page__office-head-nav-title-ja {
  margin-top: 4px;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  letter-spacing: calc(50 / 1000 * 1em);
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.page__office-head-nav-title-ja::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--color-accent); /* または任意の色 */
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.page__office-head-nav-item:hover .page__office-head-nav-title-ja::before {
  width: 100%;
}

/* ====================
swiper
====================== */
.page__office-slider {
  width: 100%;
  overflow: hidden;
}

.page__office-swiper-wrapper {
  display: flex;
  transition-timing-function: linear;
}

.page__office-slide {
  width: 100%;
  height: auto;
}

.page__office-slide-image {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.page__office-slide-image img {
  aspect-ratio: 656/444;
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

.page__office-reason {
  background: var(--color-white);
  padding-block: 107px 83px;
}

@media screen and (min-width: 768px) {
  .page__office-reason-inner.l-inner {
    max-width: calc(1109px + 40px * 2);
  }
}

.page__office-reason .page__heading-ja {
  margin-left: 20px;
}

.page__office-reason-container {
  margin-top: 23px;
}

.c8053 {
}

.page__office-reason-content {
  padding-block: 39px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media screen and (min-width: 768px) {
  .page__office-reason-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 57px;
  }
}

.page__office-reason-content:not(:last-child) {
  border-bottom: 1px solid #b7d4d6;
}

.page__office-reason-content-image {
  width: 100%;
  aspect-ratio: 432/320;
  max-width: 432px;
}

@media screen and (min-width: 768px) {
  .page__office-reason-content-image {
  }
}

.page__office-reason-content-image img {
  display: block;
  border-radius: 10px;
  aspect-ratio: 432/320;
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

@media screen and (min-width: 768px) {
  .page__office-reason-content-body {
    max-width: 618px;
    margin-top: 2px;
  }
}

.page__office-reason-content-heading {
  color: #027989;
}

.page__office-reason-content-title-en {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: calc(50 / 1000 * 1em);
  line-height: calc(22 / 12);
}

.page__office-reason-content-title-ja {
  font-size: clamp(18px, 1.62vw, 22px);
  font-weight: 600;
  letter-spacing: calc(50 / 1000 * 1em);
  line-height: calc(44 / 22);
}

.page__office-reason-content-text {
  margin-top: 25px;
  font-size: 14px;
  font-weight: 400;
  line-height: calc(30 / 14);
  color: #272a2c;
}

/* =========================
menu
============================*/
.page__office-menu {
  padding-block: 82px 112px;
  background: #f5fafa;
}

@media screen and (min-width: 768px) {
  .page__office-menu-inner.l-inner {
    max-width: calc(1109px + 40px * 2);
  }
}

.page__office-menu-container {
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

@media screen and (min-width: 768px) {
  .page__office-menu-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.page__office-menu-nav {
  background: #f5fafa;
  width: 100%;
  flex-shrink: 0;
  align-self: flex-start;
  z-index: 10;
}

@media screen and (min-width: 768px) {
  .page__office-menu-nav {
    position: sticky;
    top: 100px;
    left: 0;
    width: 38.86%;
    max-width: 431px;
  }
}

.page__office-menu-list {
  border-top: 1px solid #c6dadd;
}

.page__office-menu-item p {
  position: relative;
  padding: 15px 30px;
  font-size: clamp(14px, 1.32vw, 18px);
  font-weight: 700;
  letter-spacing: calc(80 / 1000 * 1em);
  border-bottom: 1px solid #c6dadd;
}

@media screen and (min-width: 900px) {
  .page__office-menu-item p {
    padding: 33px 40px;
  }
}

.page__office-menu-item p::before,
.page__office-menu-item p::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.page__office-menu-item p::before {
  content: "";
  left: 4px;
  width: 14px;
  aspect-ratio: 14/14;
  height: auto;
  border-radius: 50%;
}
/* 偶数 */
.page__office-menu-item:nth-child(even) p::before {
  background: #375daf;
}
/* 奇数 */
.page__office-menu-item:nth-child(odd) p::before {
  background: #007989;
}

.page__office-menu-item p::after {
  content: "View";
  right: 2px;
  padding: 3px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: calc(50 / 1000 * 1em);
  line-height: 1.2;
  color: #027989;
  background: var(--color-white);
  border: 1px solid #027989;
}

@media screen and (min-width: 768px) {
  .page__office-menu-item p::after {
    padding: 1px 2px;
    font-size: 9px;
  }
}

@media screen and (min-width: 1024px) {
  .page__office-menu-item p::after {
    padding: 1px 2px;
    font-size: 12px;
  }
}

.page__office-menu-item:hover p,
.page__office-menu-item:focus p,
.page__office-menu-item.active p {
  color: var(--color-white);
  background: #008984;
  border: 1px solid #707070;
}

.page__office-menu-item:hover p::before,
.page__office-menu-item:focus p::before,
.page__office-menu-item.active p::before {
  background: var(--color-white);
}

.page__office-menu-contents {
  margin-top: 31px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media screen and (min-width: 768px) {
  .page__office-menu-contents {
    max-width: 610px;
    gap: 55px;
  }
}

.page__office-menu-box-image {
  aspect-ratio: 610/320;
  width: 100%;
}

.page__office-menu-box-image img {
  border-radius: 10px;
  aspect-ratio: 610/320;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page__office-menu-box-text {
  margin-top: 25px;
  font-size: 14px;
  font-weight: 400;
  line-height: calc(30 / 14);
}

/* ========================
flow
========================== */
.page__office-flow {
  padding-block: 91px 100px;
  background: var(--color-white);
}

@media screen and (min-width: 768px) {
  .page__office-flow-inner.l-inner {
    max-width: calc(1106px + 40px * 2);
  }
}

.page__office-flow-container {
  margin-top: 71px;
}

.page__office-flow-boxes {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 40px;
}

@media screen and (min-width: 700px) {
  .page__office-flow-boxes {
    margin-left: 10px;
    grid-template-columns: repeat(5, 1fr);
  }
}

@media screen and (min-width: 1366px) {
  .page__office-flow-boxes {
    gap: 57px;
  }
}

.page__office-flow-box {
  position: relative;
  margin-inline: auto;
  width: 100%;
}

.page__office-flow-box:not(:last-child)::after {
  content: "";
  position: absolute;
  width: 18px;
  aspect-ratio: 18/16;
  height: auto;
  bottom: -27px;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
  background: url(../images/flow-arrow.svg) no-repeat center center/contain;
}

@media screen and (min-width: 700px) {
  .page__office-flow-box:not(:last-child)::after {
    top: 50%;
    bottom: auto;
    right: -27px;
    left: auto;
    transform: translateY(-50%) translateX(0) rotate(0);
  }
}

@media screen and (min-width: 1366px) {
  .page__office-flow-box:not(:last-child)::after {
    right: -37px;
  }
}

.page__office-flow-box:nth-child(1) .page__office-flow-box-text::before {
  content: "1";
}
.page__office-flow-box:nth-child(2) .page__office-flow-box-text::before {
  content: "2";
}
.page__office-flow-box:nth-child(3) .page__office-flow-box-text::before {
  content: "3";
}
.page__office-flow-box:nth-child(4) .page__office-flow-box-text::before {
  content: "4";
}
.page__office-flow-box:nth-child(5) .page__office-flow-box-text::before {
  content: "5";
}

.page__office-flow-box-text {
  aspect-ratio: 100/30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  font-size: clamp(12px, 2.58vw, 18px);
  font-weight: 700;
  letter-spacing: calc(100 / 1000 * 1em);
  background: #eaf5f5;
  position: relative;
}

@media screen and (min-width: 700px) {
  .page__office-flow-box-text {
    aspect-ratio: 174/174;
    font-size: clamp(10px, 1.32vw, 18px);
  }
}

.page__office-flow-box-text::before {
  content: "";
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  font-size: clamp(12px, 2.29vw, 16px);
  font-weight: 500;
  color: var(--color-white);
  width: 17%;
  aspect-ratio: 40/40;
  height: auto;
  background: #027989;
  top: -7px;
  left: -7px;
}

@media screen and (min-width: 700px) {
  .page__office-flow-box-text::before {
    width: 23%;
    font-size: clamp(12px, 1.18vw, 16px);
  }
}

.page__office-flow-text {
  margin-top: 49px;
  max-width: 934px;
  text-align: left;
  margin-inline: auto;
  font-size: 13px;
  font-weight: 400;
  line-height: calc(30 / 14);
  color: #272a2c;
}

@media screen and (min-width: 700px) {
  .page__office-flow-text {
    font-size: 14px;
  }
}

/* ====================
voice
======================= */
.page__office-voice {
  padding-block: 91px 150px;
  background: #f5fafa;
}

@media screen and (min-width: 768px) {
  .page__office-voice-inner.l-inner {
    max-width: calc(1106px + 40px * 2);
  }
}

.page__office-voice-container {
  margin-top: 63px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px 40px;
  grid-template-rows: repeat(auto-fit, auto auto);
}

@media screen and (min-width: 1000px) {
  .page__office-voice-container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
  }
}

.page__office-voice-box {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  border-radius: 0 5px 5px 0;
  border-left: 5px solid #027989;
  padding: 22px 30px 22px 25px;
  background: var(--color-white);
  /* 内部レイアウト */
  grid-template-areas:
    "header"
    "content";
  align-content: start;
  gap: 9px;
}

.page__office-voice-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page__office-voice-box-title {
  font-size: clamp(12px, 1.18vw, 16px);
  font-weight: 700;
  letter-spacing: calc(80 / 1000 * 1em);
  line-height: calc(22 / 16);
  color: #027989;
}

.page__office-voice-box-image {
  aspect-ratio: 65/65;
  min-width: 65px;
  max-width: 65px;
  flex-shrink: 0;
}

.page__office-voice-box-image img {
  aspect-ratio: 65/65;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

.page__office-voice-box-text {
  font-size: clamp(12px, 1.03vw, 14px);
  font-weight: 400;
  line-height: calc(28 / 14);
  color: #483c42;
}
