/* ==========================================================================
   Design tokens â€” CSS custom properties
   Mirror the Tailwind color config in header.php so plain CSS can reference
   the same palette via var(--color-*).
   ========================================================================== */
:root {
  --color-main: #014ed3;
  --color-sub: #e1b635;
  --color-accent: #ff1484;
  --color-paragraph: #000000;
  --color-corporate-50: #e6edfb;
  --color-corporate-100: #b3c8f3;
  --color-corporate-500: #014ed3;
  --color-corporate-700: #013ea8;
  --color-corporate-800: #012f7f;
  --color-corporate-900: #001f54;
}

.bg-section-vibrant {
	background-color: #e2e9f5;
}

@media screen and (max-width: 1024px) {
	.bg-section-vibrant-tablet {
		background-color: unset;
	}
}

.av-link-text {
  color: var(--color-paragraph);
  border-bottom: 1px solid var(--color-paragraph);
  background-image: linear-gradient(
    var(--color-paragraph),
    var(--color-paragraph)
  );
  background-repeat: no-repeat;
  background-position: bottom right; /* ä¸‹ç·šã®åˆæœŸä½ç½® */
  background-size: 0 1px; /* ä¸‹ç·šã®ã‚µã‚¤ã‚ºï¼ˆæ¨ªå¹…ã€é«˜ã•ï¼‰ */
  transition: background-size 0.3s;
}

.av-link-text:hover {
  background-position: bottom left; /* ä¸‹ç·šã®ãƒ›ãƒãƒ¼æ™‚ä½ç½® */
  background-size: 100% 1px; /* ä¸‹ç·šã®æ¨ªå¹…ã‚’100%ã«ã™ã‚‹ */
}

/* ==========================================================================
   AV Button â€” slide-in hover variants
   Mimics l-footer__contact_btn_option type2 animation.
   Base layout classes (px-*, py-*, w-*, flex, etc.) stay on the element.
   ========================================================================== */

/* Shared mechanics */
.av-btn-main-to-accent,
.av-btn-main-to-corporate,
.av-btn-white-to-main {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
}
.av-btn-main-to-accent::before,
.av-btn-main-to-corporate::before,
.av-btn-white-to-main::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.3s ease;
}
.av-btn-main-to-accent:hover::before,
.av-btn-main-to-corporate:hover::before,
.av-btn-white-to-main:hover::before {
  left: 0;
}

/* Variant 1 â€” bg-main â†’ bg-accent */
.av-btn-main-to-accent {
  background-color: var(--color-main);
  color: #fff;
}
.av-btn-main-to-accent::before {
  background-color: var(--color-accent);
}

/* Variant 2 â€” bg-main â†’ bg-corporate-700 */
.av-btn-main-to-corporate {
  background-color: var(--color-main);
  color: #fff;
}
.av-btn-main-to-corporate::before {
  background-color: var(--color-corporate-700);
}

/* Variant 3 â€” bg-white â†’ bg-main */
.av-btn-white-to-main {
  background-color: #fff;
  color: var(--color-main);
  border: 1px solid var(--color-main);
}
.av-btn-white-to-main:hover {
  color: #fff;
}
.av-btn-white-to-main::before {
  background-color: var(--color-main);
}

.content {
  padding-bottom: 0 !important;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.c-breadcrumb__item--home a::before {
  vertical-align: unset !important;
}

/* ==========================================================================
   News on HOME page
   ========================================================================== */
#news_arrow .slick-arrow {
  top: calc(50% + 4px) !important;
}

/* ==========================================================================
   Article list â€” clamp excerpt / title to 3 lines
   ========================================================================== */
.p-article01__excerpt,
.p-article04__title {
  display: -webkit-box;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   MW WP Form â€” submit / back buttons (B2B style)
   ========================================================================== */
.mw_wp_form {
  padding-bottom: 40px;
}
.mw_wp_form #submit-button,
.mw_wp_form #submit-button-back {
  padding-top: 0 !important;
  min-height: 48px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 56px;
  margin-top: 28px !important;
  margin-bottom: 28px !important;
  margin: 0 auto 80px;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.mw_wp_form #submit-button-back {
  margin-top: 10px !important;
  margin-bottom: 60px !important;
}
.mw_wp_form #submit-button:hover,
.mw_wp_form #submit-button-back:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(5, 48, 122, 0.25);
}
.mw_wp_form #submit-button-back {
  background: #fff;
  border: 1px solid #b3c0d6;
  color: #000;
  box-shadow: none;
}
.mw_wp_form #submit-button-back:empty {
  display: none;
}
.mw_wp_form #submit-button input,
.mw_wp_form #submit-button-back input {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  padding: 0;
  cursor: pointer;
}

.mw_wp_form #submit-button:after {
  content: "\e910";
  position: absolute;
  right: 22px;
  font-family: "design_plus";
  font-size: 14px;
}
.mw_wp_form #submit-button-back:after {
  content: "\e90f";
  position: absolute;
  left: 22px;
  font-family: "design_plus";
  font-size: 14px;
}
.page-template-page-contact.page-parent .mw_wp_form #submit-button-back,
.page-template-page-recruit.page-parent .mw_wp_form #submit-button-back,
.error .mw_wp_form #submit-button-back {
  display: none;
}
.page-template-page-contact.page-child .mw_wp_form #submit-button,
.page-template-page-recruit.page-child .mw_wp_form #submit-button {
  margin-bottom: 50px;
}

/* ==========================================================================
   MW WP Form â€” mailform table
   ========================================================================== */
.mailform-tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 18px;
  font-weight: normal;
}
.mailform-tbl th,
.mailform-tbl td,
.mailform-tbl input,
.mailform-tbl textarea,
.mailform-tbl label {
  font-weight: normal;
}
.mailform-tbl tr {
  height: auto;
}
.mailform-tbl th,
.mailform-tbl td {
  border: none;
  background: none;
  vertical-align: middle;
  padding: 0;
}
.mailform-tbl th {
  color: #6b7280;
  font-size: 17px;
  padding-right: 24px;
  position: relative;
}
.mailform-tbl th span.attention {
  position: absolute;
  display: inline-block;
  background: #dc4545;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 8px;
  position: absolute;
  top: 14px;
  right: 8px;
}
.mailform-tbl td input,
.mailform-tbl td textarea,
.mailform-tbl td select {
  width: 100%;
  margin-top: 8px;
  border: none;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 0px 12px !important;
  font-size: 17px;
  color: #111827;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
.mailform-tbl td input:hover,
.mailform-tbl td textarea:hover,
.mailform-tbl td select:hover {
  background: #eceef2;
}
.mailform-tbl td input:focus,
.mailform-tbl td textarea:focus,
.mailform-tbl td select:focus {
  outline: none;
  background: #fff;
  box-shadow:
    0 0 0 2px #e5e7eb inset,
    0 0 0 3px rgba(5, 48, 122, 0.1);
}
.mailform-tbl td input::placeholder,
.mailform-tbl td textarea::placeholder {
  color: #9ca3af;
}
.mailform-tbl td input {
  height: 36px;
}
.mailform-tbl td textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.7;
}
.mailform-tbl td select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%236b7280' stroke-width='1.6' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}
.mailform-tbl td.w60 input {
  width: 60%;
}
.mailform-tbl td.w90 input,
.mailform-tbl td.w90 textarea {
  width: 100%;
}
.mailform-tbl td .mwform-checkbox-field,
.mailform-tbl td .mwform-radio-field {
  display: inline-block;
  margin: 8px 16px 4px 0;
  margin-left: 4px !important;
  vertical-align: middle;
}
.mailform-tbl td .mwform-checkbox-field label,
.mailform-tbl td .mwform-radio-field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #374151;
  cursor: pointer;
  line-height: 1.4;
}
.mailform-tbl td .mwform-checkbox-field input,
.mailform-tbl td .mwform-radio-field input {
  width: auto;
  min-height: auto;
  margin: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  accent-color: #05307a;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Desktop (>= 960px) */
@media screen and (min-width: 960px) {
  .mailform-tbl th {
    width: 30%;
    text-align: left;
    vertical-align: baseline;
    padding-top: 12px;
  }
}

/* Tablet / mobile (<= 959px) */
@media screen and (max-width: 959px) {
  .mailform-tbl td.w60 input,
  .mailform-tbl td.w90 input,
  .mailform-tbl td.w90 textarea {
    width: 100%;
    padding: 0;
  }
  .mailform-tbl tr {
    height: auto;
  }
  .mailform-tbl th,
  .mailform-tbl td {
    text-align: left;
    padding: 0px 0;
  }
  .mailform-tbl th {
    border: none;
    background: none;
    display: block;
    margin-top: 16px;
  }
  .mailform-tbl td {
    padding: 0;
  }
  .mailform-tbl th span.attention {
    padding: 2px 8px;
    font-size: 13px;
    transform: translateY(-13px);
    right: unset;
  }
  .mailform-tbl tr:first-child th {
    margin-top: 0;
  }
  .mailform-tbl td .mwform-checkbox-field {
    display: inline-block;
    width: 100%;
    margin: 4px 12px 4px 0;
    margin-left: 4px !important;
  }
}

/* Tablet (641px â€“ 959px) */
@media screen and (min-width: 641px) and (max-width: 959px) {
  .mailform-tbl {
    margin: 0 0 50px 0;
  }
  .mailform-tbl tbody {
    width: 100%;
    display: block;
  }
}

/* Tablet / desktop (>= 641px) â€” address width tweak */
@media screen and (min-width: 641px) {
  .mailform-tbl td input[type="text"].w40 {
    width: 40%;
  }
  .mailform-tbl td input[type="text"].w90 {
    width: 100%;
  }
}

/* Mobile (<= 640px) â€” full-width inputs */
@media screen and (max-width: 640px) {
  .mailform-tbl td.w60 input,
  .mailform-tbl td.w90 input,
  .mailform-tbl td.w90 textarea,
  .mailform-tbl input.w90 {
    width: 88vw;
  }
}

/* ==========================================================================
   pagetop
   ========================================================================== */
.p-pagetop {
  z-index: 100000 !important;
}
.p-pagetop.is-active {
  z-index: 100000 !important;
}
.p-pagetop a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 0 !important;
}
.p-pagetop a::after {
  content: "\e912";
  position: static !important;
  margin: 0 !important;
  transform: none !important;

  display: inline-block;
  line-height: 1;
}


/* ==========================================================================
   Typography - Font size adjustments
   ========================================================================== */
/* H2: 36px */
html body .av-heading-page,
html body .av-heading-section {
    font-size: 36px !important;
}

/* H3: 22px */
.av-heading-sub,
.text-lg.md\:text-xl {
    font-size: 22px !important;
}

/* Body: 16px */
.av-body,
p,
.text-sm,
.text-base {
    font-size: 16px !important;
    line-height: 1.6;
}

@media screen and (max-width: 640px) {
    .av-heading-page, .av-heading-section {
        font-size: 22px !important;
    }
}

/* ==========================================================================
   Typography - set enable call in SP
   ========================================================================== */
.mobile-link-only {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
}

@media screen and (max-width: 767px) {
    .mobile-link-only {
        pointer-events: auto;
        cursor: pointer;
    }
}

/* ==========================================================================
   Typography - set font title pos
  t ========================================================================== */
.p-entry__title {
    font-weight: bold !important;
}

.p-fotter-nav ul>li a::after {
	display: none !important;
}
.l-footer .p-social-nav {
	display: flex;
	justify-content: end;
}	
	
/** footer **/
@media screen and (min-width: 960px) {
    #menu-nav-menu {
		height: auto !important;
		display: block !important;
    	column-count: 3;
    }
	.l-footer__company {
		margin-bottom: 100px;
	}
	.l-footer li {
		display: block !important;
    }
}
/** end footer **/
