/* 採用サイトの土台と外枠（ヘッダー・メニュー・フッター）。
   旧サイト（WordPress＋TCDテーマ）の見た目を採寸して書き直したもの。テーマのCSSは使っていない。
   本文の見た目は content.css（全ページ共通）と assets/css/pages/*.css（ページごと）にある。 */

:root {
  --blue: #3891c5;
  --blue-hover: #5aaed9;
  --cyan: #2eccd3;
  --line: #ddd;
  --font: Arial, "Hiragino Sans", "Yu Gothic Medium", Meiryo, sans-serif;
  --header-h: 80px;
}
@media (max-width: 1200px) { :root { --header-h: 60px; } }

/* ---------- 土台（本文の自社CSSが前提にしている初期値） ---------- */
* { margin: 0; padding: 0; border: 0; font-size: 100%; vertical-align: baseline; }
html { overflow-y: scroll; overflow-x: hidden; -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { font-family: var(--font); font-size: 14px; line-height: 1; color: #000; background: #fff; position: relative; -webkit-font-smoothing: antialiased; }
ul, ol { list-style: none; }
a { color: #000; text-decoration: none; line-height: 1.4; transition: background-color .2s, color .2s; }
a:hover { color: var(--blue-hover); }
img { max-width: 100%; }
table { border-collapse: collapse; border-spacing: 0; width: 100%; }
button, input, select, textarea { outline: 0; box-sizing: border-box; }
input, textarea { -webkit-appearance: none; border-radius: 0; }
input[type=checkbox] { -webkit-appearance: checkbox; }
input[type=radio] { -webkit-appearance: radio; }
iframe { max-width: 100%; }
hr { display: block; height: 1px; border-top: 1px solid #ccc; margin: 1em 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 10000; background: #fff; padding: 10px 16px; }
.skip:focus { left: 10px; }

/* 本文エリア（旧テーマの .post_content の初期値） */
.post_content { font-size: 16px; }
.post_content p { line-height: 2.8; margin: 0 0 2em; word-wrap: break-word; }
.post_content p:last-child { margin: 0; }
.post_content a { color: #e8e8e8; }
.post_content a:hover { color: var(--blue-hover); }
.post_content ul, .post_content ol, .post_content dl { margin-bottom: 24px; }
.post_content ul { list-style: circle outside none; margin-left: 1.3em; }
.post_content ol { list-style: decimal outside none; margin-left: 1.5em; }
.post_content li, .post_content dt, .post_content dd { line-height: 2.2; }
.post_content dt { font-weight: 700; }
.post_content table { margin: 0 0 24px; width: 100% !important; }
.post_content td, .post_content th { border: 1px solid var(--line); padding: 17px 25px; line-height: 2.2; background: #fff; }
.post_content th { background: #f7f7f7; font-weight: 400; }
.post_content h1, .post_content h2, .post_content h3, .post_content h4, .post_content h5, .post_content h6 { clear: both; line-height: 1.4; margin: 0 0 15px; font-weight: 600; }
.post_content h1 { font-size: 150%; }
.post_content h2 { font-size: 24px; }
.post_content h3 { font-size: 22px; }
.post_content h4 { font-size: 20px; }
.post_content h5 { font-size: 18px; }
.post_content h6 { font-size: 16px; }
@media (max-width: 767px) {
  .post_content h2 { font-size: 20px; }
  .post_content h3, .post_content h4 { font-size: 18px; }
  .post_content h5 { font-size: 16px; }
  .post_content h6 { font-size: 14px; }
}
.post_content img { height: auto; max-width: 100%; }
.home-content .post_content { font-size: 14px; } /* トップだけは旧テーマで本文の文字サイズ指定が無かった */
.home-content #sysnavi-members-wrap { font-size: 16px; } /* 旧テーマのブロック設定（社員紹介だけ16px） */
@media (max-width: 750px) { .home-content #sysnavi-members-wrap { font-size: 14px; } }
@media (max-width: 750px) {
  .post_content { font-size: 14px; }
  .post_content p { line-height: 2.4; }
  .post_content li, .post_content dt, .post_content dd { line-height: 1.8; }
  .post_content td, .post_content th { line-height: 1.8; padding: 14px 20px; }
}

/* 下層ページの本文の枠（トップは全幅） */
.page-content { width: 1030px; margin: 0 auto; padding: 140px 0 150px; }
@media (max-width: 1200px) { .page-content { width: calc(100% - 100px); padding: 100px 0; } }
@media (max-width: 750px) { .page-content { width: calc(100% - 40px); padding: 40px 0; } }

/* ---------- 読み込み中の表示 ---------- */
.loader { position: fixed; inset: 0; z-index: 99999; background: #fff; display: grid; place-items: center; transition: opacity .6s ease, visibility .6s; }
.loader img { width: 90px; height: auto; animation: loader-in .6s ease both; }
.is-loaded .loader { opacity: 0; visibility: hidden; }
@keyframes loader-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 750px) { .loader img { width: 60px; } }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }

/* ---------- ヘッダー ---------- */
#header { position: sticky; top: 0; z-index: 300; display: flex; align-items: stretch; height: var(--header-h); background: #fff; transition: background-color .35s; }
.header__logo { display: flex; align-items: center; margin-left: 40px; flex: none; }
.header__logo img { display: block; height: auto; }
.header__logo .pc { width: 317px; }
.header__logo .sp { display: none; width: 106px; }
.header__desc { display: flex; align-items: center; padding: 0 30px; font-size: 14px; font-weight: 500; line-height: 1.6; flex: 1; min-width: 0; }
.header__buttons { display: flex; margin-left: auto; }
.hbtn { display: block; padding: 0 50px; line-height: var(--header-h); font-size: 18px; color: #fff; background: var(--blue); white-space: nowrap; transition: background-color .35s; }
.hbtn--entry { background: var(--cyan); }
.hbtn:hover { color: #fff; background: var(--blue-hover); }
.menu-button { position: relative; flex: none; width: var(--header-h); height: var(--header-h); background: var(--blue); cursor: pointer; transition: background-color .35s; }
.menu-button:hover, .menu-button[aria-expanded=true] { background: var(--blue-hover); }
.menu-button span { position: absolute; left: 50%; width: 22px; height: 2px; margin-left: -11px; background: #fff; transition: transform .3s ease-in-out, top .3s ease-in-out, opacity .3s; }
.menu-button span:nth-child(1) { top: calc(50% - 7px); }
.menu-button span:nth-child(2) { top: calc(50% - 1px); }
.menu-button span:nth-child(3) { top: calc(50% + 5px); }
.menu-button[aria-expanded=true] span:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.menu-button[aria-expanded=true] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded=true] span:nth-child(3) { top: calc(50% - 1px); transform: rotate(135deg); }
@media (max-width: 1200px) {
  .header__logo { margin-left: 20px; }
  .header__logo .pc { display: none; }
  .header__logo .sp { display: block; }
  .hbtn { padding: 0 30px; font-size: 16px; }
}
/* サイト内検索（ヘッダー）。狭い画面では虫眼鏡だけにして、押すと検索ページへ */
.hsearch { display: flex; align-items: center; margin: 0 20px 0 0; flex: none; }
.hsearch__input { width: 190px; height: 38px; padding: 0 12px; border: 1px solid #ccd3dc; border-right: 0; border-radius: 19px 0 0 19px; font: inherit; font-size: 14px; background: #fff; }
.hsearch__input:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.hsearch__button { display: grid; place-items: center; width: 44px; height: 38px; border-radius: 0 19px 19px 0; background: var(--blue); color: #fff; cursor: pointer; transition: background-color .35s; }
.hsearch__button:hover { background: var(--blue-hover); }
.hsearch__button svg { width: 20px; height: 20px; }
/* 入力欄は広い画面だけ。ボタンとロゴで幅が足りなくなる前に虫眼鏡だけにする */
@media (max-width: 1450px) {
  .hsearch { margin: 0 12px 0 0; }
  .hsearch__input { display: none; }
  .hsearch__button { width: 38px; border-radius: 50%; }
}
@media (max-width: 1100px) { .header__buttons { display: none; } }
@media (max-width: 750px) { .header__desc { padding: 0 20px; font-size: 13px; } }
@media (max-width: 400px) { .header__desc { padding: 0 14px; font-size: 12px; } }

/* ---------- ドロワー（≡ で開くメニュー） ---------- */
.drawer { position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 40px); height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; background: var(--blue); color: #fff; opacity: 0; pointer-events: none; transition: opacity .7s cubic-bezier(.22,1,.36,1), top .7s cubic-bezier(.22,1,.36,1); }
.drawer[hidden] { display: block; visibility: hidden; }
.drawer.is-open { top: var(--header-h); opacity: 1; pointer-events: auto; visibility: visible; }
.drawer a { color: #fff; }
.dm__item { position: relative; }
.dm__link { display: flex; align-items: center; height: 100px; padding: 0 calc((100% - 1030px) / 2); margin-top: -1px; border-top: 1px solid rgba(255,255,255,.5); border-bottom: 1px solid rgba(255,255,255,.5); font-size: 20px; font-weight: 600; }
.dm__link:hover, .dm__item a:hover { color: #fff; background: rgba(255,255,255,.12); }
.dm__sub { margin-left: auto; margin-right: 54px; font-size: 16px; color: #ddd; }
/* 子メニューの無い項目は「>」、ある項目は「＋」で開閉 */
.dm__item:not(.has-children) > .dm__link::after { content: ""; position: absolute; right: calc((100% - 1030px) / 2 + 6px); top: 50%; width: 8px; height: 8px; margin-top: -5px; border-top: 1px solid #fff; border-right: 1px solid #fff; transform: rotate(45deg); }
.dm__item:not(.has-children) > .dm__link .dm__sub { margin-right: 54px; }
.dm__toggle { position: absolute; top: 0; right: calc((100% - 1030px) / 2 - 20px); width: 60px; height: 99px; background: none; cursor: pointer; }
.dm__toggle::before, .dm__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1px; margin-left: -8px; background: #fff; transition: transform .3s; }
.dm__toggle::after { transform: rotate(90deg); }
.dm__toggle[aria-expanded=true]::after { transform: rotate(0); }
.dm__children { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 auto; padding: 30px 0; width: 1030px; max-width: calc(100% - 40px); }
.dm__children[hidden] { display: none; }
.dm__children a { display: block; padding: 0 27px; line-height: 60px; font-size: 14px; border: 1px solid #fff; }
.drawer__footer { width: 1030px; max-width: 100%; margin: 0 auto; padding: 30px 0 60px; box-sizing: border-box; }
.drawer__short { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 24px; font-size: 14px; }
@media (max-width: 1100px) {
  .dm__link { padding: 0 50px; }
  .dm__item:not(.has-children) > .dm__link::after { right: 56px; }
  .dm__toggle { right: 30px; }
  .drawer__footer { padding: 30px 50px 60px; }
}
@media (max-width: 750px) {
  .drawer { padding-top: 113px; box-sizing: border-box; }
  .dm__link { height: 50px; padding: 0 20px; font-size: 16px; }
  .dm__sub { margin-right: 40px; font-size: 12px; }
  .dm__item:not(.has-children) > .dm__link .dm__sub { margin-right: 40px; }
  .dm__item:not(.has-children) > .dm__link::after { right: 26px; width: 7px; height: 7px; }
  .dm__toggle { right: 4px; height: 49px; width: 50px; }
  .dm__toggle::before, .dm__toggle::after { width: 12px; margin-left: -6px; }
  .dm__children { padding: 15px 0; max-width: calc(100% - 40px); }
  .dm__children a { line-height: 44px; padding: 0 16px; font-size: 13px; }
  .drawer__footer { padding: 20px 20px 40px; }
}

/* ---------- SNS ---------- */
.sns { display: flex; gap: 10px; }
.sns a { display: block; width: 20px; height: 20px; }
.sns svg { display: block; width: 100%; height: 100%; }
#drawer-sns svg { width: 17px; height: 17px; }

/* ---------- ページ先頭へ ---------- */
.to-top a { display: block; position: relative; height: 60px; background: #fff; border-top: 1px solid #000; border-bottom: 1px solid #000; }
.to-top a::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -2px 0 0 -4px; border-top: 1px solid #000; border-left: 1px solid #000; transform: rotate(45deg); }
.to-top a:hover { background: var(--blue); }
.to-top a:hover::before { border-color: #fff; }
@media (max-width: 1200px) {
  .to-top { position: fixed; right: 0; bottom: 0; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .to-top.is-shown { opacity: 1; pointer-events: auto; }
  .to-top a { width: 60px; height: 60px; border: 0; background: var(--blue); }
  .to-top a::before { border-color: #fff; }
}
@media (max-width: 750px) { .to-top a { width: 50px; height: 50px; } }

/* ---------- フッター ---------- */
.fm { display: flex; width: 1030px; margin: 0 auto; }
.fm__col { width: calc(100% / 3); border-left: 1px solid var(--line); padding-bottom: 50px; }
.fm__col:last-child { border-right: 1px solid var(--line); }
.fm__item { padding: 54px 60px 46px; border-bottom: 1px solid var(--line); }
.fm__col:not(:first-child) .fm__item, .fm__item:last-child { border-bottom: 0; }
.fm__head { display: block; }
.fm__title { display: block; font-size: 20px; font-weight: 600; line-height: 1.4; }
.fm__sub { display: block; margin-top: 10px; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--blue); transition: color .2s; }
.fm__head:hover .fm__sub { color: var(--blue-hover); }
.fm__children { margin-top: 34px; }
.fm__children li + li { margin-top: 20px; }
.fm__children a { display: block; font-size: 14px; line-height: 1.4; }
.footer__bottom { padding: 60px 0 58px; border-top: 1px solid var(--line); text-align: center; }
.footer__logo { display: inline-block; }
.footer__logo img { display: block; height: auto; }
.footer__logo .pc { width: 208px; }
.footer__logo .sp { display: none; width: 69px; }
.footer__desc { margin-top: 27px; font-size: 16px; }
#footer-sns { justify-content: center; margin-top: 27px; }
#footer-sns svg { width: 16px; height: 16px; margin: 2px; }
.footer__short { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 40px; padding: 23px 0 13px; min-height: 30px; background: #f3f3f3; font-size: 14px; line-height: 1.4; }
.copyright { height: 60px; line-height: 60px; background: #e8e8e8; color: #333; font-size: 12px; text-align: center; }
@media (max-width: 1200px) {
  .fm { width: 100%; }
  .fm__col:first-child { border-left: 0; }
  .fm__col:last-child { border-right: 0; }
  .fm__item { padding: 48px 30px; }
  .footer__logo .pc { display: none; }
  .footer__logo .sp { display: block; }
}
@media (max-width: 950px) {
  .fm { display: block; }
  .fm__col { width: auto; border-left: 0; border-right: 0 !important; padding: 0; border-bottom: 1px solid var(--line); }
  .fm__item { padding: 40px 30px; text-align: center; border-bottom: 1px solid var(--line); }
  .fm__col .fm__item:last-child { border-bottom: 0; }
  .fm__children { margin-top: 24px; }
  .footer__bottom { border-top: 0; padding: 40px 0; }
  .footer__desc { margin-top: 20px; font-size: 14px; }
  .footer__short { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 0 24px; padding: 0 10px; height: 50px; align-items: center; white-space: nowrap; }
  .copyright { height: 50px; line-height: 50px; }
}
@media (max-width: 750px) {
  .fm__title { font-size: 18px; }
  .fm__sub { font-size: 14px; }
}

/* ---------- 帯の見出し（エントリーなど、本文に大見出しを持たないページ） ---------- */
.ph2 { background: var(--blue); color: #fff; text-align: center; }
.ph2 h1 { font-size: 24px; font-weight: 600; line-height: 80px; }
@media (max-width: 750px) { .ph2 h1 { font-size: 18px; line-height: 50px; } }

/* ---------- エントリーフォーム ---------- */
.entry-lead { text-align: center; }
.entry-lead p { line-height: 2.8; }
.entry-form { max-width: 1030px; margin: 40px auto 0; padding: 50px 150px 70px; background: #f7f7f7; font-size: 14px; }
.entry-form .field { margin-top: 22px; }
.entry-form .field:first-child { margin-top: 0; }
.entry-form .label { display: block; margin-bottom: 10px; font-weight: 600; line-height: 1.6; }
.entry-form .req { margin-left: .3em; color: #c0392b; font-size: 12px; }
.entry-form .note { display: block; margin-top: 6px; color: #666; font-size: 12px; line-height: 1.6; }
.entry-form input[type=text], .entry-form input[type=email], .entry-form input[type=tel], .entry-form input[type=url], .entry-form textarea { display: block; width: 100%; padding: 6px 8px; border: 1px solid #ccc; background: #fff; font-size: 14px; line-height: 1.6; }
.entry-form input[type=file] { display: block; width: 100%; padding: 6px; border: 1px solid #ccc; background: #f3f3f3; font-size: 14px; }
.entry-form textarea { height: 170px; resize: vertical; }
.entry-form input:focus, .entry-form textarea:focus { border-color: var(--blue); }
.entry-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.entry-form .submit { display: block; width: 225px; height: 48px; margin: 40px auto 0; background: #333; color: #fff; font-size: 14px; cursor: pointer; transition: background-color .2s; }
.entry-form .submit:hover { background: var(--blue); }
.entry-form .submit:disabled { opacity: .6; cursor: wait; }
.entry-form .result { margin-top: 24px; padding: 14px 18px; line-height: 1.8; border: 1px solid; }
.entry-form .result[hidden] { display: none; }
.entry-form .result.is-ok { border-color: #46b450; color: #2e7d32; background: #fff; }
.entry-form .result.is-error { border-color: #dc3232; color: #b71c1c; background: #fff; }
@media (max-width: 1200px) { .entry-form { padding: 40px 60px 60px; } }
@media (max-width: 750px) { .entry-form { padding: 30px 20px 40px; margin-top: 24px; } .entry-lead p { line-height: 2; } }
