@charset "utf-8";

/*
 * A Inc. コーポレートサイト
 * 旧 WordPress テーマ（a-inc）の見た目を踏襲し、固定幅＋JS の zoom による
 * スマホ対応をメディアクエリによるレスポンシブに置き換えたもの。
 * 文字色は旧テーマの配色をベースに、コントラスト比 4.5:1 以上になるよう暗くしている。
 */

:root {
  --color-text: #1c2426;
  --color-sub: #4f6a70;       /* 旧 #678288 */
  --color-link: #00728f;      /* 旧 #00badc / #4fcbe3 */
  --color-bg: #f6f6f6;
  --color-bg-caption: #fbfbfb;
  --color-border: #dcdcdc;
  --color-footer-bg: #2f3c3f;
  --color-footer-text: #a9bec2; /* 旧 #678288 */
  --color-footer-edge: #1c2426;
  --content-width: 1100px;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Hiragino Sans", "メイリオ", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  /* 本文が短いページでもフッターを画面下端に置く */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, table {
  margin: 0;
}

ul, ol {
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--color-link);
  text-decoration: underline;
}

a:hover,
a:focus-visible {
  text-decoration: none;
}

.inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- ヘッダー ---------- */

.site-header {
  background: #fff url(/assets/img/header_bar.gif) top center repeat-x;
  border-bottom: 1px solid var(--color-border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  min-height: 100px;
  padding-top: 5px;
}

.site-logo img {
  height: 48px;
  width: auto;
}

/* ---------- ページタイトル ---------- */

.page-title {
  background: var(--color-bg-caption);
  border-bottom: 1px solid var(--color-border);
  padding: 25px 0;
}

.page-title h1 {
  font-size: 48px;
  line-height: 135px;
  font-weight: bold;
}

/* ---------- 本文 ---------- */

.content {
  flex: 1;
  padding: 30px 0 0;
  min-height: 400px;
}

.section {
  margin: 0 0 40px;
  color: var(--color-sub);
  overflow-wrap: anywhere;
}

.section p {
  margin: 0 0 20px;
}

.section h2 {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  margin: 0 0 20px;
  color: var(--color-text);
}

.section h3 {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 10px;
  color: var(--color-text);
}

.nowrap {
  white-space: nowrap;
}

/* 定義表（個人情報保護方針） */

.table-scroll {
  overflow-x: auto;
  margin: 0 0 20px;
}

.def-table {
  width: 100%;
  border-collapse: collapse;
}

.def-table th,
.def-table td {
  padding: 10px;
  border: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
}

.def-table th {
  font-size: 18px;
  color: var(--color-text);
}

.def-table td:first-child {
  width: 30%;
}

.def-table td p {
  margin: 0 0 10px;
}

.def-table td p:last-child {
  margin-bottom: 0;
}

ul.disc {
  list-style: disc;
  padding-left: 1.5em;
}

ul.disc li {
  padding: 6px 0;
}

/* 制定日・署名 */

.signature {
  text-align: right;
}

.signature p {
  margin: 0;
}

/* プライバシーマーク */

.pmark {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.pmark img {
  flex: none;
}

.pmark dl {
  margin-top: 10px;
}

.pmark dt {
  font-weight: bold;
}

/* 会社概要 */

.company-profile {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.company-profile dt {
  padding: 20px 0 20px 10px;
  font-weight: bold;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.company-profile dd {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.company-profile dd h3 {
  font-size: 14px;
  margin: 0 0 5px;
}

.company-profile dd p {
  margin: 0 0 10px;
}

.company-profile a.plain {
  color: inherit;
}

.map {
  max-width: 600px;
  aspect-ratio: 3 / 2;
  margin: 20px 0 10px;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  font-size: 13px;
}

.stations {
  width: 100%;
  max-width: 500px;
  margin: 0 0 30px;
  border-collapse: collapse;
}

.stations tr {
  border-bottom: 1px solid var(--color-border);
}

.stations th {
  width: 180px;
  padding: 10px;
  text-align: left;
  font-weight: normal;
}

.stations td {
  padding: 10px;
  vertical-align: middle;
}

/* 反社排除に関する基本方針 */

.policy-list {
  margin: 3em 1em 1em 2.5em;
}

.policy-list li {
  margin: 20px 0.5em;
}

/* サイトマップ */

.sitemap-list {
  list-style: none;
  max-width: 340px;
  margin: 20px 0 0 120px;
}

.sitemap-list li {
  margin: 0 0 30px;
  padding: 0 0 5px 5px;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  font-weight: bold;
}

.sitemap-list a {
  color: var(--color-sub);
  text-decoration: none;
}

.sitemap-list a:hover,
.sitemap-list a:focus-visible {
  text-decoration: underline;
}

/* ---------- フッター ---------- */

.site-footer {
  margin: 40px 0 0;
  background: var(--color-footer-bg) url(/assets/img/header_bar.gif) top center repeat-x;
  border-bottom: 10px solid var(--color-footer-edge);
  color: var(--color-footer-text);
  font-size: 12px;
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.site-footer li + li::before {
  content: "｜";
}

.site-footer a {
  color: var(--color-footer-text);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

/* ---------- スマートフォン（768px 以下） ---------- */

@media screen and (max-width: 768px) {
  .site-header {
    background-image: url(/assets/img/sp_header_bar.gif);
  }

  .page-title {
    background: var(--color-bg);
    padding: 0;
  }

  .page-title h1 {
    font-size: 26px;
    line-height: 1.4;
    padding: 30px 0;
    text-align: center;
  }

  .company-profile {
    display: block;
  }

  .company-profile dt {
    padding: 10px 0 0;
    border-bottom: 0;
  }

  .company-profile dd {
    padding: 0 0 20px;
  }

  .stations th {
    width: 130px;
  }

  .def-table td:first-child {
    width: 35%;
  }

  .policy-list {
    margin: 2em 0 1em 1.5em;
  }

  .sitemap-list {
    max-width: none;
    margin: 20px 0 0;
  }

  .site-footer .inner {
    display: block;
  }

  .site-footer ul {
    display: block;
    margin: 0 0 20px;
  }

  .site-footer li {
    margin: 0 0 5px;
  }

  .site-footer li + li::before {
    content: none;
  }

  .site-footer a {
    font-weight: bold;
  }
}
