@charset "UTF-8";
/*
Theme Name: プレミアムプラン コーポレート
Theme URI: https://
Description: sooon株式会社サイトオリジナルテーマ
Author: Arase
Author URI:
Version: 1.0.0

*/

/*

ーカラーの指定方法ー

◎メインカラー  
color: var(--main-color);

◎サブカラー  
color: var(--sub-color);

◎フォントカラー  
color: var(--font-color);

◎背景色  
color: var(--background-color);

*/

.greeting-top .flex-top {
	gap: 30px;
}
.greeting-top .right {
	max-width: 360px;
	margin-right: 0;
}
@media screen and (max-width: 767.9px) {
	.greeting-top .right {
		max-width: 500px;
		margin-right: auto;
	}
}

.service-link::before {
	height: 100%;
}
.service-link img {
	width: 100%;
	height: auto;
}

/* Global navigation: pointer and keyboard accessible submenus. */
.header #menu-gnav > .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 0 3px 9px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
}
@media screen and (min-width: 1200px) {
    .header #menu-gnav > .menu-item-has-children > .sub-menu {
        position: absolute;
        top: 100%;
        left: -22px;
        z-index: 100;
        display: block;
        width: 250px;
        margin: 0;
        padding: 12px 0;
        background: #fff;
        border-top: 3px solid var(--main-color);
        border-radius: 0 0 4px 4px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(6px);
        transition: opacity .18s ease, transform .18s ease, visibility .18s;
    }
    .header #menu-gnav > .menu-item-has-children:hover > .sub-menu,
    .header #menu-gnav > .menu-item-has-children:focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    .header #menu-gnav .sub-menu li { margin: 0; }
    .header #menu-gnav .sub-menu li a {
        display: block;
        height: auto;
        padding: 12px 22px;
        color: var(--main-color);
        font-size: 1.5rem;
        line-height: 1.6;
        white-space: nowrap;
        transition: background-color .18s;
    }
    .header #menu-gnav .sub-menu li a:hover,
    .header #menu-gnav .sub-menu li a:focus-visible {
        background: #f0f5fa;
        opacity: 1;
        outline-offset: -3px;
    }
}
@media screen and (max-width: 1199.9px) {
    .header #menu-gnav .sub-menu { margin: 12px 0 0 16px; }
    .header #menu-gnav .sub-menu li { margin-bottom: 0; }
    .header #menu-gnav .sub-menu li a {
        padding: 11px 10px;
        border-bottom: 1px solid #dce3ea;
        font-size: 1.4rem;
    }
}

.p-security__main .right { aspect-ratio: auto; margin: 16px auto 65px; }
.p-security__main .right img:nth-child(1) { position: static; display: block; height: auto; }

/* Certifications retain the site's existing typography and section spacing. */
.p-qualifications { padding: 0 0 100px; }
.p-qualifications__intro { margin: 0 0 45px; line-height: 2; }
.p-qualifications__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.p-qualifications__card { min-width: 0; }
.p-qualifications__image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 340px;
    padding: 20px;
    background: #f5f7f9;
    border: 1px solid #e1e6eb;
}
.p-qualifications__image img { width: 100%; height: 100%; object-fit: contain; }
.p-qualifications__card h3 { margin: 20px 0 8px; color: var(--main-color); font-size: 2rem; font-weight: 600; }
.p-qualifications__card p { line-height: 1.9; }
.p-qualifications__meta { margin-top: 12px; font-size: 1.3rem; color: #555; }
.p-qualifications__link { display: inline-block; margin-top: 14px; color: var(--main-color); text-decoration: underline; text-underline-offset: 4px; }
.p-qualifications__permits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 70px; }
.p-qualifications__permit { padding: 30px; border-top: 3px solid var(--main-color); background: #f5f7f9; }
.p-qualifications__permit h3 { margin-bottom: 14px; color: var(--main-color); font-size: 2.2rem; font-weight: 600; }
.p-qualifications__permit p { line-height: 2; }
@media screen and (max-width: 1024px) {
    .p-qualifications__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 767.9px) {
    .p-qualifications { padding-bottom: 60px; }
    .p-qualifications__grid, .p-qualifications__permits { grid-template-columns: 1fr; gap: 36px; }
    .p-qualifications__image { height: 380px; }
    .p-qualifications__card h3 { font-size: 1.9rem; }
    .p-qualifications__permits { margin-top: 45px; gap: 24px; }
    .p-qualifications__permit { padding: 24px; }
    .page-id-1423 .page_top_title { font-size: clamp(2.4rem, 6.5vw, 3.6rem); }
}

/* This scanned sign has content at y=186..970 in a 1241x1755 image.
   Show y=150..1000, retaining the entire sign and all explanatory notes.
   Scope the display crop to this scan so replacement images are unaffected. */
.p-security__main .right:has(img[src$="988944d68e0ac164fd2b652f52508721.jpg"]) {
    aspect-ratio: 1241 / 850;
    overflow: hidden;
    margin-bottom: 95px;
}
.p-security__main .right img[src$="988944d68e0ac164fd2b652f52508721.jpg"]:nth-child(1) {
    height: 100%;
    object-fit: cover;
    object-position: center 16.5745856%;
}
@media screen and (max-width: 767.9px) {
    .p-security__main .right:has(img[src$="988944d68e0ac164fd2b652f52508721.jpg"]) { margin-bottom: 60px; }
}
