/* ABOUT US page only: shared components/animations are defined in common.css. */

/* ABOUT US 導入 */
.about-intro {
  padding: 92px 40px 108px;
}

.about-intro__inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.about-intro__lead {
  margin: 0;
  color: var(--color-text);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: .01em;
  text-align: center;
}

.about-intro__lead span {
  color: var(--color-primary);
}

.about-intro__grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

.about-intro-card {
  min-height: 280px;
  padding: 34px 24px 30px;
  border-radius: 20px;
  background: #f4fbfd;
  text-align: center;
}

.about-intro-card__icon {
  width: auto;
  height: 76px;
  max-width: 104px;
  margin: 0 auto 22px;
  display: block;
  object-fit: contain;
}

.about-intro-card__title {
  margin: 0 0 14px;
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

.about-intro-card__text {
  margin: 0;
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.8;
  text-align: left;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .about-intro {
    padding: 72px 32px 88px;
  }

  .about-intro__lead {
    font-size: 1.75rem;
  }

  .about-intro__grid {
    margin-top: 42px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .about-intro-card {
    min-height: 250px;
    padding: 30px 24px 28px;
  }
}

@media (max-width: 767px) {
  .about-intro {
    padding: 54px 20px 68px;
  }

  .about-intro__lead {
    font-size: 1.5rem;
    text-align: left;
  }

  .about-intro__grid {
    margin-top: 34px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .about-intro-card {
    min-height: 0;
    padding: 24px 16px 22px;
    border-radius: 16px;
  }

  .about-intro-card__icon {
    height: 58px;
    max-width: 82px;
    margin-bottom: 16px;
  }

  .about-intro-card__title {
    margin-bottom: 10px;
  }

  .about-intro-card__text {
    line-height: 1.7;
  }
}

@media (max-width: 420px) {
  .about-intro__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-intro-card {
    padding-inline: 20px;
  }
}

/* PHILOSOPHY */
.philosophy {
  padding: 84px 40px 118px;
  background: #f7f7f7;
}

.philosophy__inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.section-heading__en {
  margin: 0;
  width: fit-content;
  color: var(--color-primary);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .02em;
}

.section-heading__ja {
  margin: 4px 0 0;
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
}

.philosophy__lead {
  margin-top: 34px;
  text-align: center;
}

.philosophy__catch {
  margin: 0;
  font-family: "Zen Old Mincho", "Yu Mincho", serif;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
}

.philosophy__intro {
  margin: 18px auto 0;
  max-width: 980px;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.9;
}

.philosophy-story {
  margin-top: 66px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 54px;
  align-items: start;
}

.philosophy-story--recovery {
  margin-top: 58px;
  grid-template-columns: .96fr 1.04fr;
  align-items: start;
}

.philosophy-story__media,
.philosophy-story__submedia,
.philosophy-now__media {
  margin: 0;
}

.philosophy-story__media img,
.philosophy-story__submedia img,
.philosophy-now__media img {
  width: 100%;
  height: auto;
}

.philosophy-story__content,
.philosophy-now__content {
  position: relative;
}

.philosophy-story__title {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.45;
}

.philosophy-story__text {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.95;
}

.philosophy-story__text p {
  margin: 0 0 10px;
}

.philosophy-story__text strong {
  font-weight: 700;
}

.philosophy-story__ghost {
  position: absolute;
  z-index: 0;
  top: -24px;
  right: 0;
  margin: 0;
  color: #e0e0e0;
  font-family: "Zen Old Mincho", "Yu Mincho", serif;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.philosophy-story__submedia {
  width: 64%;
  margin: 32px auto 0;
}

.philosophy-story__content--recovery .philosophy-story__ghost {
  top: -4px;
  right: 4px;
}

.philosophy-now {
  margin-top: 72px;
}

.philosophy-now__content {
  padding-top: 28px;
}

.philosophy-now__content .philosophy-story__ghost {
  top: 22px;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .philosophy {
    padding: 72px 32px 92px;
  }

  .section-heading__en {
    font-size: 2.1875rem;
  }

  .section-heading__ja {
    font-size: 1.1875rem;
  }

  .philosophy__lead {
    margin-top: 28px;
  }

  .philosophy__catch {
    font-size: 2.3125rem;
  }

  .philosophy__intro {
    font-size: 1.1875rem;
  }

  .philosophy-story {
    margin-top: 54px;
    gap: 34px;
  }

  .philosophy-story__title {
    font-size: 1.8125rem;
  }

  .philosophy-story__ghost {
    top: -14px;
    font-size: 4rem;
  }

  .philosophy-story__submedia {
    width: 72%;
    margin-top: 24px;
  }

  .philosophy-now {
    margin-top: 58px;
  }
}

@media (max-width: 767px) {
  .philosophy {
    padding: 58px 20px 72px;
  }

  .section-heading__en {
    font-size: 2.0625rem;
  }

  .section-heading__ja {
    font-size: 1.0625rem;
  }

  .philosophy__lead {
    margin-top: 26px;
    text-align: left;
  }

  .philosophy__catch {
    font-size: 1.9375rem;
    line-height: 1.65;
  }

  .philosophy__intro {
    margin-top: 14px;
    font-size: 1.125rem;
    line-height: 1.8;
  }

  .philosophy-story,
  .philosophy-story--recovery {
    margin-top: 44px;
    display: flex;
    flex-direction: column;
    gap: 26px;
  }

  .philosophy-story--recovery .philosophy-story__media {
    order: 1;
  }

  .philosophy-story--recovery .philosophy-story__content {
    order: 2;
  }

  .philosophy-story__title {
    margin-bottom: 14px;
    font-size: 1.5625rem;
  }

  .philosophy-story__text {
    line-height: 1.85;
  }

  .philosophy-story__ghost {
    top: -6px;
    font-size: 3.3125rem;
  }

  .philosophy-story__content--year {
    padding-top: 12px;
  }

  .philosophy-story__submedia {
    width: 74%;
    margin-top: 22px;
  }

  .philosophy-now {
    margin-top: 46px;
  }

  .philosophy-now__content {
    padding-top: 22px;
  }

  .philosophy-now__content .philosophy-story__ghost {
    top: 12px;
  }
}

/* MESSAGE / 代表者挨拶 */
.message {
  position: relative;
  padding: 84px 40px 200px;
  background-color: var(--color-white);
  background-image: url("../img/aboutus/message-bg.webp");
  background-repeat: no-repeat;
  background-position: center calc(100% - 10px);
  background-size: 100% auto;
}

.message__inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.message__lead {
  margin: 30px 0 0;
  text-align: center;
  font-family: "Zen Old Mincho", "Yu Mincho", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
}

.message__layout {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 70px;
  align-items: start;
}

.message__copy {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.95;
}

.message__copy p {
  margin: 0 0 1.5em;
}

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

.message__copy ul {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
  list-style: disc;
}

.message__copy li {
  margin: 0;
}

.message__copy strong {
  font-weight: 700;
}

.message__portrait {
  width: 300px;
  max-width: 100%;
  margin: 0;
  justify-self: end;
  text-align: center;
}

.message__portrait img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}

.message__portrait figcaption {
  margin-top: 16px;
}

.message__portrait figcaption span {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
}

.message__portrait figcaption strong {
  display: block;
  margin-top: 4px;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.45;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .message {
    padding: 72px 32px 160px;
  }

  .message__lead {
    margin-top: 26px;
  }

  .message__layout {
    margin-top: 40px;
    gap: 44px;
  }
}

@media (max-width: 767px) {
  .message {
    padding: 58px 20px 120px;
    background-size: auto 210px;
  }

  .message__lead {
    margin-top: 24px;
    text-align: left;
  }

  .message__layout {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .message__copy {
    line-height: 1.85;
    order: 1;
  }

  .message__portrait {
    width: min(100%, 300px);
    margin: 0 auto;
    order: 2;
  }
}

/* COMPANY / 会社概要 */
.company {
  --company-outer-gap: max(2.5rem, calc((100vw - var(--content-width)) / 2));
  position: relative;
  padding: 5.25rem 0 6.25rem;
  background-color: var(--color-white);
  background-image: url("../img/aboutus/company-bg.webp");
  background-repeat: no-repeat;
  background-position: center calc(100% - 10px);
  background-size: 100% auto;
  overflow: hidden;
}

.company__inner {
  width: min(calc(100% - 5rem), var(--content-width));
  margin: 0 auto;
}

.company__layout {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 4rem;
  align-items: start;
}

.company__layout > .section-heading {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.company__table-wrap {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
}

.company__media {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  width: calc(100% + var(--company-outer-gap));
  margin: 4.5rem 0 0 calc(var(--company-outer-gap) * -1);
}

.company__media img {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center;
  border-radius: 0 1.5rem 1.5rem 0;
}

.company-table,
.company .tablepress {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
}

.company-table tbody,
.company-table tr,
.company-table td,
.company .tablepress tbody,
.company .tablepress tr,
.company .tablepress td {
  border: 0;
  background: transparent;
}

.company-table td,
.company .tablepress td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid #999999;
  vertical-align: top;
  font-weight: 400;
  text-align: left;
}

.company-table td:first-child,
.company .tablepress td:first-child {
  width: 9.5rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .company {
    --company-outer-gap: 2rem;
    padding: 4.5rem 0 6.25rem;
  }

  .company__inner {
    width: min(calc(100% - 4rem), var(--content-width));
  }

  .company__layout {
    grid-template-columns: 13rem minmax(0, 1fr);
    column-gap: 2.5rem;
  }

  .company__media {
    margin-top: 3.5rem;
  }

  .company__media img {
    height: 300px;
  }

  .company-table,
  .company .tablepress {
    font-size: 0.9375rem;
  }

  .company-table td:first-child,
.company .tablepress td:first-child {
    width: 8rem;
  }
}

@media (max-width: 767px) {
  .company {
    padding: 3.625rem 0 6.25rem;
    background-size: auto 12rem;
  }

  .company__inner {
    width: calc(100% - 2.5rem);
  }

  .company__layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .company__layout > .section-heading {
    order: 1;
    width: 100%;
  }

  .company__table-wrap {
    order: 2;
    width: 100%;
    overflow-x: auto;
  }

  .company__media {
    order: 3;
    width: calc(100% + 1.25rem);
    margin: 0 0 0 -1.25rem;
  }

  .company__media img {
    height: auto;
    object-fit: initial;
    border-radius: 0 1.25rem 1.25rem 0;
  }

  .company-table,
  .company .tablepress {
    font-size: 0.9375rem;
  }

  .company-table td,
.company .tablepress td {
    padding: 0.875rem 0.5rem;
  }

  .company-table td:first-child,
.company .tablepress td:first-child {
    width: 7rem;
    min-width: 7rem;
  }
}

/* HISTORY / 沿革 */
.history {
  position: relative;
  padding: 6.25rem 0;
  background-image: url("../img/aboutus/history-bg.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.history__inner {
  width: min(calc(100% - 5rem), var(--content-width));
  margin: 0 auto;
}

.history__layout {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: 4rem;
  align-items: stretch;
}

.history__side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.history__side > .section-heading {
  margin: 0;
}

.history__logo {
  width: 7.5rem;
  margin: 3rem 0 0;
}

.history__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.history__table-wrap {
  min-width: 0;
}

.history-table,
.history .tablepress {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
}

.history-table tbody,
.history-table tr,
.history-table td,
.history .tablepress tbody,
.history .tablepress tr,
.history .tablepress td {
  border: 0;
  background: transparent;
}

.history-table td,
.history .tablepress td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid #999999;
  vertical-align: top;
  font-weight: 400;
  text-align: left;
}

.history-table td:first-child,
.history .tablepress td:first-child {
  width: 10.5rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .history {
    padding: 5rem 0;
  }

  .history__inner {
    width: min(calc(100% - 4rem), var(--content-width));
  }

  .history__layout {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 2.5rem;
  }

  .history__logo {
    width: 6.5rem;
  }

  .history-table,
  .history .tablepress {
    font-size: 0.9375rem;
  }

  .history-table td:first-child,
.history .tablepress td:first-child {
    width: 9rem;
  }
}

@media (max-width: 767px) {
  .history {
    padding: 4rem 0;
    background-position: center bottom;
  }

  .history__inner {
    width: calc(100% - 2.5rem);
  }

  .history__layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .history__side {
    display: contents;
  }

  .history__side > .section-heading {
    order: 1;
  }

  .history__table-wrap {
    order: 2;
    width: 100%;
    overflow-x: auto;
  }

  .history__logo {
    order: 3;
    width: 5.5rem;
    margin: 0 auto;
  }

  .history-table,
  .history .tablepress {
    font-size: 0.9375rem;
  }

  .history-table td,
.history .tablepress td {
    padding: 0.875rem 0.5rem;
  }

  .history-table td:first-child,
.history .tablepress td:first-child {
    width: 7.5rem;
    min-width: 7.5rem;
  }
}

/* PAMPHLET / ACCESS */
.pamphlet-access {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.pamphlet-access__pamphlet,
.pamphlet-access__access {
  min-width: 0;
  padding: 5rem 0 5.5rem;
}

.pamphlet-access__pamphlet {
  background: #8dc21f;
}

.pamphlet-access__access {
  background: #f5f5f5;
}

/* 背景は画面幅いっぱいに2分割し、このセクションのみ内容は1200px基準に収める */
.pamphlet-access__pamphlet-inner,
.pamphlet-access__access-inner {
  box-sizing: border-box;
  width: min(100%, 37.5rem);
}

.pamphlet-access__pamphlet-inner {
  margin-left: auto;
  padding-right: 2.1875rem;
  padding-left: 2.1875rem;
}

.pamphlet-access__access-inner {
  margin-right: auto;
  padding-right: 2.1875rem;
  padding-left: 4.375rem;
}

.pamphlet-access__pamphlet .section-heading__en {
  color: var(--color-white);
}

.pamphlet-access__pamphlet .section-heading__ja {
  color: var(--color-text);
}

.pamphlet-access__pamphlet .heading-reveal::after {
  background: #8dc21f;
}

.pamphlet-access__ebook {
  display: block;
  width: min(100%, 21rem);
  margin: 2.5rem auto 2rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.pamphlet-access__ebook:hover,
.pamphlet-access__ebook:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgb(0 0 0 / 18%);
}

.pamphlet-access__ebook img {
  display: block;
  width: 100%;
  height: auto;
}

/* 共通 .section-link に対するABOUT USページ固有の配置調整 */
.section-link {
  display: flex;
  width: min(100%, 15.625rem);
  margin-top: 2rem;
}

.pamphlet-access__pamphlet .section-link {
  margin-right: auto;
  margin-left: auto;
}

.pamphlet-access__map {
  margin-top: 2.5rem;
  overflow: hidden;
}

.pamphlet-access__map iframe {
  display: block;
  width: 100%;
  height: 23rem;
  border: 0;
}

.pamphlet-access__address {
  margin-top: 1.75rem;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
}

.pamphlet-access__address p {
  margin: 0;
}

.pamphlet-access__company-name {
  font-size: 1.125rem;
  font-weight: 700;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .pamphlet-access__pamphlet,
  .pamphlet-access__access {
    padding: 4rem 0 4.5rem;
  }

  .pamphlet-access__pamphlet-inner,
  .pamphlet-access__access-inner {
    width: 100%;
  }

  .pamphlet-access__pamphlet-inner {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .pamphlet-access__access-inner {
    padding-right: 2rem;
    padding-left: 3rem;
  }

  .pamphlet-access__map iframe {
    height: 19rem;
  }
}

@media (max-width: 767px) {
  .pamphlet-access {
    display: block;
  }

  .pamphlet-access__pamphlet,
  .pamphlet-access__access {
    padding: 4rem 0;
  }

  .pamphlet-access__pamphlet-inner,
  .pamphlet-access__access-inner {
    width: 100%;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
    margin-inline: auto;
  }

  .pamphlet-access__ebook {
    width: min(78vw, 18rem);
    margin-top: 2rem;
  }

  .section-link {
    width: min(100%, 13rem);
  }

  .pamphlet-access__pamphlet .section-link {
    width: min(100%, 15.625rem);
    white-space: nowrap;
  }

  .pamphlet-access__map {
    margin-top: 2rem;
  }

  .pamphlet-access__map iframe {
    height: 18rem;
  }
}
