:root {
    --main-color: #0A2E7F;
    --sub-color: #FCC901;
}


@media screen and (min-width:1101px) {
    .u-mobile {
        display: none;
    }
}

@media screen and (max-width:1100px) {
    .u-desktop {
        display: none;
    }
}

/* header */
@media screen and (max-width:1350px) {
    #header_logo img,
    #header_logo2 img {
        width: 22.5vw;
        height: auto;
    }

    #global_menu > ul > li {
        font-size: 14px;
    }
}

/* footer */
#footer_logo img {
    max-width: 500px;
    height: auto;
}

@media screen and (max-width:800px) {
    #footer_logo img {
        max-width: 100%;
    }
	#header_logo img, #header_logo2 img {
		width:250px;
    }
}

/* index */
.blog_carousel .item {
    width: calc(50% - 25px);
}

#header_slider_content .content {
    text-shadow: 0 0 10px black;
}

.news_list + .lp2_group,
.page_navi + .lp2_group,
.blog_list + .lp2_group {
    margin-top: 100px;
}

.news_list + .lp2_group .mt20,
.blog_list + .lp2_group .mt20 {
    margin-top: 20px;
}

.news_list + .lp2_group .mt50,
.blog_list + .lp2_group .mt50 {
    margin-top: 50px;
}

.mt80 {
    margin-top: 80px;
}

@media screen and (max-width: 1100px) {
    .blog_carousel .item {
        width: calc(50% - 10px);
    }
}

@media screen and (max-width:800px) {
    .mt80 {
        margin-top: 40px !important;
    }
}

p,
.lp2_content ul {
    line-height: 2;
}

.lp2_content ul {
    list-style-type: disc;
}

/* custom */
@media only screen and (min-width: 801px) {
    .design_header .large_headline {
        margin-top: -20px;
    }
    /* .title {
        margin-top: -12px !important;
    } */
    .title2 {
        margin-top: 2px !important;
    }
    .title3 {
        margin-top: 2px !important;
    }
    /* #page_header .desc_area {
        margin: -97px auto 140px;
    } */
    #page_header .desc {
        margin-bottom: -3px;
    }
    .post_content:empty+.gallery_content {
        margin-top: -161px;
    }
    .gallery_content_header .desc {
        margin-bottom: -42px;
    }
    .design_header {
        margin-top: 13px !important;
        margin-bottom: 58px;
    }
    .post_content p {
        margin: 0 0 41px 0;
    }
    #page_header .design_header {
        margin: -10px auto 147px;
    }
    #company_message .catch {
        margin: -15px 0 34px 0;
    }
    .gray_bg {
        padding: 134px 0;
    }
    #company_data_list h4 {
        margin: 0px 0 37px 0;
    }
    #company_data_list {
        margin: 55px 0 139px;
    }
    #company_access {
        margin-top: 141px;
    }
    #page_contents {
        padding-bottom: 147px;
    }
    #company_data_list td {
        padding: 0 0 0px 0;
        line-height: 45px;
    }
    .title2 {
        margin-top: -14px;
    }
    .sub_title.colored {
        margin-bottom: -5px !important;
    }
    .company_info {
        margin-top: -3px !important;
        margin-bottom: -3px !important;
    }
}
@media screen and (max-width: 800px) {
    .design_header .large_headline {
        margin-top: -3px;
        !important
    }
    body:not(.show_sidebar) #page_header.large_height .design_header {
        margin: -44px 0 10px 0;
    }
    .sub_title.colored {
        margin-top: 8px;
        margin-bottom: 20px;
    }
    .gray_bg {
        padding: 37px 0;
    }
    #company_message .catch {
        margin: -12px 0 22px 0;
    }
    #page_header .desc_area {
        margin-bottom: 50px;
    }
    .design_header {
        margin-top: 37px;
        margin-bottom: 38px;
    }
    #company_data_list .s_table {
        margin-top: 27px;
        font-size: 14px;
    }
    #company_access {
        margin-top: -13px !important;
    }
    #company_access .qt_google_map {
        margin-top: -5px !important;
        margin-bottom: 32px;
    }
    #page_contents {
        padding-bottom: 39px;
    }
    .company_info {
        font-size: 14px;
        padding-bottom: 2px;
    }
    .title2 {
        margin-top: -20px !important;
    }
    .title3 {
        margin-top: -1px !important;
    }
    .title4 {
        margin-top: -80px !important;
    }
    .post_content p {
        margin: 0 0 37px 0;
    }
    #company_message .post_col img {
        margin: 32px auto 3px !important;
    }
    .name {
        margin-bottom: -2px !important;
    }
    body:not(.show_sidebar) #page_header.large_height {
        height: 250px;
    }
    .design_header .title_area.no_desc {
        margin-top: 28px;
    }
    .shutter_image {
        margin-top: -3px;
    }
    .post_content .s_table table {
        margin-bottom: 25px;
    }
    .info2 {
        margin-bottom: 22px !important;
    }
}

.lp2_content:last-of-type {
    padding-bottom: 90px;
}

.lp3_content {
    margin-bottom: 7rem;
}

.lp3_content .catch {
    margin-bottom: 60px;
}

@media screen and (max-width:1100px) {
    .lp3_content .catch {
        margin-bottom: 30px;
    }
}

.q_styled_ol-2 {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 15px 75px;
}

@media screen and (max-width:1100px) {
    .q_styled_ol-2 {
        display: block;
    }
}

.q_styled_ol li {
    position: relative;
}

.post_content ul {
    list-style: disc;
}

.faq_list .title {
    margin-top: 0 !important;
}

.faq_list {
    margin-top: 30px !important;
    margin-bottom: 70px;
}

@media (max-width: 800px) {
    .post_content > *:first-child.faq_list {
        margin-top: 30px !important;
    }
}


h3.styled_h3.catch {
    border-color: var(--main-color) !important;
    color: var(--main-color) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 32px !important;
}

@media screen and (max-width:800px) {
    h3.styled_h3.catch {
        font-size: 20px !important;
    }
}

.q_frame2 {
    border-color: var(--main-color) !important;
    padding-block: 2em;
}

@media screen and (max-width: 1100px) {
    .q_frame2 {
        margin-top: 50px !important;
    }
}

.q_frame_label {
    color: var(--main-color) !important;
    font-size: 1.25em;
}

/* single */
#single_post_header.single_post_header-full {
    width: 100%;
}

#main_col.main_col-full {
    width: 100%;
}

#comments {
    display: none;
}


a.q_custom_button1 {
    width: 280px;
    height: 60px;
    line-height: 60px;
    border-radius: 70px;
    color: #ffffff;
    background-color: #0a2e7f;
    border: none;
}
a.q_custom_button1:before {
    color: #ffffff;
    background-color: #fcc901;
    left: -100%;
}
a.q_custom_button1:hover {}
a.q_custom_button1:hover:before {
    left: 0;
}
@media (max-width: 1200px) {
    a.q_custom_button1 {
        width: 260px;
    }
}
@media (max-width: 800px) {
    a.q_custom_button1 {
        width: 240px;
        height: 50px;
        line-height: 50px;
    }
}

/* recruit */
/* タイムライン本体 */
.flow {
    width: 100%;
    display: grid;
    grid-template-columns: 100%;
    gap: 25px;
    list-style: none !important;
    margin: 0 !important;
    position: relative;
}

.flow::before {
    position: absolute;
    content: "";
    height: 100%;
    width: 2px;
    background-color: var(--main-color);
    left: 75px;
    top: 0;
}
.flow__step {
    position: relative;
    background-color: #fff;
    padding-left: 56px;
    padding-block: 52px;
    z-index: 1;
}
.flow__num {
    display: inline-grid;
    place-items: center;
    inline-size: 36px;
    block-size: 36px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-weight: 700;
    line-height: 1;
    margin-right: 12px;
    flex: none;
}
.flow__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--main-color);
}
.flow__title {
    margin: 0;
    font-weight: 700;
    margin-top: 0 !important;
}
.flow__desc {
    margin: 0;
    line-height: 1.8;
}
.flow__step {
    border: 1px solid currentColor;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .recruit-flow {
        padding-block: 32px;
    }
    .flow__num {
        inline-size: 40px;
        block-size: 40px;
    }
}

@media screen and (max-width:800px) {
    .flow__step {
        padding-inline: 24px;
        padding-block: 24px;
    }

    h3.flow__title {
        font-size: 20px;
    }

    .flow__num {
        width: 30px;
        height: 30px;
    }
    .wpcf7 form {
        margin-inline: 0;
    }
}

/* thanks */
.contact-complete {
  text-align: center;
}

.contact-complete__inner {
  max-width: 640px;
  width: 100%;
  margin-inline: auto;
}

.contact-complete__icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  inline-size: 64px;
  block-size: 64px;
  border-radius: 50%;
  border: 2px solid currentColor; 
  margin-bottom: 16px;
  font-size: 2rem;
}

.contact-complete__title {
  margin: 0 0 16px;
  font-weight: 700;
  margin-top: 40px !important;
}

.contact-complete__message {
  margin: 0 0 32px;
  line-height: 1.8;
}

.contact-complete__button {
  display: inline-block;
}

.contact-complete__link {
  display: inline-block;
  padding: 12px 32px;
  border: 2px solid currentColor;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-complete__link:hover {
  background-color: currentColor;
  color: #fff; 
}

/* entry */
/* ---------- ベース ---------- */
.wpcf7 .hidden-fields-container { display: none; }

.wpcf7-form {
  margin-inline: auto;
}

.wpcf7 {
    max-width: 1200px;
    margin-inline: auto !important;
    background: none;
    border: none;
}

.wpcf7-form p {
  margin: 0 0 16px;
}

/* CF7のデフォ改行を抑えてレイアウトを整える */
.wpcf7-form p > label {
  display: block;
  margin: 0;
}
.wpcf7-form p > label > br { display: none; }

/* ラベル（フォントサイズ/色は親に任せる） */
.wpcf7-form p > label::first-line {
  font-weight: 700;
}

/* 入力要素共通 */
.wpcf7-form .wpcf7-form-control.wpcf7-text,
.wpcf7-form .wpcf7-form-control.wpcf7-email,
.wpcf7-form .wpcf7-form-control.wpcf7-tel,
.wpcf7-form .wpcf7-form-control.wpcf7-textarea,
.wpcf7-form .wpcf7-form-control.wpcf7-select
 {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: none;
  border-radius: 10px;
  /* line-height: 1.6; */
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
    display: block;
    width: 100%;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 10px;
    max-width: 100%;
}

.wpcf7-form-control-wrap input {
    display: block;
    width: 100%;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 10px;
}


/* フォーカス */
.wpcf7-form .wpcf7-form-control:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--main-color) 25%, transparent);
}

/* テキストエリア */
.wpcf7-form .wpcf7-form-control.wpcf7-textarea {
  min-height: 160px;
  resize: vertical;
}

/* セレクト（矢印はネイティブのまま） */
.wpcf7-form .wpcf7-form-control.wpcf7-select {
  background-color: #fff;
  appearance: auto;
}


/* 必須（ブラウザの赤枠を上書き） */
.wpcf7-form .wpcf7-form-control[aria-required="true"] {
  background-image: linear-gradient(#fff,#fff);
}

/* バリデーション（エラー） */
.wpcf7-form .wpcf7-not-valid {
  border-color: #e11d48; /* 目立たせたい場合はここも var(--main-color) に変更可 */
  box-shadow: 0 0 0 3px color-mix(in srgb, #e11d48 20%, transparent);
}
.wpcf7-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  display: block;
  color: #e11d48;
}

/* 送信結果メッセージ */
.wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 2px solid currentColor;
  border-radius: 8px;
}
.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--main-color);
  background: color-mix(in srgb, var(--main-color) 8%, transparent);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  border-color: #e11d48;
  background: color-mix(in srgb, #e11d48 8%, transparent);
}

/* スピナー（CF7の既定要素を見栄え良く） */
.wpcf7 .wpcf7-spinner {
  margin-left: 8px;
  width: 20px; height: 20px;
  border: 2px solid transparent;
  border-top-color: var(--main-color);
  border-left-color: var(--main-color);
  border-radius: 50%;
  animation: wpcf7spin .6s linear infinite;
}
@keyframes wpcf7spin { to { transform: rotate(360deg); } }

/* 送信ボタン */
.wpcf7-form .wpcf7-submit,
.wpcf7 .wpcf7-submit, .wpcf7 .wpcf7-previous {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--main-color) !important;
  border-radius: 999px;
  background: var(--main-color) !important;
  color: inherit;         /* 文字色は親に任せる */
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  transition: background-color .25s ease, color .25s ease, transform .05s ease;
}
.wpcf7-form .wpcf7-submit:hover {
  background: var(--main-color);
  color: #fff;
}
.wpcf7-form .wpcf7-submit:active {
  transform: translateY(1px);
}

/* レイアウト（2カラム → SPで1カラム） */
@media (min-width: 801px) {
  .wpcf7-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
  }
  /* 幅広にしたい行は .is-full を p に付ける運用想定 */
  .wpcf7-form p { margin: 0; }
  .wpcf7-form p:is(:has(textarea,.full-confirm), .is-full) {
    grid-column: 1 / -1;
  }
  /* ボタン行 */
  .wpcf7-form p:has(.wpcf7-submit) {
    grid-column: 1 / -1;
    margin-top: 4px;
    display: flex; gap: 8px; align-items: center;
  }
}

.contact-text,
p:has(.wpcf7-submit) {
    grid-column: span 2;
    text-align: center;
}

/* SPは1カラム */
@media (max-width: 800px) {
  .wpcf7-form p:has(.wpcf7-submit) {
    display: flex; gap: 8px; align-items: center;
  }
  .contact-text {
    grid-column: unset;
  }
}


.wpcf7-response-output,
.wpcf7-spinner {
    display: none;
}

/* single */
#single_post_header_image {
	aspect-ratio:unset;
	text-align:center;
}
#single_post_header_image img {
	position:relative;
	width:auto;
	height: auto;
	max-width:100%;
	max-height:100%;
	object-fit:cover;
	aspect-ratio:840 / 560;
}

/* confirm */
.confirm-text {
    width: 100%;
    padding: 6px 14px;
    background: #fff;
    border: none;
    border-radius: 10px;
    /* line-height: 1.6; */
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    -webkit-appearance: none;
        -moz-appearance: none;
            appearance: none;
        display: block;
        width: 100%;
        border: 1px solid rgba(0,0,0,.15);
        border-radius: 10px;
        max-width: 100%;
}