@import url("../common.css");

/*------------------------
会社情報（about）
Figma: Cxyc3nD4aHLpndoNGkcYcj node 1:1389
-------------------------*/

:root {
  --about-red: #ca0108;
  --about-guide-red: #960000;
}

/* ----- page-fv（userguide と同構造） ----- */
.page-fv {
  width: 95.83333333333334vw;
  max-width: 1840px;
  padding: 0;
  margin: 26px auto 20px;
  position: relative;
  overflow: hidden;
  border: solid 6px var(--color-black);
}

.page-fv__scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1840 / 350;
}

.page-fv__figure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-fv__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .15);
  pointer-events: none;
  z-index: 2;
}

.page-fv__overlay {
  width: 92vw;
  max-width: 1400px;
  margin: auto;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
  z-index: 10;
}

.page-fv__accent {
  width: 13.695652173913043vw;
  max-width: 252px;
  height: 13.423913043478262vw;
  max-height: 247px;
  margin: 0;
  position: absolute;
  left: 2.923076923076923vw;
  top: 2.5vw;
  z-index: 0;
  background: url("../../img/common/page-fv__accent.png") 0 0 no-repeat;
  background-size: cover;
}

.page-fv__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 6.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--color-white);
}

@media screen and (min-width: 751px) {
  .page-fv__title {
    -webkit-text-stroke: 4px var(--color-black);
    text-shadow: 0 2px #000, 0 6px #000, 0 10px #000;
    paint-order: stroke fill;
  }
}

@media screen and (min-width: 751px) and (max-width: 1400px) {
  .page-fv__title {
    font-size: 4.642857142857143vw;
  }
}

@media screen and (max-width: 750px) {
  .page-fv {
    width: 92vw;
    margin: 4.133333333333333vw auto 0;
    border-width: 0.8vw;
  }

  .page-fv__scene {
    aspect-ratio: 684 / 268;
    max-height: min(88vw, 480px);
  }

  .page-fv__overlay {
    padding: 0 2.933333333333333vw 0;
  }

  .page-fv__title {
    margin-top: 0.6666666666666667vw;
    font-size: 7.333333333333333vw;
    text-shadow: 0 2px #000, 0 4px #000, 0 6px #000;
    -webkit-text-stroke: 4px var(--color-black);
    paint-order: stroke fill;
  }

  .page-fv__accent {
    left: 9.2%;
    width: clamp(12rem, 30.7vw, 21.2rem);
    height: clamp(11.5rem, 30.1vw, 20.8rem);
  }
}

/* ----- anchor-nav（userguide と同型） ----- */
.anchor-nav {
  padding: 0;
  margin: 80px auto 0;
}

.anchor-nav__inner {
  width: 92vw;
  max-width: 1200px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: nowrap;
  border: 4px solid var(--color-black);
  border-top: none;
  border-bottom: none;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.anchor-nav__link {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--color-black);
  text-decoration: none;
  border-right: 4px solid var(--color-black);
  box-sizing: border-box;
  text-align: center;
}

.anchor-nav__link:last-child {
  border-right: none;
}

.anchor-nav__link::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 8px 0 8px;
  border-color: var(--color-black) transparent transparent transparent;
}

.anchor-nav__link:hover {
  opacity: 0.75;
}

/* ----- セクション見出し（Figma 55px / 強調 #ca0108） ----- */
.about-page__head {
  margin: 0 0 60px;
  text-align: center;
}

.about-page__title {
  margin: 0;
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--color-black);
}

.about-page__title-mark {
  color: var(--about-red);
}

/* ----- 会社概要：定義リスト（Figma table 踏襲） ----- */
.about-spec {
  max-width: 1000px;
  margin: 0 auto;
  border-top: 1px solid #171717;
}

.about-spec__row {
  display: grid;
  grid-template-columns: minmax(140px, 235px) 1fr;
  gap: 20px;
  margin: 0;
  padding: 24px 16px;
  border-bottom: 1px solid #171717;
}

.about-spec__term {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.875;
  letter-spacing: 0.05em;
  color: var(--color-black);
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.about-spec__desc {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.875;
  letter-spacing: 0.05em;
  font-weight: 400;
  color: var(--color-black);
}

.about-spec__desc p {
  margin: 0;
}

.text-indent_05em {
  padding-left: .5em;
  text-indent: -.5em;
}

.about-spec__desc p:last-child {
  margin-bottom: 0;
}

.about-spec__desc a {
  color: var(--color-black);
  text-decoration: none;
}

.about-spec__desc a:hover {
  opacity: 0.75;
}

/* ----- セクション：概要 ----- */
.about-page-section {
  padding: 120px 0 100px;
  background: var(--color-bg);
  position: relative;
}

.about-page-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.about-page-section--facility {
  padding: 120px 0 100px;
  background: var(--color-white);
}

.about-page-section--facility .about-page-section__inner {
  position: relative;
  z-index: 1;
}

.about-page-section--offices {
  padding: 120px 0 100px;
  background: var(--color-bg);
}

.about-page-section--offices::before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 31px;
  background: url("../../img/common/bg_checks.png") 0px 0px / 1920px repeat-x;
}

.about-page-section--message {
  padding: 120px 0 120px;
  background: #ffd200;
}

/* ----- 設備：2カラム写真 ----- */
.about-facility__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.about-facility__photos img {
  display: block;
  width: 100%;
  height: auto;
  border: 4px solid var(--color-black);
  box-sizing: border-box;
}

.about-facility__spec {
  margin-top: 48px;
}

.about-facility__spec .about-spec {
  margin-top: 0;
}

.about-office__map {
  margin: 0;
  padding: 0;
  border: 4px solid var(--color-black);
  background: var(--color-white);
  box-sizing: border-box;
  position: relative;
}

.about-office__map-link-wrap {
  padding-top: 43.5%;
  display: block;
  position: relative;
  line-height: 0;
  text-decoration: none;
}

.about-office__map-link-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.about-office__map-link-wrap img {
  display: block;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  height: auto;
}

.about-office__map-cta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 2.45rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  color: #ed0909;
  text-shadow: 0 0 3px #fff, 0 0 8px #fff;
  pointer-events: none;
}

.about-office__map--cta-only .about-office__map-link-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  width: 100%;
}

.about-office__map--cta-only .about-office__map-cta {
  position: static;
  transform: none;
  pointer-events: auto;
}

/* ----- 拠点：帯見出し（ご利用ガイドの赤帯に合わせる） ----- */
.about-office {
  margin: 0 auto 100px;
  max-width: 1000px;
}

.about-office:last-of-type {
  margin-bottom: 0;
}

.about-office__bar {
  margin: 0 auto 60px;
  padding: 8px 28px;
  background: var(--color-black);
}

.about-office__bar-title {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--color-white);
}

.about-office__figure {
  margin: 0 auto 50px;
  border: 4px solid var(--color-black);
  line-height: 0;
}

.about-office__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.about-office .about-spec {
  margin-bottom: 50px;
  border-top: none;
}

.about-office .about-spec__row:first-child {
  border-top: 1px solid #171717;
}

/* ----- 社長挨拶 ----- */
.about-message__panel {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 56px 55px;
  background: var(--color-white);
  border: 6px solid var(--color-black);
  box-sizing: border-box;
}

.about-message__text {
  max-width: 750px;
  margin: 0 auto 50px;
  font-size: 1.6rem;
  line-height: 1.875;
  letter-spacing: 0.05em;
  color: var(--color-black);
  font-weight: 400;
}

.about-message__text p {
  margin: 0 0 1em;
}

.about-message__text p:last-child {
  margin-bottom: 0;
}

.about-message__sign {
  max-width: 700px;
  margin: 0 auto;
  text-align: right;
  font-size: 1.6rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 20px;
}

.about-message__sign-role {
  display: block;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
}

.about-message__sign-name {
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
}

@media screen and (min-width: 751px) and (max-width: 1400px) {
  .about-page__title {
    font-size: 3.92857vw;
  }

  .about-office__bar-title {
    font-size: 2.33333vw;
  }
}

@media screen and (max-width: 750px) {
  .anchor-nav {
    margin-top: 10.666666666666668vw;
  }

  .anchor-nav__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: none;
    gap: 6.666666666666667vw 0;
  }

  .anchor-nav__link {
    flex: unset;
    padding: 1.866666666666667vw;
    gap: 2vw;
    font-size: 3.73333vw;
    text-align: center;
    white-space: nowrap;
    border-right: 0.5333333333333333vw solid var(--color-black);
    border-left: 0.5333333333333333vw solid var(--color-black);
  }

  .anchor-nav__link:nth-child(2n) {
    border-left: none;
  }

  .anchor-nav__link:nth-child(n + 3) {
    border-bottom: none;
  }

  .anchor-nav__link:last-child {
    border-right: 0.5333333333333333vw solid var(--color-black);
    border-left: none;
  }

  .anchor-nav__link::after {
    border-width: 1.6vw 2.1333333333333333vw 0 2.1333333333333333vw;
  }

  .about-page-section,
  .about-page-section--offices {
    padding: 14.66667vw 0 16vw;
  }

  .about-page-section--offices::before {
    content: "";
    height: 16px;
    background: url("../../img/common/bg_checks.png") 0px 0px / 960px repeat-x;

  }

  .about-page-section__inner {
    padding: 0;
  }

  .about-page-section--facility {
    padding: 14.66667vw 0 12vw;
  }

  .about-page-section--message {
    padding: 14.66667vw 0 18vw;
  }

  .about-page__head {
    margin-bottom: 8vw;
  }

  .about-page__title {
    font-size: 8vw;
  }

  .about-spec__row {
    grid-template-columns: 1fr;
    gap: 2vw;
    padding: 4vw 0;
  }

  .about-spec__term {
    font-size: 3.73333vw;
  }

  .about-spec__desc {
    font-size: 3.73333vw;
  }

  .about-facility__photos {
    gap: 3.3333333333333335vw;
  }

  .about-facility__spec {
    margin-top: 6vw;
  }

  .about-office {
    margin-bottom: 12vw;
  }

  .about-office__bar {
    padding: 2vw 4vw;
  }

  .about-office__bar-title {
    font-size: 5.06667vw;
  }

  .about-message__panel {
    padding: 6vw 4vw;
  }

  .about-message__text {
    font-size: 3.73333vw;
  }

  .about-message__sign-role {
    font-size: 4.26667vw;
  }

  .about-message__sign-name {
    font-size: 6.4vw;
  }

  .about-office__map-cta {
    font-size: min(2.45rem, 6.4vw);
  }

}