/*
Theme Name: P-Connect
Theme URI: https://www.p-connect.co.jp/
Description: 株式会社ピーコネクトの WordPress テーマ。静的 HTML から WordPress のデファクトスタンダードに準拠したテーマとして作り変えます。
Author: Antigravity
Version: 1.0.0
Text Domain: p-connect
*/

/* WordPress 標準のリセットやベーススタイル (必要に応じて追加) */
@import url('assets/css/pc/common.css');
@import url('assets/css/pc/form.css');
@import url('assets/css/pc/slick.css');
@import url('assets/css/meiryo.css');
@import url('assets/css/MingCute.css');
@import url('assets/css/pc/index.css');
@import url('assets/css/bkn/bknIcon.css');

/* 20260430_追加*/
div{
	font-size: 1.25rem;
}
div, p, li, td{
	font-family: "Noto Sans JP", sans-serif;
}
@media screen and (max-width: 480px) {
	div{
	font-size: 1.125rem;
	}
}
li, td{
	font-size: 1.125rem;
}
.btn{
	font-size: 1.125rem !important;
	line-height: 2rem !important;
}
.top-hero{
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hover-opacity:hover{
	opacity: 1;
}
@media screen and (max-width: 480px) {
	.mb-5{
		margin-bottom: 0 !important;
	}
}
/* Base Responsive Styles */
img {
    max-width: 100%;
    height: auto;
}

/* Legacy CSS Overrides for Bootstrap Compatibility */
.ui-narrow-section {
    max-width: 800px;
    width: 100% !important;
    margin-inline: auto;
}

.ui-full-screen {
    width: 100% !important;
    margin-inline: 0 !important;
    max-width: 100% !important;
}

.l-header, .l-footer, .l-contents {
    width: 100% !important;
    overflow-x: hidden;
}

.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Fix for custom classes that might have fixed widths */
[class*="__inner"], [class*="__wrap"] {
    max-width: 100% !important;
}

/* Brand Colors */
.bg-brand {
    background-color: #e67e22 !important;
}

.text-brand {
    color: #e67e22 !important;
}

.btn-brand {
    background-color: #e67e22;
    border-color: #e67e22;
    color: #fff;
}

.btn-brand:hover {
    background-color: #d35400;
    border-color: #d35400;
    color: #fff;
}

.hd-pattern4__nav ul {
    display: flex !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.hd-pattern4__nav ul li {
    flex: 1;
    text-align: center;
    border-right: 1px solid #fff;
}

.hd-pattern4__nav ul li:first-child {
    border-left: 1px solid #fff;
}

.nav-brand .menu__link, 
.nav-brand .nav-link,
.nav-brand .hd-pattern4__link {
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    opacity: 1 !important;
    display: block !important;
    width: 100% !important;
    padding: 12px 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.nav-brand .menu__link:hover,
.nav-brand .nav-link:hover,
.nav-brand .hd-pattern4__link:hover,
.nav-brand .current-menu-item > a,
.nav-brand .current_page_item > a {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #e67e22 !important;
    text-decoration: none !important;
    opacity: 1 !important;
}

/* Page Hero Section */
.page-hero {
    height: 250px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.page-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.page-hero__title {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .page-hero {
        height: 180px;
    }
    .page-hero__title {
        font-size: 1.8rem;
    }
}

/* Responsive Global Reset */
:root {
    --screen-size: 1140px;
}

@media (max-width: 1200px) {
    :root {
        --screen-size: 100% !important;
    }
    
    .l-wrapper {
        min-width: 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    .l-main, 
    .breadcrumbs, 
    .l-header, 
    .l-footer, 
    .l-contents, 
    .container, 
    [class*="__inner"], 
    [class*="__wrap"],
    .ui-contents-centering, 
    .content__inner,
    .footer__inner, 
    .menu__inner, 
    .searchlink__inner, 
    .ui-narrow-section__news,
    .md-full-screen-slider__section,
    .md-full-screen-slider__list.md-slider__osusume,
    .ui-mid-section,
    .search-nav, 
    .search-tag, 
    .main_table .td,
    .ui-narrow-section {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-inline: 15px !important;
        margin-inline: auto !important;
    }
}
@media (max-width: 768px) {
    .page-hero {
        height: 180px;
    }
    .page-hero__title {
        font-size: 1.6rem !important;
    }
    .display-6 {
        font-size: 1.8rem !important;
    }
}

/* Mobile Menu Toggle */
#js-menu-contents[aria-hidden="false"] {
    right: 0 !important;
}

.mobile-nav .menu-item a {
    display: block;
    color: #333 !important;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none !important;
    font-weight: bold;
}


.mobile-nav .menu-item a:hover {
    background-color: #f8f9fa;
    color: #e67e22 !important;
}

:root {
    --main-color: #ee7800; /* ブランドカラー：オレンジ */
}

.btn-brand {
    background-color: var(--main-color) !important;
    border-color: var(--main-color) !important;
    color: #fff !important;
}

.btn-brand:hover {
    background-color: #d66b00 !important;
    border-color: #d66b00 !important;
    color: #fff !important;
    opacity: 0.9;
}

.bg-brand {
    background-color: var(--main-color) !important;
}

.text-brand {
    color: var(--main-color) !important;
}

.border-brand {
    border-color: var(--main-color) !important;
}

.btn-outline-brand {
    color: var(--main-color) !important;
    border: 2px solid var(--main-color) !important;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-brand:hover {
    background-color: var(--main-color) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.fill-white {
    fill: #fff !important;
}

/* Footer Styles */
.footer__nav .nav-link {
    transition: all 0.3s ease;
}

.footer__nav .nav-link:hover {
    padding-left: 10px !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.hover-opacity-07 {
    transition: opacity 0.3s ease;
}

.hover-opacity-07:hover {
    opacity: 0.7;
}

.sidebar-sticky {
    z-index: 10 !important;
}

@media (min-width: 992px) {
    .sidebar-sticky {
        position: sticky;
        top: 100px;
    }
}


.breadcrumb li,
.breadcrumb li a {
    font-size: 0.85rem;
}
@media screen and (max-width:768px) {
    .breadcrumb li,
    .breadcrumb li a {
        font-size: 0.75rem;
    }
}


/* Header Adjustments */
.hd-pattern4__time {
    border-right: none !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
}

/* Offcanvas Styles */
.offcanvas {
    max-width: 85%;
}

.offcanvas-header {
    background-color: #f8f9fa;
}

.offcanvas-body .mobile-nav .nav-link,
.offcanvas-body .mobile-nav a {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.offcanvas-body .mobile-nav a:hover {
    color: var(--main-color);
}

.offcanvas-body .mobile-nav li:last-child a {
    border-bottom: none;
}

.offcanvas-info-box {
    background-color: #fff9f4;
    border: 1px solid #ffe8d6;
}

/* Mega Menu Styles */
#megaMenu.collapse:not(.show) {
    display: none;
}

#megaMenu .nav-link {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#megaMenu .nav-link:hover {
    transform: translateX(5px);
    opacity: 0.8;
}

.btn-mega-toggle {
    background-color: #fff !important;
    border: none !important;
    transition: opacity 0.3s ease;
}

.btn-mega-toggle:hover {
    opacity: 0.8 !important;
    background-color: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

.footer__nav .nav-item,
.footer__nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    list-style: none;
}

.footer__nav li.list-inline-item,
.list-inline-item {
    border-bottom: none !important;
    display: inline-block !important;
}

.footer__nav li:last-child {
    border-bottom: none;
}


.footer__list-link {
    color: #fff !important;
    text-decoration: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}


.footer__list-link:hover {
    color: #fff !important;
    opacity: 0.8;
    transform: translateX(5px);
}

.hover-opacity-07:hover {
    opacity: 0.7;
}


/**
 * ContactForm7
 */
.cf-area {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	padding: 0 0;
	border-bottom: 1px dashed #ccc;
	transition: all .3s;
}

.cf-area:last-child {
	border-bottom: none;
}

.cf-area dt {
  width: 200px;
  padding-right: 30px;
  text-align: right;
	line-height:1.5em;
}

.cf-area dd {
    flex: 1;
}

.cf-area input[type="text"],
.cf-area input[type="submit"],
.cf-area textarea {
  width: 100%;
  padding: 0.8em;
  border: none;
  background-color: #e6e6e6;
  font-size: 16px;
	resize: vertical;
	transition: all .3s;
}

.cf-area input[type="text"]:focus,
.cf-area input[type="submit"]:focus,
.cf-area textarea:focus {
	outline: none;
	background: #dde2e9;
}

.cf-required {
	background: #b91e23;
	color: #fff;
	font-size: 0.8em;
	padding: 0 5px 2px;
	border-radius: 2px
}

.cf-send input {
	display: block;
	background: linear-gradient(135deg, #6b7a8e 0%, #3b4a5e 100%);
	width: 300px;
	height: 60px;
	margin: 30px auto 0;
	border: none;
	border-radius: 10px;
	color: #fff;
	box-shadow: 2px 5px 15px 0 rgba(0, 0, 0, .2);
	font-size: 1.3em;
	font-weight: bold;
	transition: all .3s;
}

.cf-send input:hover {
	filter: brightness(1.25);
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
	background-color: #fce3e3;
	border: none;
	text-align: center;
}

@media screen and (max-width:768px){
	.cf-area {
		display: block;
	}

	.cf-area dt {
    width: 100%;
		margin-bottom: 5px;
    padding-right: 0;
    text-align: left;
		line-height:1.5em;
	}
}

.bg-light-orange {
    background-color: #fdf8f5;
}

.content-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    padding: 3rem 1rem;
    text-decoration: none !important;
    color: #333 !important;
    font-weight: bold;
    font-size: 1.4rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
}

.content-card span {
    z-index: 2;
    position: relative;
}

.content-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 35px 35px;
    border-color: transparent transparent var(--main-color) transparent;
    transition: all 0.3s ease;
}

.content-card::before {
    content: '\F285'; /* bootstrap icon chevron-right */
    font-family: "bootstrap-icons";
    position: absolute;
    bottom: 4px;
    right: 4px;
    color: #fff;
    font-size: 0.7rem;
    z-index: 5;
    line-height: 1;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: var(--main-color);
}

.content-card:hover::after {
    border-width: 0 0 45px 45px;
}
@media screen and (max-width: 480px) {
	.content-card {
		padding: 1.5rem 0;
		font-size: 1.125rem;
	}
}

.company-info-box {
    background-color: #b05b36; /* 茶褐色：画像の色味に合わせる */
    color: #fff;
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    max-width: 450px;
    border-radius: 5px;
    z-index: 10;
}

@media (max-width: 991.98px) {
    .company-image-wrap {
        text-align: center !important;
        padding-right: 0 !important;
    }
    .company-image-wrap img {
        width: 100% !important;
    }
    .company-info-box {
        position: relative;
        bottom: 0;
        margin-top: -40px;
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
    }
}