/* 固定ページの共通書式。既存のレイアウトとナビゲーションは site.css を使用する。 */
:root {
  --brand-blue: #3770ad;
  --ink: #263849;
  --muted-ink: #526778;
  --rule: #cedce7;
  --pale-blue: #eef5fa;
}

body {
  color: var(--ink);
}

.article-body {
  line-height: 1.85;
  overflow-wrap: break-word;
}

.article-body a {
  text-underline-offset: 0.19em;
}

.main-body h2 {
  padding: 0.52em 0.85em;
  border-radius: 6px;
  background: var(--brand-blue);
  box-shadow: none;
  font-size: clamp(1.2rem, 1rem + 0.65vw, 1.55rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.015em;
}

.main-body h3 {
  padding-bottom: 0.45em;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
  line-height: 1.55;
}

.main-body h3::after {
  bottom: -1px;
  width: 2.5em;
  height: 3px;
  border-radius: 2px;
}

.global-nav-in ul,
.global-nav-in li a {
  border-color: var(--rule);
  border-style: none;
}

@media (min-width: 769px) {
  .global-nav-in > ul > li + li > a {
    border-left: 1px solid var(--rule);
  }
}

.breadcrumbs-in,
.breadcrumbs-in a {
  color: var(--muted-ink);
}

.about_tbl dt,
.about_tbl dd {
  border-bottom-color: var(--rule);
  letter-spacing: normal;
}

.recruit_job a,
.button a {
  border: 1px solid var(--brand-blue);
  border-radius: 6px;
  color: var(--brand-blue);
  line-height: 1.55;
}

.recruit_job a:hover,
.button a:hover {
  background-color: var(--brand-blue);
  color: #fff;
}

.form_input_submit input[type="submit"],
.form_input_submit a {
  padding: 1em 1.4em;
  border-radius: 6px;
  background-color: var(--brand-blue) !important;
  font-weight: 700;
  line-height: 1.5;
  box-sizing: border-box;
}

input:not([type]),
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 5px;
}

div.rss-antenna hr {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

div.rss-antenna .rss-item a {
  padding: 0.95em 0.4em;
  border-radius: 5px;
}

div.rss-antenna .rss-item a:hover {
  background-color: var(--pale-blue);
}

div.rss-antenna .rss-item .title {
  line-height: 1.55;
}

div.rss-antenna .rss-item .siteinfo {
  color: var(--muted-ink);
}

div.rss-antenna .rss-item .description {
  line-height: 1.65;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .article-body {
    line-height: 1.75;
  }

  .form_input_submit input[type="submit"],
  .form_input_submit a {
    width: min(85%, 24rem);
  }
}

/* 共通ヘッダー。狭い画面では元の開閉式メニューを使用する。 */
@media (min-width: 1100px) {
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 max(24px, calc((100% - 1200px) / 2));
    background: #fff;
    border-bottom: 2px solid var(--brand-blue);
  }
  .site-header .site-header-in,
  .site-header .global-nav-in {
    width: auto;
    margin: 0;
  }
  .site-header .site-header-in { display: block; flex: 0 0 300px; }
  .site-header .site-header-conts { display: block; padding: 24px 0; }
  .site-header .site-title,
  .site-header .site-title a,
  .site-header .site-title img { display: block; }
  .site-header .global-nav-in { display: flex; flex: 1; min-width: 0; }
  .site-header .site-title img { width: 100%; height: auto; }
  .site-header .global-nav {
    display: flex;
    align-self: flex-end;
    min-height: 56px;
    flex: 1 1 680px;
    min-width: 0;
    max-width: 680px;
    border: 0;
  }
  .site-header #menu { display: flex; width: 100%; }
  .site-header #menu > li { display: flex; flex: 1 1 0; min-width: 0; border: 0; }
  .site-header #menu > li > a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 0.65em 0.5em;
    border: 0;
    font-weight: bold;
    white-space: nowrap;
  }
  .site-header #menu > li.current-menu-item > a,
  .site-header #menu > li.current-menu-ancestor > a {
    box-shadow: inset 0 -3px var(--brand-blue);
  }
  .site-header #menu > li:hover > a,
  .site-header #menu > li > a:focus-visible {
    background: var(--pale-blue);
    color: var(--brand-blue);
  }
  .site-header #menu .sub-menu { min-width: 13em; }
  .site-header #menu .sub-menu a { padding: 0.55em 0.9em; }
}

.main-body .article-body h2 {
  margin: 2.1em 0 0.9em;
}
.main-body .article-body > h2:first-child { margin-top: 0.4em; }
.main-body .section-wrap > .section-in {
  border: 0;
  background: #fff;
}
.main-body .about_tbl dt {
  color: #244665;
  border-color: #d5e2eb;
}
.home .article-body > h2 { margin-top: 1.1em; }
.home .article-body .top_tbl {
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}
.home .top_tbl > dt {
  padding: clamp(16px, 2.4vw, 30px);
  background: #eef5fa;
  box-sizing: border-box;
}
.home .top_tbl > dd {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #f7f9fb;
  box-sizing: border-box;
}
.home .top_tbl > dd img { max-width: 100%; height: auto; }
.home .article-body h3 { margin-top: 2.4em; }
.home .article-body > h3 {
  display: flex;
  align-items: center;
  column-gap: 12px;
}
.home .article-body > h3 > img { margin: 0; }
div.rss-antenna .rss-item a {
  padding: 1.1em 0.55em;
  border-radius: 0;
}
div.rss-antenna .rss-item .title { color: #234d76; font-size: 1.08em; }
.site-footer { background-color: #304d69; }
.site-footer .copyright { color: #fff; }

/* 募集状況は一覧でも直リンク先でも本文の先頭に表示する。 */
.hiring-summary {
  margin: 1em 0 2em;
  border-top: 2px solid var(--brand-blue);
}
.hiring-summary > div {
  display: grid;
  grid-template-columns: minmax(8em, 28%) 1fr;
  border-bottom: 1px solid var(--rule);
}
.hiring-summary dt,
.hiring-summary dd { margin: 0; padding: 1em 1.25em; }
.hiring-summary dt { background: var(--pale-blue); color: #203d5a; font-weight: bold; }
.hiring-summary dd { align-self: center; }
.article-body .hiring-notice {
  margin: 0 0 1.6em;
}
@media (max-width: 640px) {
  .hiring-summary > div { grid-template-columns: 1fr; }
  .hiring-summary dt { padding: 0.65em 0.85em; }
  .hiring-summary dd { padding: 0.85em; }
  .home .top_tbl > dt, .home .top_tbl > dd { width: 100%; }
}

.site-footer .site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px clamp(20px, 3vw, 48px);
  padding: 12px 16px;
}

.site-footer .site-footer-nav > li {
  display: block;
  flex: none;
  margin: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.site-footer .site-footer-nav a {
  display: block;
  padding: 4px 0;
}

@media (max-width: 767px) {
  .site-footer .site-footer-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    text-align: left;
  }

  .site-footer .site-footer-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
  }
}
