/*****************
 全体設定
*****************/
html, body {
  overflow-x: hidden !important;
}
h1 a img {
	display: block;
}

.hfe-nav-menu__toggle {
  z-index: 10000 !important;
}

.oswald-title h1,
.oswald-title h2 {
	font-size: 3.75rem;
	font-family: "Oswald", sans-serif;
	color: #333;
}
.oswald-title h1 span:not(.char),
.oswald-title h2 span:not(.char) {
	font-size: 5rem;
	color: #007cc8;
	vertical-align: bottom;
} 
.oswald-title-sub p {
	font-size: 1.1875rem;
	margin-bottom: 10px !important;
}
.subpage main .oswald-title h2 {
	font-size: 2.5rem;
	font-family: "Oswald", sans-serif;
	color: #333;
}
.page-numbers.prev,
.page-numbers.next {
  display: none !important;
}

/* 見出しアニメーション */
.char {
  display: inline-block;
  white-space: pre; /* 空白の潰れ防止 */
  opacity: 0;
  transform: translateY(20px);
}
.char.animate {
  animation: fadeUp 0.8s ease forwards;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blue {
	color: #007CC8;
}
.mincho p {
	font-size: 2.25rem;
	font-family: "Shippori Mincho", serif;
	font-weight: 600;
	letter-spacing: 0.2rem;
/* 	color: #606060; */
	color: #333;
	margin-bottom: 0;
}
.mincho.philosophy p {
	font-size: 1.875rem;
}
.mincho.policy ul li {
	padding: 10px;
}
.mincho.policy p {
	font-size: 1.75rem;
}
.mincho.policy.small p {
	font-size: 1.625rem;
}

/* Elementor のライトボックスを強制的に無効化 */
/* .elementor-lightbox {
	display: none !important;
} */

/* table基本 */
.tablepress tr td {
	border-top: 1px solid #999;
	font-size: 0.875rem;
}
.tablepress tr:last-of-type td {
	border-bottom: 1px solid #999;
}
/* table tdの間に50pxアキ */
.table-wrapper .tablepress td {
	position: relative;
	padding-right: 50px; /* セル間スペースの代用 */
	border: none;
	font-size: 1rem;
}
.table-wrapper .tablepress td::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 1px;
	width: calc(100% - 50px); /* 右のスペース分は除外 */
	background-color: #999; /* 線の色 */
}
.table-wrapper .tablepress td:first-of-type {
	width: 20em;
}
.table-wrapper .tablepress td:last-of-type {
	padding-right: 0;
}
.table-wrapper .tablepress td:last-of-type::before {
	width: 100%;
}
.table-wrapper .tablepress tbody tr:last-child td {
	border: none;
}
.table-wrapper .tablepress tbody tr:last-child td::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: calc(100% - 50px);
  background-color: #999;
}

.absolute {
	position: absolute;
	z-index: 2;
}
.w100 img {
	width: 100%;
}
@media (max-width: 767px) {
	.oswald-title h1,
	.oswald-title h2 {
		font-size: 2.25rem;
		font-family: "Oswald", sans-serif;
		color: #333;
	}
	.oswald-title h1 span:not(.char),
	.oswald-title h2 span:not(.char) {
		font-size: 3.5rem;
		color: #007cc8;
		vertical-align: bottom;
	} 
	.oswald-title-sub p {
		font-size: 1rem;
	}
	.subpage main .oswald-title h2 {
		font-size: 2rem;
		font-family: "Oswald", sans-serif;
		color: #333;
	}
	.mincho p {
		font-size: 1.5rem;
	}
	.mincho.philosophy p {
		font-size: 1.25rem;
	}
	.mincho.policy ul li {
		padding: 5px;
	}
	.mincho.policy p {
		font-size: 1.25rem;
	}
	.mincho.policy.small p {
		font-size: 1.15rem;
	}
	.order1 {
		order: 1;
	}
	.order2 {
		order: 2;
	}
	.table-wrapper .tablepress td {
		padding-right: 20px;
	}
	.table-wrapper .tablepress td::before {
		width: calc(100% - 20px);
	}
	.table-wrapper .tablepress td:first-of-type {
		width: 9em;
	}
	.table-wrapper .tablepress tbody tr:last-child td::after {
		width: calc(100% - 20px);
	}
}

/*****************
 メインナビゲーション
*****************/
nav ul.hfe-nav-menu {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

nav ul.hfe-nav-menu > li.menu-item {
  position: relative;
  display: inline-block;
  cursor: pointer;
  height: 2.5em;
  line-height: 2.5em;
  vertical-align: middle;
  flex: 1;
  text-align: center;
  overflow: hidden;
}

nav ul.hfe-nav-menu > li.menu-item:last-child {
  overflow: visible;
}

/*****************
 メニューリンク構造（UAEL対応）
*****************/
nav ul.hfe-nav-menu > li.menu-item > a.hfe-menu-item {
  position: relative;
  display: block;
  height: 100%;
}

/*****************
 言語切替（通常時）
*****************/
nav ul.hfe-nav-menu > li.menu-item > a.hfe-menu-item .en,
nav ul.hfe-nav-menu > li.menu-item > a.hfe-menu-item .jp {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

nav ul.hfe-nav-menu > li.menu-item > a.hfe-menu-item .jp {
  opacity: 0;
}

nav ul.hfe-nav-menu > li.menu-item:hover > a.hfe-menu-item .en {
  opacity: 0;
}

nav ul.hfe-nav-menu > li.menu-item:hover > a.hfe-menu-item .jp {
  opacity: 1;
}

/*****************
 ボタンスタイル
*****************/
.menu-item .elementor-button {
	width: max-content;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	margin-left: 1rem;
	padding: 0 15px !important;
}

/*****************
 レスポンシブ対応（〜1024px）
*****************/
@media (max-width: 1024px) {
  nav ul.hfe-nav-menu {
    flex-direction: column;
    align-items: center;
  }

  nav ul.hfe-nav-menu > li.menu-item {
    height: auto;
    line-height: 1.5;
    border-bottom: none !important;
  }

  nav ul.hfe-nav-menu > li.menu-item > a.hfe-menu-item .en,
  nav ul.hfe-nav-menu > li.menu-item > a.hfe-menu-item .jp {
    position: static;
    transform: none;
    opacity: 1;
  }

  nav ul.hfe-nav-menu > li.menu-item:hover > a.hfe-menu-item .en,
  nav ul.hfe-nav-menu > li.menu-item:hover > a.hfe-menu-item .jp {
    opacity: 1 !important;
  }

  nav ul.hfe-nav-menu > li.menu-item > a.hfe-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5em 0;
    height: auto;
    line-height: 1.4;
  }

  nav ul.hfe-nav-menu > li.menu-item > a.hfe-menu-item .en {
    font-size: 0.95rem;
    font-weight: bold;
  }

  nav ul.hfe-nav-menu > li.menu-item > a.hfe-menu-item .jp {
    font-size: 0.85rem;
    color: #666;
  }

  #menu-item-55 a {
    font-size: 0.85rem;
    color: #666;
  }

  .elementor-element-8cb7264 {
    position: absolute;
    top: 10px;
	right: 10px;
  }

  nav.menu-is-active {
    position: fixed !important;
    inset: 0;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    overflow-y: auto !important;
    padding-top: 80px; /* ヘッダーの高さに応じて調整 */
  }

  nav.menu-is-active ul.hfe-nav-menu {
    flex-direction: column;
	flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start; /* 上部揃え */
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    height: auto !important;
    box-sizing: border-box;
  }
	
  nav.menu-is-active ul.hfe-nav-menu > li:last-of-type {
	  padding-bottom: 120px !important;
  }

  nav.menu-is-active ul.hfe-nav-menu > li.menu-item {
    flex: none;
    width: 100%;
    padding: 0.5em 0;
    text-align: center;
    height: auto;
  }
}

/*****************
フッター footer
*****************/
footer .contact p {
	margin-bottom: 10px;
}
footer .hfe-nav-menu {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;;
}
footer .hfe-nav-menu a {
	text-align: left;
	padding: 6px 0 !important;
	display: block;
}

/*****************
セクション区切り .svg-divider
*****************/
.svg-divider {
	position: absolute;
    top: -1px;
    z-index: 1;
}


/*****************
トップページ .home
*****************/
.home header {
  background: transparent !important;
  position: absolute !important;;
  width: 100%;
}
.elementor-element-e5c9f09 {
	position: absolute;
	bottom: -8px;
	z-index: 1;
}

/* NEWS */
.home .news h2 {
	font-size: 2.25rem;
}
.home .news h2 span {
	font-size: 1rem;
	margin-left: 20px;
}
.home .news .elementor-button:before {
	content: "";
	display: block;
	width: 1px;
	height: 40px;
	background-color: #999;
	position: absolute;
	left: -20px;
	top: 0;
}
.home .news .my-recent-posts {
	padding-left: 0;
}
.home .news .my-recent-posts li {
	list-style: none;
	margin-bottom: 10px;
}
.home .news .my-recent-posts li a {
	margin-left: 20px;
	text-decoration: none;
}

/* ABOUT US */
.home .aboutus table td:first-of-type {
	width: 10em;
}

/* AWARD */
@media (max-width: 767px) {
	.home .award-item {
		height: 70vw;
	}
}

/* BLOG */
.home .my-featured-posts {
	display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
	gap: 20px;
}
.home .my-featured-posts .my-post-item {
	width: calc((100% - 20px) / 2);
	overflow: hidden;
}
.home .my-featured-posts .my-post-item img {
	width: 100%;
	transition: transform .5s ease;
}
.home .my-featured-posts .my-post-item:hover img {
	transform: scale(1.1);
}
@media (max-width: 1025px) {
	.home .my-featured-posts .my-post-item {
		width: calc((100% - 60px) / 4);
	}
}

/* SDGs */
.home .sdgs-text p {
	margin-bottom: 0;
}
.home .sdgs-text ul {
	margin-top: 0;
}

/*****************
アーカイブ .archive
*****************/
.archive h1 {
	
}

/*****************
MESSAGE .page-slug-message
*****************/
.page-slug-message .department {
	font-size: 0.875rem;
}

/*****************
CONSTRUCTION .page-slug-page-slug-construction
*****************/
.page-slug-construction .elementor-element-2ab49f4 > div {
	width: calc((100% - 150px)/4);
}
.page-slug-construction .elementor-element-2ab49f4 > div a {
	width: 100%;
}
.page-slug-construction .elementor-button-link .elementor-button-content-wrapper {
	justify-content: space-between;
}
.page-slug-construction .title p {
	font-size: 1.0625rem;
	font-weight: 600;
	margin-bottom: 10px;
}
.page-slug-construction .detail {
	font-size: 0.875rem;
	border-bottom: 1px solid;
}
.page-slug-construction .detail p {
	margin-top: 10px;
	margin-bottom: 10px;
}
@media (max-width: 850px) {
	.page-slug-construction .elementor-element-2ab49f4 > div {
		width: calc((100% - 100px)/3);
	}
}
@media (max-width: 767px) {
	.page-slug-construction .elementor-element-2ab49f4 > div {
		width: calc((100% - 30px)/2);
	}
	.page-slug-construction .con-wrap {
		width: calc((100% - 20px)/2);
	}
	.page-slug-construction .title p {
		margin-bottom: 0;
	}
}

/*****************
採用情報の募集要項 .page-slug-new-graduate, .page-slug-mid-career
*****************/
.page-slug-new-graduate main h3,
.page-slug-mid-career main h3 {
	font-size: 1.75rem;
	font-weight: 500;
}
.page-slug-new-graduate main .absolute,
.page-slug-mid-career main .absolute {
	right: 0;
}
/* 全体を囲む親ブロック */
.page-slug-new-graduate main .custom-block {
	width: calc((100% - 50px)/2);
	min-height: 100%; 
	display: flex;
	flex-direction: column;
	position: relative;
	padding-top: 20px;
}
/* アイコンを浮かせて左上に配置 */
.page-slug-new-graduate main .icon-wrapper {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 2;
}
.page-slug-new-graduate main .icon-wrapper .icon {
	width: max-content;
	height: auto;
}
/* タイトルブロック（三角形＋タイトルの並び） */
.page-slug-new-graduate main .title-block {
	position: relative;
	display: flex;
	align-items: center;
	height: 40px;
}
/* 左側の三角形（鋭角な横長三角） */
.page-slug-new-graduate main .triangle {
	width: 100px;
	height: 40px;
	background-color: #007cc8;
	clip-path: polygon(0% 100%, 100% 0%, 100% 100%);
}
/* タイトルの背景付きボックス */
.page-slug-new-graduate main .title-box {
	background-color: #007cc8;
	color: #fff;
	height: 40px;
	width: calc(100% - 100px);
	padding: 0 20px;
	display: flex;
	justify-content: center;
}
/* タイトルテキスト */
.page-slug-new-graduate main .title-text {
	margin: 0;
	font-size: 1.25rem;
	font-weight: bold;
	text-align: left;
	white-space: nowrap;
}
.page-slug-new-graduate main .title-text p {
	margin-bottom: 0;
}
/* 本文部分（段落やリストなど） */
.page-slug-new-graduate main .content-body {
	font-size: 1em;
	color: #333;
	line-height: 1.6;
	background-color: #fff;
	padding: 30px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}
.page-slug-new-graduate main .content-body .head p {
	font-weight: 600;
	color: #007cc8;
	padding-bottom: 5px;
	margin-bottom: 0;
	border-bottom: 1px solid;
}

@media (max-width: 880px) {
	.page-slug-new-graduate main .absolute,
	.page-slug-mid-career main .absolute {
		position: static;
	}
}
@media (max-width: 767px) {
	.page-slug-new-graduate main .custom-block {
		width: 100%;
	}
	.page-slug-new-graduate main .content-body {
		padding: 15px;
	}
}

/*****************
CONTACT .page-slug-contact
*****************/
.page-slug-contact main .tel {
	font-size: 2.25rem;
}
.page-slug-contact main .tel p {
	margin-bottom: 0;
}
/*フォーム関連*/
.wpcf7-form dl {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.wpcf7-form dl dt {
    width: 200px;
}
.wpcf7-form dl dd {
    width: calc(100% - 250px);
}
.wpcf7-form .terms {
    color: #fff;
    padding: 2px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    margin-right: 15px;
}
.wpcf7-form .terms.require {
    background-color: #333;
}
.wpcf7-form .bold {
    font-weight: 600;
}
.wpcf7-form .confirmation .bold {
    margin-bottom: 10px;
}
.wpcf7-form .privacy {
    font-size: 80%;
    padding-left: 20px;
    margin-top: 20px;
}
.wpcf7-form .privacy a {
    color: var(--ast-global-color-0) !important;
}
.wpcf7-form .confirm {
    text-align: center;
    margin-top: 50px;
}
.wpcf7-form .confirm > .wpcf7-form-control-wrap {
    margin-bottom: 20px;
}
.wpcf7-form .confirm input[type="submit"],
.wpcf7-form .confirm input[type="submit"]:hover,
.wpcf7-form .confirm input[type="submit"]:focus,
.wpcf7-form .confirm input[type="submit"]:active,
.wpcf7-form .confirm input[type="submit"]:disabled {
	padding: 10px 30px;
	border-radius: 0;
}
.wpcf7-form .confirm .wpcf7-spinner {
    display: none;
}

/*****************
請求書登録システム .page-slug-system
*****************/
.page-slug-system main .elementor-button {
	width: 180px;
}
.page-slug-system main .underline {
	border-bottom: 1px solid #999;
	text-indent: -1em;
	padding-left: 1em;
}
/*****************
プライバシーポリシー .page-slug-privacy
*****************/
.page-slug-privacy main .elementor-element-d5223b7 > p {
	margin-bottom: 3rem !important;
}
.page-slug-privacy main ol {
	width: max-content;
    margin-inline: auto;
}
@media (max-width: 767px) {
	.page-slug-privacy main ol {
		width: 100%;
	}
}
/*****************
カテゴリー　.category
*****************/
.category #primary {
	margin-bottom: 4em;
}
.category .ast-pagination {
	display: inline-block;
    width: 100%;
    padding-top: 2em;
    text-align: center;
}
.category .ast-pagination .nav-links {
	display: inline-block;
    width: 100%;
}
.category .ast-pagination .page-numbers {
	display: inline-block;
    width: 2.33333em;
    height: 2.33333em;
    font-size: 1.06666rem;
    line-height: calc(2.33333em - 3px);
    font-weight: 500;
}
.category .my-recent-posts {
	margin: 0 1.5em;
}
.category .my-recent-posts li {
	list-style: none;
    margin-bottom: 10px;
}
.category .my-recent-posts li a {
	margin-left: 20px;
    text-decoration: none;
}

/******************
 投稿 .single
*****************/
.single h1 {
	font-weight: 600;
}
.single .entry-header {
	margin-bottom: 2em;
}
.single main article {
	padding: 1.5em 1em;
}