@charset "UTF-8";

/* ====================================
	共通スタイル
==================================== */

.page-header--padding {
  padding: 3rem 0 2rem;
}

.page-header__main-title {
  font-size: 1.8rem;
}

.max-w-1000 {
  max-inline-size: 1000px;
  margin: 0 auto;
}

.max-w-550 {
  max-inline-size: 550px;
  margin: 0 auto;
}

/* 注釈・global.css上書き */
.caption {
  padding: 0;
}

.caption__list {
  padding-left: 1em;

  li {
    text-indent: -1em;
  }

  li::before {
    content: "\203b";
  }
}

/* 周辺地図（アクセスマップ）ページ専用スタイル */
.access-map {

  .image__text {
    font-size: 1.2rem;
    text-align: right;
    margin-top: 1rem;
  }

  .caption__list {
    margin-top: 2rem;
  }
}

/* 周辺地図リンク */
.access-map__list {
  display: inline-flex;
  align-items: center;
  gap: 0 5px;

  a {
    display: inline-block;
  }

  .google {
    border: 1px solid var(--light-gray);
    padding: 4px;
    font-size: 1.6rem;
    line-height: 1;
    color: #0866ff;
  }
}

/* セクション見出し */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 6rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed #959595;

  /* ボタンリンクデザイン・global.css上書き */
  .button-link {
    a {
      font-size: 1.2rem;
      font-weight: 300;
      margin-left: 2rem;
      padding: 0.8rem 0.8rem 0.8rem 1rem;
    }

    .arrow-right {
      inline-size: 14px;
      block-size: 16px;
    }
  }
}

.section-title:has(.button-link) {
  display: inline-flex;
  align-items: center;
  inline-size: 100%;
  margin-top: 4rem;
}

/* 事業所情報テーブル */
.info__table {
  inline-size: 100%;

  tr:first-child :is(th, td) {
    padding-top: 1rem;
  }

  th,
  td {
    font-size: 1.4rem;
    font-weight: 300;
    padding-top: 0.5rem;
    vertical-align: top;
  }

  th {
    inline-size: 18%;
  }

  address {
    position: relative;
    padding-left: 1em;
  }

  address::before {
    content: '：';
    position: absolute;
    left: 0;
  }
}

/* 交通アクセステーブル */
.access__table {
  inline-size: 100%;
  margin-top: 3rem;

  &:nth-child(2 of table) {
    margin-top: 6rem;
  }

  caption {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 1rem;
  }

  tr:first-child th {
    border-top: 1px solid var(--light-gray);
  }

  &:not(:has(caption)) {
    margin-top: 0;

    tr:first-child :is(th, td) {
      border-top: none;
    }
  }

  th {
    font-size: 1.5rem;
    font-weight: 500;
    padding: 2rem 0 0.6em 0;
  }

  td {
    font-size: 1.4rem;
    padding: 0 0 2rem;
    border-bottom: 1px solid var(--light-gray);
  }

  a {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}

.notes__list {
  max-inline-size: 1000px;
  margin: 2rem auto 0;

  li {
    font-size: 1.2rem;

    &:not(:first-child) {
      margin-top: 1rem;
    }
  }

  .important {
    color: var(--sharp-red);
  }
}

.download__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem 3rem;
  max-inline-size: 1000px;
  margin: 6rem auto 0;
}

/* 交通アクセスページ専用スタイル */
.access .caption__list {
  margin-top: 2rem;
}

.access__list {
  padding-left: 1em;

  li {
    text-indent: -1em;
  }

  li::before {
    content: "\30fb";
  }
}

/* ====================================
	ホバー、マウスポインタが有効なデバイス
==================================== */
@media (hover:hover) and (pointer: fine) {

  /* 周辺地図リンク */
  .access-map__list .google:hover {
    text-decoration: none;
  }

  .access__table a:hover {
    text-decoration: none;
  }
}

/* ====================================
	768px未満専用スタイル
==================================== */
@media screen and (width <768px) {
  .access__table :is(th, td) {
    display: block;
  }
}

/* ====================================
	768px以上専用スタイル
==================================== */
@media screen and (width >=768px) {
  .page-header--padding {
    padding: 4rem 0 2rem;
  }

  .page-header__main-title {
    font-size: 2.6rem;
  }

  /* ボタンリンクデザイン・global.css上書き */
  .button-link a {
    font-size: 1.8rem;
    gap: 0 30px;
    padding: 2rem 2rem 2rem 3rem;
  }

  /* セクション見出し */
  .section-title {
    font-size: 2.2rem;
    margin-top: 6rem;
    padding-bottom: 1rem;

    .button-link a {
      font-size: 1.4rem;
      margin-left: 3rem;
      padding: 1rem 1rem 1rem 2rem;
      gap: 0 1em;
    }
  }

  .section-title:has(.button-link) {
    margin-top: 8rem;
  }

  /* 周辺地図（アクセスマップ）ページスタイル */
  .access-map {
    .image__container {
      max-inline-size: 550px;
      margin: 0 auto;
    }

    .image__text {
      font-size: 1.3rem;
    }
  }

  /* 周辺地図リンク */
  .access-map__list .google {
    padding: 4px;
    font-size: 1.6rem;
  }

  /* 事業所情報テーブル */
  .info__table {

    tr:first-child :is(th, td) {
      padding-top: 2rem;
    }

    th,
    td {
      font-size: 1.8rem;
      font-weight: 300;
      padding-top: 1rem;
    }

    th {
      inline-size: 12%;
      min-inline-size: 120px;
    }

    address::before {
      content: '：';
    }
  }

  /* 交通アクセステーブル */
  .access__table {
    margin-top: 4rem;

    &:nth-child(2 of table) {
      margin-top: 9rem;
    }

    caption {
      font-size: 2rem;
      margin-bottom: 2rem;
    }

    tr:first-child td {
      border-top: 1px solid var(--light-gray);
    }

    th,
    td {
      vertical-align: top;
      border-bottom: 1px solid var(--light-gray);
    }

    th {
      font-size: 1.6rem;
      font-weight: 500;
      padding: 2.4rem 0 2.4rem 1rem;
      inline-size: 30%;
    }

    td {
      font-size: 1.6rem;
      padding: 2.4rem 0 2.4rem 1.5em;
    }

    a {
      text-decoration: underline;
      text-underline-offset: 2px;
    }
  }

  .notes__list li {
    font-size: 1.6rem;

    &:not(:first-child) {
      margin-top: 2rem;
    }
  }

  .download__list {
    margin-top: 8rem;
  }

  /* 交通アクセスページ専用スタイル */
  .access .caption__list {
    margin-top: 5rem;
  }

  /* ボタンリンクデザイン・global.css上書き */
  .button-link a {
    font-size: 1.8rem;
    gap: 0 30px;
    padding: 2rem 2rem 2rem 3rem;
  }

}