h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
}

.visual {
    object-position: 50% 25%;
}


/* ========================== */
/* ごあいさつ */
/* ========================== */

.greeting {
    margin: 60px;
}

.greeting .wrapper {
    display: flex;
    width: 100%;
}

.greeting .wrapper .text {
    display: block;
    width: 60%;
    margin-right: 60px;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 2em;
}

.greeting .wrapper .text p {
    margin-bottom: 20px;
}


.president {
    width: 40%;
}

.president img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    object-position: 30% 50%;
}

.president p {
    text-align: end;
    position: relative;
}

.president p:last-child {
    margin-left: 20px;
}

/* ↓↓↓社名↓↓↓ */
.greeting .wrapper .president div p {
    margin-bottom: 12px;
    margin-top: 12px;
}

/* ↓↓↓代表取締役・お名前wrapper↓↓↓ */
.president div div {
    display: flex;
    justify-content: end;
    font-size: 24px;
}

/* ↓↓↓代表取締役・お名前テキスト↓↓↓ */
.greeting .wrapper .president div div p {
    font-size: 24px;
    margin-top: 0;
}


/* ========================== */
/* 会社概要 */
/* ========================== */

.profile {
    margin: 0 auto;
    margin-top: 120px;
    width: 60%;
    vertical-align: middle;
}

.profile h2 {
    text-align: center;
}

.profile div ul {
    padding: 10px 0;
}

.profile div ul li {
    display: flex;
    box-sizing: content-box;
    border-top: 1px solid #D9D9D9;
    width: 100%;
    height: fit-content;
    font-size: 14px;
}

.profile div ul li h3 {
    display: flex;
    align-items: center;
    width: 20%;
    border-top: 1px solid #0A206E;
    padding: 20px 0;
    font-weight: bold;
}

.profile div ul li p {
    display: flex;
    align-items: center;
    padding: 20px;
}


/* ↓↓↓主な取引先・資格↓↓↓ */
.profile div ul li:nth-child(8), li:last-child {
    height: fit-content;
}

.profile div ul li:nth-child(8) h3, li:last-child h3 {
    display: block;
    padding-top: 10px;
}

.profile div ul li:nth-child(8) ul, li:last-child ul {
    padding: 20px;
}

.profile div ul li:nth-child(8) ul li, li:last-child ul li {
    border: none;
}

.profile div ul li:nth-child(8) ul li p, li:last-child ul li p {
    padding: 0;
}


.profile div ul li:last-child {
    border-bottom: 1px solid #D9D9D9;
}
.profile div ul li:last-child h3 {
    border-bottom: 1px solid #0A206E;
}

.profile div ul li:last-child ul {
    width: 60%;
}

.profile div ul li:last-child ul li {
    border: none;
    justify-content: space-between;
}

/* ↑↑↑主な取引先・資格↑↑↑ */




/* ========================== */
/* 沿革 */
/* ========================== */

.history {
    margin: 0 auto;
    margin-top: 120px;
    width: 60%;
    vertical-align: middle;
}

.history h2 {
    text-align: center;
}

.history div ul {
    width: 100%;
}

.history div ul li {
    display: flex;
    box-sizing: content-box;
    border-top: 1px solid #D9D9D9;
    width: 100%;
    height: fit-content;
    font-size: 14px;
}

.history div ul li p {
    display: flex;
    align-items: center;
    width: 80%;
    padding-left: 20px;
}

.history div ul li time {
    display: flex;
    align-items: center;
    width: 20%;
    border-top: 1px solid #0A206E;
    padding: 20px 0;
}

.history div ul li time p {
    font-weight: bold;
}

.history div ul li p  {
    padding: 0;
}

.history div ul li:last-child {
    border-bottom: 1px solid #D9D9D9;
}

.history div ul li:last-child time {
    border-bottom: 1px solid #0A206E;
}




.map {
    margin: 60px;
    margin-top: 120px;
}
.map iframe {
    height: 280px;
    width: 100%;
}


footer {
    margin-top: 100px;
}


/* ============================================= */
/* メディアクエリ（タブレット） */
/* ============================================= */

@media (max-width: 850px) {

/* ↓↓↓代表取締役テキスト↓↓↓ */
.greeting .wrapper {
    display: block;
}

.greeting .wrapper p {
    margin-bottom: 0;
}

.greeting .wrapper .text {
    width: 100%;
    box-sizing: border-box;
}

.greeting .wrapper .president {
    width: 100%;
}

.greeting .wrapper .president div {
    margin: 0;
}

.greeting .wrapper .president div div p {
    font-size: 20px;
}



/* ↑↑↑代表取締役テキスト↑↑↑ */


.profile, .history {
    width: 80%;
}
}


/* ============================================= */
/* メディアクエリ（スマートフォン） */
/* ============================================= */

@media (max-width: 440px) {

h2 {
    font-size: 32px;
}


.greeting .wrapper p {
    margin-bottom: 0;
}


/* ↓↓↓代表取締役テキスト↓↓↓ */

.president {
    display: block;
}

.president img {
    width: 100%;
}

.president div {
    width: 100%;
}




.president div p {
    font-size: 16px;
}

.president div div p {
    font-size: 20px;
}



/* ↑↑↑代表取締役テキスト↑↑↑ */

.greeting, .map {
    margin: 0;
    box-sizing: border-box;
    padding: 12px;
}

.map {
    margin-top: 120px;
}


/* ↓↓↓会社概要・沿革↓↓↓ */

.profile, .history {
    width: 100%;
}

.profile div ul, .history div ul {
    font-size: 14px;
}

.profile div ul li h3, .history div ul li h3 {
    width: 100%;
    border-top: none;
    padding: 20px 0 0 20px;
    box-sizing: border-box;
}

.profile div ul li:last-child h3, .history div ul li:last-child h3 {
    border: none;
}

.profile div ul li:last-child ul, .history div ul li:last-child ul {
    width: 80%;
}

.profile div ul li:last-child time, .history div ul li:last-child time {
    border: none;
}

/* ↑↑↑会社概要・沿革↑↑↑ */
/* ↓↓↓会社概要↓↓↓ */

.profile div ul li {
    display: block;
}

.profile div ul li ul li {
    display: flex;
}

/* ↑↑↑会社概要↑↑↑ */




.history div ul li {
    display: block;
    height: auto;
}

.history div ul li p {
    padding: 20px;
    width: auto;
}

.history div ul li time {
    width: 100%;
    border-top: none;
    padding: 20px 0 0 20px;
    box-sizing: border-box;
}

.history div ul li time p {
    padding: 0;
}

.history div ul li time p:last-child {
    padding-left: 12px;
}

footer {
    margin-top: 160px;
}

}

