/* 本体の企業情報ページ（2026年リニューアル）。共通部品は base.css。
   テーマの body.page-aboutus（固定の背景写真・白文字の企業理念・c-table）をそのまま使い、足りない部分だけ足す。 */

/* ページタイトルを h1 にしたぶんの調整（テーマは h2＋div で組んでいた） */
.pageTitle__title {
  margin: 0;
}

.pageTitle__title__main,
.pageTitle__title__sub {
  display: block;
}

/* 目次から飛んだとき、固定ヘッダーの下に見出しが隠れないようにする */
body.page-aboutus [id] {
  scroll-margin-top: 100px;
}

@media print, screen and (max-width: 896px) {
  body.page-aboutus [id] {
    scroll-margin-top: 72px;
  }
}

/* ---------- 目次 ---------- */
.rt-about__toc {
  background-color: #ffffff;
  padding: 0 15px 50px;
}

.rt-about__toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  margin: 0 auto;
  max-width: 1000px;
  padding: 0;
}

.rt-about__toc a {
  border: 1px solid var(--rt-navy);
  border-radius: 40px;
  color: var(--rt-navy);
  display: inline-block;
  font-size: 14px;
  font-weight: bold;
  padding: 7px 34px 7px 18px;
  position: relative;
  text-decoration: none;
  transition: background-color .3s, color .3s;
}

.rt-about__toc a::after {
  border-bottom: solid 2px currentColor;
  border-right: solid 2px currentColor;
  content: '';
  height: 6px;
  margin-top: -5px;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: rotate(45deg);
  width: 6px;
}

.rt-about__toc a:hover,
.rt-about__toc a:focus-visible {
  background-color: var(--rt-navy);
  color: #ffffff;
}

@media print, screen and (max-width: 480px) {
  .rt-about__toc {
    padding-bottom: 36px;
  }
  .rt-about__toc ul {
    gap: 8px;
  }
  .rt-about__toc a {
    font-size: 13px;
    padding: 6px 28px 6px 14px;
  }
  .rt-about__toc a::after {
    right: 12px;
  }
}

/* ---------- 企業理念（テーマの h4 の組み方を h3 で） ---------- */
body.page-aboutus .philosophy__heading h2 {
  margin: 0;
}

body.page-aboutus .philosophy__content__inner h3 {
  font-family: var(--rt-mincho);
  font-size: 44px;
  letter-spacing: 3px;
  line-height: 1.5;
  margin: 0 0 40px;
  overflow-wrap: anywhere;
  padding: 0 15px;
  text-align: center;
  word-break: keep-all;
}

/* 文章が長いので、中央の列に左揃えで置く */
body.page-aboutus .philosophy__content__inner__text {
  margin: 0 auto;
  max-width: 830px;
  text-align: left;
}

@media print, screen and (max-width: 480px) {
  body.page-aboutus .philosophy__content__inner h3 {
    font-size: 26px;
    letter-spacing: 2px;
    margin: 0 0 32px;
  }
}

/* ---------- 代表挨拶 ---------- */
.rt-about__president {
  background-color: var(--rt-pale);
  padding: 80px 0;
}

.rt-about__president-grid {
  align-items: start;
  display: grid;
  gap: 60px;
  grid-template-columns: 340px 1fr;
  margin: 0 auto;
  max-width: 1000px;
}

.rt-about__president-photo {
  border-radius: 4px;
  margin: 0;
  overflow: hidden;
}

.rt-about__president-photo img {
  display: block;
  height: auto;
  width: 100%;
}

.rt-about__president-body h3 {
  color: var(--rt-navy);
  font-family: var(--rt-mincho);
  font-size: 28px;
  letter-spacing: 2px;
  line-height: 1.6;
  margin: 0 0 28px;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.rt-about__message p {
  font-size: 16px;
  line-height: 2;
  margin: 0 0 1.1em;
}

.rt-about__signature {
  color: var(--rt-navy);
  font-family: var(--rt-mincho);
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 3px;
  margin: 32px 0 0;
  text-align: right;
}

.rt-about__signature span {
  color: #666666;
  display: block;
  font-family: var(--rt-gothic);
  font-size: 13px;
  font-weight: normal;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

@media print, screen and (max-width: 896px) {
  .rt-about__president-grid {
    gap: 36px;
    grid-template-columns: 1fr;
    max-width: 640px;
  }
  .rt-about__president-photo {
    margin: 0 auto;
    max-width: 280px;
  }
}

@media print, screen and (max-width: 480px) {
  .rt-about__president {
    padding: 60px 0;
  }
  .rt-about__president-photo {
    max-width: 220px;
  }
  .rt-about__president-body h3 {
    font-size: 22px;
  }
  .rt-about__message p {
    font-size: 15px;
    line-height: 1.9;
  }
  .rt-about__signature {
    font-size: 20px;
  }
}

/* ---------- 会社概要・許認可の表（テーマの c-table に重ねる） ---------- */
.rt-about__table tr th {
  width: 200px;
}

@media print, screen and (max-width: 480px) {
  .rt-about__table tr th {
    width: 100%;
  }
}

/* ---------- 店舗・アクセス ---------- */
.rt-about__office {
  background-color: var(--rt-pale);
  padding: 80px 0;
}

.rt-about__lead {
  font-size: 16px;
  line-height: 1.9;
  margin: -6px auto 40px;
  overflow-wrap: anywhere;
  text-align: center;
  word-break: keep-all;
}

.rt-about__office-photos {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto 50px;
  max-width: 1100px;
}

.rt-about__office-photos figure {
  margin: 0;
}

.rt-about__office-photos img {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.rt-about__office-photos figcaption,
.rt-about__license-photo figcaption {
  color: #666666;
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
}

.rt-about__office-grid {
  align-items: stretch;
  display: grid;
  gap: 50px;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  max-width: 1100px;
}

.rt-about__office-info h3 {
  color: var(--rt-navy);
  font-family: var(--rt-mincho);
  font-size: 22px;
  letter-spacing: 2px;
  margin: 0 0 10px;
}

.rt-about__address {
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 18px;
}

.rt-about__info {
  border-top: 1px solid var(--rt-line);
  margin: 0;
}

.rt-about__info div {
  border-bottom: 1px solid var(--rt-line);
  display: grid;
  gap: 16px;
  grid-template-columns: 120px 1fr;
  padding: 12px 0;
}

.rt-about__info dt {
  color: var(--rt-navy);
  font-size: 14px;
  font-weight: bold;
}

.rt-about__info dd {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.rt-about__info a {
  color: var(--rt-navy);
  font-weight: bold;
}

.rt-about__info small {
  color: #666666;
  font-size: 13px;
}

.rt-about__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.rt-about__btns .btn {
  width: 240px;
}

.rt-about__map {
  border-radius: 4px;
  min-height: 420px;
  overflow: hidden;
}

.rt-about__map iframe {
  border: 0;
  display: block;
  height: 100%;
  min-height: 420px;
  width: 100%;
}

@media print, screen and (max-width: 896px) {
  .rt-about__office-grid {
    gap: 36px;
    grid-template-columns: 1fr;
    max-width: 640px;
  }
  .rt-about__map,
  .rt-about__map iframe {
    min-height: 320px;
  }
}

@media print, screen and (max-width: 480px) {
  .rt-about__office {
    padding: 60px 0;
  }
  .rt-about__lead {
    font-size: 15px;
    text-align: left;
  }
  .rt-about__office-photos {
    gap: 10px;
    margin-bottom: 36px;
  }
  .rt-about__info div {
    gap: 2px;
    grid-template-columns: 1fr;
  }
  .rt-about__btns .btn {
    width: 100%;
  }
  .rt-about__map,
  .rt-about__map iframe {
    min-height: 280px;
  }
}

/* ---------- 許認可 ---------- */
.rt-about__license {
  background-color: #ffffff;
  padding: 80px 0;
}

.rt-about__license-grid {
  align-items: center;
  display: grid;
  gap: 50px;
  grid-template-columns: 1fr 340px;
  margin: 0 auto;
  max-width: 1000px;
}

.rt-about__license-photo {
  margin: 0;
}

.rt-about__license-photo img {
  border-radius: 4px;
  display: block;
  height: auto;
  width: 100%;
}

@media print, screen and (max-width: 896px) {
  .rt-about__license-grid {
    gap: 36px;
    grid-template-columns: 1fr;
    max-width: 640px;
  }
  .rt-about__license-photo {
    margin: 0 auto;
    max-width: 400px;
  }
}

@media print, screen and (max-width: 480px) {
  .rt-about__license {
    padding: 60px 0;
  }
}

/* ---------- 顧問弁護士 ---------- */
.rt-about__partners {
  background-color: var(--rt-pale);
  padding: 70px 0 80px;
}

.rt-about__partner {
  background-color: #ffffff;
  border: 1px solid var(--rt-line);
  border-radius: 4px;
  border-top: 3px solid var(--rt-gold);
  margin: 0 auto;
  max-width: 560px;
  padding: 30px 20px;
  text-align: center;
}

.rt-about__partner-office {
  color: #555555;
  font-size: 15px;
  margin: 0 0 6px;
}

.rt-about__partner-name {
  color: var(--rt-navy);
  font-family: var(--rt-mincho);
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 3px;
  margin: 0 0 6px;
}

.rt-about__partner-note {
  color: #666666;
  font-size: 14px;
  margin: 0;
}

@media print, screen and (max-width: 480px) {
  .rt-about__partners {
    padding: 56px 0 60px;
  }
  .rt-about__partner-name {
    font-size: 21px;
  }
}
