/* =========================================================
   COMPANY HERO
========================================================= */

.company-hero {
    position: relative;
    min-height: 665px;
    padding: 120px 20px 0;
    overflow: hidden;
}


/* =========================================================
   左右の背景画像
========================================================= */

.company-hero__background {
    position: absolute;
    inset: 0;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    width: 100%;
    height: 100%;
}

.company-hero__photo {
    min-width: 0;
    height: 100%;

    background-repeat: no-repeat;
    background-size: cover;
}

.company-hero__photo--left {
    background-image: url("../img/company-hero-left.webp");
    background-position: center;
}

.company-hero__photo--right {
    background-image: url("../img/company-hero-right.webp");
    background-position: center;
}
@media screen and (max-width: 768px) {
	.page-hero{
		display: flex;
		align-items: center;
	}
	.company-hero__photo--left {
		background-image: url("../img/company-hero-left-sp.webp");
		background-position: center;
	}

	.company-hero__photo--right {
		background-image: url("../img/company-hero-right-sp.webp");
		background-position: center;
	}

}

/* =========================================================
   Inner
========================================================= */

.company-hero__inner {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1280px;
    margin: 0 auto;

    text-align: center;
}


/* =========================================================
   Heading
========================================================= */

.company-hero__heading {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.company-hero__heading h1 {
    margin: 0;

    color: #fff;

    font-size: 40px;
    font-weight: 700;
    line-height: 1.4;
}

.company-hero__heading p {
    margin: 3px 0 0;

    color: #00bfc7;

    font-family: "Roboto Slab", serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}


/* =========================================================
   Tablet
========================================================= */

@media screen and (max-width: 1000px) {

    .company-hero {
        min-height: 550px;
    }

}


/* =========================================================
   Mobile
========================================================= */

@media screen and (max-width: 767px) {

    .company-hero {
        min-height: 480px;
        padding: 0 20px;
    }

    .company-hero__background {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-hero__photo--left {
        background-position: 60% center;
    }

    .company-hero__photo--right {
        background-position: center;
    }

    .company-hero__heading h1 {
        font-size: 30px;
    }

    .company-hero__heading p {
        font-size: 14px;
    }

}









/* =========================================================
   ご挨拶
========================================================= */

.company-greeting {
    padding: 70px 20px 100px;
    background: #fff;
}

.company-greeting__inner {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
}

/* タイトル */

.company-greeting__heading {
    margin-bottom: 50px;
    text-align: center;
}

.company-greeting__heading h2 {
    margin: 0 0 35px;
    color: #005b96;
    font-size: 24px;
    font-weight: 700;
}

.company-greeting__heading > p {
    margin: 0;
    color: #005b96;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.5;
}

/* 挨拶文と社長写真 */

.company-greeting__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: start;
    gap: 35px;
}
.company-greeting__main strong{
	font-size: 1.3em;
	margin: 0 0 2em;
}
.company-greeting__message p {
    margin: 0 0 30px;
    color: #172342;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.85;
}

.company-greeting__message p:last-child {
    margin-bottom: 0;
}

.company-greeting__president img {
    display: block;
    width: 100%;
    height: auto;
}

/* 役員紹介 */

.company-greeting__officers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    gap: 70px;
    max-width: 900px;
    margin: 110px auto 0;
}

.company-greeting__officer {
    width: 100%;
    max-width: 350px;
    margin: 0;
}

.company-greeting__officer img {
    display: block;
    width: 100%;
    height: auto;
}

.company-greeting__officer figcaption {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    color: #222;
}

.company-greeting__position {
    font-size: 16px;
}

.company-greeting__name {
    font-size: 20px;
}

/* タブレット */

@media screen and (max-width: 1000px) {

    .company-greeting__heading > p {
        font-size: 30px;
    }

    .company-greeting__main {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 25px;
    }

    .company-greeting__officers {
        gap: 40px;
        margin-top: 80px;
    }
}

/* スマートフォン */

@media screen and (max-width: 767px) {

    .company-greeting {
        padding: 55px 20px 75px;
    }

    .company-greeting__heading {
        margin-bottom: 35px;
    }

    .company-greeting__heading h2 {
        margin-bottom: 22px;
        font-size: 24px;
    }

    .company-greeting__heading > p {
        font-size: 26px;
        line-height: 1.5;
    }

    .company-greeting__main {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .company-greeting__message p {
        margin-bottom: 25px;
        font-size: 16px;
        line-height: 1.9;
    }

    .company-greeting__president {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .company-greeting__officers {
        grid-template-columns: 1fr;
        gap: 55px;
        margin-top: 70px;
    }

    .company-greeting__officer {
        max-width: 350px;
    }

    .company-greeting__officer figcaption {
        gap: 8px;
    }
}









/* =========================================================
   PHILOSOPHY
========================================================= */

.company-philosophy {
    width: 100%;
    overflow: hidden;
/*     background: #0bbcc8; */

    background: url("../img/philosophy-main-bg.webp") 
        center top / cover no-repeat;
}

/* メインタイトル */

.company-philosophy__hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 60px 20px;

}

.company-philosophy__hero-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    color: #fff;
    text-align: center;
}

.company-philosophy__en {
    margin: 0;
    color: transparent;
    font-family: "Roboto Slab", serif;
    font-size: 90px;
    font-weight: 400;
    line-height: 1.2;
    -webkit-text-stroke: 1px #fff;
}

.company-philosophy__hero h2 {
    margin: 12px 0 5px;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
}

.company-philosophy__hero h2 span {
    color: #ffe000;
    font-size: 60px;
    line-height: 1;
}

.company-philosophy__lead {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
}


/* =========================================================
   理念パネル共通
========================================================= */

.philosophy-panel {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 380px;
    margin-bottom: 45px;
    background: #fff;
    isolation: isolate;
}

/* 写真 */

.philosophy-panel__image {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    width: 52%;
    overflow: hidden;

    opacity: 0;
    transition:
        transform 1s cubic-bezier(.22, 1, .36, 1),
        opacity .7s ease;
}

.philosophy-panel__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 左側写真 */

.philosophy-panel--left .philosophy-panel__image {
    left: 0;
    clip-path: polygon(0 0, 100% 0, 81% 100%, 0 100%);
    transform: translateX(-110px);
}

/* 右側写真 */

.philosophy-panel--right .philosophy-panel__image {
    right: 0;
    clip-path: polygon(19% 0, 100% 0, 100% 100%, 0 100%);
    transform: translateX(110px);
}

/* 写真の表示 */

.philosophy-panel.is-visible .philosophy-panel__image {
    opacity: 1;
    transform: translateX(0);
}


/* =========================================================
   斜めの青いライン
========================================================= */

/* 以前のSVGは非表示 */
.philosophy-panel__line {
    display: none;
}

/* 斜めの青いライン */
.philosophy-panel::after {
    content: "";
    position: absolute;
    z-index: 5;
    inset: 0;
    background: #005b96;
    pointer-events: none;

    /* ラインの形は変形させない */
    transform: none;
	-webkit-mask-image: linear-gradient(#000, #000);
	mask-image: linear-gradient(#000, #000);
	-webkit-mask-size: 100% 0%;
	mask-size: 100% 0%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	transition: mask-size .8s linear,
				-webkit-mask-size .8s linear;
}

/* 左側写真：写真幅52%、下端はその81% */
.philosophy-panel--left::after {
    clip-path: polygon(
        52% 0,
        52.6% 0,
        42.72% 100%,
        42.12% 100%
    );
}

/* 右側写真：左端48%、上端は写真幅の19%内側 */
.philosophy-panel--right::after {
    clip-path: polygon(
        57.88% 0,
        58.48% 0,
        48.6% 100%,
        48% 100%
    );
}

/* ラインの描画開始 */
.philosophy-panel.is-line-visible::after {
    transform: none;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}
/* =========================================================
   テキスト
========================================================= */

.philosophy-panel__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 50%;
    min-height: 380px;
    padding: 50px 5%;
}

.philosophy-panel--left .philosophy-panel__content {
    margin-left: auto;
    padding-left: 3%;
}

.philosophy-panel--right .philosophy-panel__content {
    margin-right: auto;
    padding-right: 3%;
}

.philosophy-panel__body {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.philosophy-panel__label {
    display: block;
    width: 200px;
    max-width: 100%;
    margin: 0 auto 28px;
    padding: 9px 15px;
    border-radius: 30px;

    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.philosophy-panel__label--blue {
    background: #005b96;
}

.philosophy-panel__label--cyan {
    background: #0bbcc8;
}

.philosophy-panel__label--green {
    background: linear-gradient(90deg, #7cba29, #209b91);
}

.philosophy-panel__label--yellow {
    background: #f3d814;
}

.philosophy-panel__body h3 {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #0bbcc8;

    color: #005b96;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

.philosophy-panel__body p {
    margin: 0;
    color: #172342;
    font-size: 16px;
    line-height: 1.9;
}


/* =========================================================
   Tablet
========================================================= */

@media screen and (max-width: 1000px) {

    .company-philosophy__en {
        font-size: 75px;
    }

    .philosophy-panel {
        min-height: 420px;
    }

    .philosophy-panel__content {
        min-height: 420px;
        padding: 35px 3%;
    }

    .philosophy-panel__body h3 {
        font-size: 23px;
    }
}


/* =========================================================
   Mobile
========================================================= */

@media screen and (max-width: 767px) {

    .company-philosophy__hero {
        min-height: 310px;
        padding: 50px 20px;
    }

    .company-philosophy__en {
        font-size: clamp(55px, 14vw, 75px);
    }

    .company-philosophy__hero h2 {
        font-size: 25px;
    }

    .company-philosophy__hero h2 span {
        font-size: 45px;
    }

    .company-philosophy__lead {
        font-size: 15px;
    }

    .company-philosophy__lead br {
        display: none;
    }

    /* 写真を上、文章を下に配置 */

    .philosophy-panel {
        display: flex;
        flex-direction: column;
        min-height: 0;
        margin-bottom: 25px;
    }

    .philosophy-panel__image {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto !important;
        right: auto !important;

        width: 100%;
        height: 260px;

        clip-path: none !important;
    }

    .philosophy-panel--left .philosophy-panel__image {
        transform: translateX(-70px);
    }

    .philosophy-panel--right .philosophy-panel__image {
        transform: translateX(70px);
    }

    /* スマホでは写真の下に水平ライン */

     .philosophy-panel::after {
        top: 256px;
        right: 0;
        bottom: auto;
        left: 0;

        width: 100%;
        height: 4px;

        clip-path: none;
        transform: scaleX(0);
        transform-origin: left center;
    }

    .philosophy-panel.is-line-visible::after {
        transform: scaleX(1);
    }

    .philosophy-panel__content {
        width: 100%;
        min-height: 0;
        margin: 0 !important;
        padding: 35px 22px 45px !important;
    }

    .philosophy-panel__label {
        margin-bottom: 22px;
    }

    .philosophy-panel__body h3 {
        font-size: 23px;
    }

    .philosophy-panel__body p {
        font-size: 16px;
    }
}

/* 動きを減らす設定を利用している場合 */

@media (prefers-reduced-motion: reduce) {

    .philosophy-panel__image {
        opacity: 1;
        transform: none !important;
        transition: none;
    }
	.philosophy-panel__line {
        display: none;
    }

}









/* =========================================================
   COMPANY PROFILE
========================================================= */

.company-profile {
    width: 100%;
    padding: 60px 20px 100px;
    background: #fff;
}

.company-profile__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* 青背景のタイトル */

.company-profile__heading {
    padding: 25px 20px 20px;
    background: #0b5592;
    color: #fff;
    text-align: center;
}

.company-profile__heading h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
}

.company-profile__heading p {
    margin: 0;
    font-family: "Roboto Slab", serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}

/* テーブル */

.company-profile__table {
    width: 100%;
    margin-top: 50px;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}

.company-profile__table tr:nth-child(odd) {
    background: #e9faff;
}

.company-profile__table th,
.company-profile__table td {
    padding: 30px;
    vertical-align: top;
    line-height: 1.6;
}

.company-profile__table th {
    width: 120px;
    padding-right: 15px;
    border-right: 4px solid #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.company-profile__table td {
    padding-left: 25px;
    font-size: 16px;
    font-weight: 400;
    overflow-wrap: anywhere;
}

/* 事業内容の後半 */

.company-profile__business-extra {
    margin-top: 28px;
}

/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 767px) {

    .company-profile {
        padding: 45px 15px 70px;
    }

    .company-profile__heading {
        padding: 20px 15px;
    }

    .company-profile__heading h2 {
        font-size: 24px;
    }

    .company-profile__heading p {
        font-size: 18px;
    }

    .company-profile__table {
        margin-top: 30px;
    }

    .company-profile__table th,
    .company-profile__table td {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .company-profile__table th {
        width: 95px;
        padding-right: 8px;
        padding-left: 12px;
        font-size: 18px;
        white-space: normal;
    }

    .company-profile__table td {
        padding-right: 12px;
        padding-left: 12px;
        font-size: 16px;
    }

    .company-profile__business-extra {
        margin-top: 25px;
    }
}









/* =========================================================
   COMPANY HISTORY
========================================================= */

.company-history {
    width: 100%;
    padding: 60px 20px 100px;
    background: #fff;
}

.company-history__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* テーブル */

.company-history__table {
    width: 100%;
    margin-top: 50px;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}

/* 1行おきに水色背景 */

.company-history__table tr:nth-child(odd) {
    background: #e9faff;
}

/* セル共通 */

.company-history__table th,
.company-history__table td {
    padding: 28px 30px;
    vertical-align: middle;
    line-height: 1.6;
}

/* 年号 */

.company-history__table th {
    width: 120px;
    padding-right: 15px;
    border-right: 4px solid #fff;

    font-size: 18px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

/* 沿革の内容 */

.company-history__table td {
    padding-left: 25px;
    font-size: 16px;
    font-weight: 400;
    overflow-wrap: anywhere;
}

/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 767px) {

    .company-history {
        padding: 45px 15px 70px;
    }

    .company-history__table {
        margin-top: 30px;
    }

    .company-history__table th,
    .company-history__table td {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .company-history__table th {
        width: 95px;
        padding-right: 8px;
        padding-left: 12px;
        font-size: 18px;
    }

    .company-history__table td {
        padding-right: 12px;
        padding-left: 12px;
        font-size: 16px;
    }
}









/* =========================================================
   COMPANY OFFICES
========================================================= */

.company-offices {
    width: 100%;
    padding: 60px 20px 100px;
    background: #fff;
}

.company-offices__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* 会社ごとのグループ */

.company-offices__group {
    margin-top: 55px;
}

/* 会社名と左右の水色ライン */

.company-offices__company {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    margin: 0 0 35px;
    color: #005b96;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.company-offices__company::before,
.company-offices__company::after {
    content: "";
    flex: 1;
    height: 6px;
    background: #0bbcc8;
}

/* 事業所一覧 */

.company-offices__row {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 210px;
    align-items: center;
    gap: 15px;

    min-height: 90px;
    padding: 16px 5px;
    border-bottom: 2px dotted #bbb;
}

/* 支店・営業所名 */

.company-offices__row h4 {
    margin: 0;
    color: #005b96;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

/* 住所・電話番号 */

.company-offices__details {
    min-width: 0;
}

.company-offices__details p {
    margin: 0;
    color: #172342;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Contact・Access */

.company-offices__links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.company-offices__links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #172342;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: opacity .3s ease;
}

.company-offices__links a:hover {
    opacity: .6;
}

/* SVGアイコン */

.company-offices__links a::before {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.company-offices__contact::before {
    background-image: url("../img/mail.svg");
}

.company-offices__access::before {
    background-image: url("../img/map-pin.svg");
}

/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 1100px) {

    .company-offices__row {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 10px 20px;
    }

    .company-offices__links {
        grid-column: 2;
        justify-content: flex-start;
        margin-top: 5px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 767px) {

    .company-offices {
        padding: 45px 15px 70px;
    }

    .company-offices__group {
        margin-top: 45px;
    }

    .company-offices__company {
        gap: 12px;
        margin-bottom: 25px;
        font-size: 24px;
    }

    .company-offices__company::before,
    .company-offices__company::after {
        height: 4px;
    }

    .company-offices__row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;

        min-height: 0;
        padding: 22px 5px;
    }

    .company-offices__row h4 {
        font-size: 18px;
    }

    .company-offices__details p {
        font-size: 16px;
        line-height: 1.7;
    }

    .company-offices__links {
        justify-content: flex-start;
        gap: 25px;
        margin-top: 8px;
    }

    .company-offices__links a {
        font-size: 16px;
    }

    .company-offices__links a::before {
        width: 25px;
        height: 25px;
    }
}