@charset "UTF-8";

/* 2025.06.11 ismr/tabi :) */

/* 共通スタイル */
body {
    margin: 0;
    padding: 0;
}

.safeline {
    width: 1000px;
    margin: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header_navi {
    background-color: #ed7d31;
    margin: 1em;
    padding: 1em;
    border-radius: 5em;
    height: 1em;
}

.header_navi ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.header_navi ul li {
    margin: 0 1em;
    line-height: 1em;
}

.header_navi ul li a {
    text-decoration: none;
    color: white;
}

.header_navi ul li.active a {
    color: black;
}

/* ===== TOP specific styles ===== */
/* top_title_area (分割画像フェードイン) */
.top_title_area {
    position: relative;
    width: 100%;
    height: 1000px;
    margin: 100px 0;
}

.top_title_area_sp {
    display: none;
}

.image-tile {
    position: absolute;
    opacity: 0;
    /* opacity, left, width プロパティの変更時にアニメーションするように設定 */
    transition: opacity 0.5s ease-in-out, left 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55), width 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    object-fit: cover;
    /* ★重要：画像の基準点を左端にする */
    transform-origin: left center;
}

#titleImage1 {
    top: 0;
    left: 0;
    width: calc(1000px / 3);
    height: calc(1000px / 3);
}

#titleImage2 {
    top: 0;
    left: calc(1000px / 3);
    width: calc(1000px / 3);
    height: calc(1000px / 3);
}

#titleImage3 {
    top: 0;
    left: calc(2000px / 3);
    width: calc(1000px / 3);
    height: calc(1000px / 3);
}

#titleImage4 {
    top: calc(1000px / 3);
    left: 0;
    width: 1000px;
    height: calc(1000px / 3);
}

#titleImage5 {
    top: calc(2000px / 3);
    left: 0;
    width: 1000px;
    height: calc(1000px / 3);
}

/* topmenu_bl (ご挨拶セクション) */
.topmenu_bl {
    display: flex;
    justify-content: flex-start;
    /*min-height: 500px;*/
}

.topmenu_bl_left h2 {
    color: #00b0f0;
}

.topmenu_bl_right {
    margin: 1em;
    width: 100%;
}

.topmenu_bl_left {
    min-width: 275px;
    position: relative;
    overflow: hidden;
}

.topmenu_bl_left::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 0;
    background-color: skyblue;
}

.topmenu_bl_left.start-line-animation::after {
    animation: draw-line 3s ease-out forwards;
}

@keyframes draw-line {
    0% {
        height: 0;
    }

    100% {
        height: 100%;
    }
}

.topmenu_bl_right img {
    max-width: 100%;
    height: auto;
    display: block;
}

.topmenu_bl_right p {
    margin-top: 0.5em;
}

/* President Message (元々あったスタイル。必要に応じて .delay を追加) */
.top_presidentmessage img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Effect classes ===== */
.delay {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.delay.is-visible {
    opacity: 1;
}

/* ===== Footer styles ===== */
.footer_upper {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    height: 50px;
    background-image: url(../common/footer_bg_ikeshima.png);
    background-size: cover;
    background-repeat: no-repeat;
}

.footer_dekabox {
    background-color: #00b0f0;
}

.footer_box {
    display: flex;
    justify-content: space-around;
    padding: 2em 0;
}

.footer_box img {
    max-width: 100%;
}

.footer_left {
    width: 200px;
    color: white;
    margin: 0 2em;
}

.footer_left img {
    margin-bottom: 1em;
}

.footer_right {
    margin: 0 2em;
}

.ftbutton_links {
    display: flex;
    justify-content: flex-start;
    list-style: none;
    padding-left: 0;
    margin-bottom: 1em;
}

.ftbutton_links:last-child {
    margin-bottom: 0;
}

.ftbutton_links li {
    font-size: 1em;
    border: solid 2px white;
    border-radius: 0.5em;
    color: white;
    margin-right: 1em;
    padding: 0.5em;
    cursor: pointer;
}

.ftbutton_links li:last-child {
    margin-right: 0;
}

.ftbutton_links li:hover {
    color: #00b0f0;
    background-color: white;
    transition: 0.3s;
}

.ftbutton_photo {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0 0 2em 0;
}

.ftbutton_photo li img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 20%;
}

.ftbutton_photo li:hover {
    transform: scale(1.2);
    transition: 0.2s;
}

/* モバイル対応スタイル */
/* ハンバーガーメニューアイコンの初期設定（デスクトップでは非表示） */
.hamburger-menu-icon {
    display: none;
}

/* モバイルナビゲーションメニューの初期設定（デスクトップでは非表示） */
.mobile-navi {
    display: none;
}

body.no-scroll {
    overflow: hidden;
}

.topmenu_bl_right ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.topmenu_bl_right ul li {
    margin: 0 1em 0 0;
}

/* スマートフォン向けのスタイル (例: 768px以下の画面幅に適用) */
@media screen and (max-width: 768px) {
    /* ヘッダー */
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1em;
        position: relative;
        /* ハンバーガーアイコンのposition: absoluteの基準 */
    }

    header div img {
        margin: 0;
        max-height: 40px;
    }

    .header_navi {
        display: none;
    }

    /* ハンバーガーメニューアイコンのスタイル */
    .hamburger-menu-icon {
        display: block;
        position: absolute;
        top: 1em;
        right: 1em;
        z-index: 1000;
        width: 30px;
        height: 25px;
        cursor: pointer;
    }

    .hamburger-menu-icon span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: #333;
        border-radius: 9px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: 0.25s ease-in-out;
    }

    .hamburger-menu-icon span:nth-child(1) {
        top: 0px;
    }

    .hamburger-menu-icon span:nth-child(2) {
        top: 11px;
    }

    .hamburger-menu-icon span:nth-child(3) {
        top: 22px;
    }

    /* ハンバーガーメニューが開いたときのアイコンのアニメーション */
    .hamburger-menu-icon.open span:nth-child(1) {
        top: 11px;
        transform: rotate(135deg);
    }

    .hamburger-menu-icon.open span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }

    .hamburger-menu-icon.open span:nth-child(3) {
        top: 11px;
        transform: rotate(-135deg);
    }

    /* モバイルナビゲーションメニュー */
    .mobile-navi {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 999;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        overflow-y: auto;
    }

    .mobile-navi.open {
        display: flex;
    }

    .mobile-navi ul {
        list-style: none;
        padding: 0;
        text-align: center;
        width: 100%;
    }

    .mobile-navi ul li {
        margin: 1.5em 0;
    }

    .mobile-navi ul li a {
        color: white;
        text-decoration: none;
        font-size: 1.5em;
        padding: 0.5em 0;
        display: block;
    }

    .mobile-navi ul li.active a {
        color: #ed7d31;
    }

    /* コンテンツ全体の幅調整 */
    .safeline {
        width: 90%;
        margin: 0 auto;
    }

    /* トップタイトルエリア (画像分割) */
    .top_title_area {
        display: none;
    }

    .top_title_area_sp {
        display: block;
    }

    .top_title_area_sp img {
        max-width: 100%;
    }

    .spacer {
        display: none;
    }

    /*
.top_title_area {
height: auto;
margin: 50px 0;
position: relative;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, auto);
gap: 5px;
}

.image-tile {
position: static;
width: 100%;
height: auto;
object-fit: cover;
}/*

/* Grid配置の調整 */
    /*#titleImage1 {
grid-column: 1 / 2;
grid-row: 1 / 2;
}

#titleImage2 {
grid-column: 2 / 3;
grid-row: 1 / 2;
}

#titleImage3 {
grid-column: 3 / 4;
grid-row: 1 / 2;
}

#titleImage4 {
grid-column: 1 / 4;
grid-row: 2 / 3;
}

#titleImage5 {
grid-column: 1 / 4;
grid-row: 3 / 4;
}*/

    /* ご挨拶、業務案内、企業紹介セクション */
    .topmenu_bl {
        flex-direction: column;
        min-height: auto;
        margin-bottom: 2em;
    }

    .topmenu_bl_left {
        min-width: unset;
        width: 100%;
        margin-bottom: 1em;
        padding-bottom: 1em;
        border-bottom: 3px solid skyblue;
        text-align: center;
    }

    .topmenu_bl_left::after {
        display: none;
    }

    .topmenu_bl_left h2 {
        font-size: 1.8em;
    }

    .topmenu_bl_right {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .topmenu_bl_right img {
        margin-bottom: 1em;
    }

    .topmenu_bl_right p {
        text-align: left;
        margin-bottom: 1em;
        font-size: 0.95em;
        line-height: 1.6;
    }

    /*.topmenu_bl_right p:last-of-type {
text-align: right;
}*/

    /* フッター */
    .footer_upper {
        height: 30px;
    }

    .footer_box {
        flex-direction: column;
        padding: 1.5em 0;
    }

    .footer_left {
        width: 100%;
        text-align: center;
        margin: 0 0 2em 0;
    }

    .footer_left img {
        max-width: 150px;
    }

    .footer_right {
        width: 100%;
        margin: 0;
    }

    .ftbutton_photo {
        justify-content: center;
        margin-bottom: 1.5em;
    }

    .ftbutton_links {
        flex-direction: column;
        align-items: center;
        margin-bottom: 1.5em;
    }

    .ftbutton_links li {
        width: 80%;
        margin: 0.5em 0;
        text-align: center;
        font-size: 0.9em;
    }
}

/*追加*/
.button {
    width: 100%;
}
.button p {
    width: fit-content;
    margin: 0 0 0 auto;
    background-color: #00b0f0;
    border-radius: 0.5em;
}
.button p:hover {
    background-color: #ed7d31;
    transition: 0.5s;
}
.button p a {
    text-decoration: none;
    width: 100%;
    display: block;
    padding: 0.5em;
    color: white;
}
.ftbutton_links a {
    text-decoration: none;
    color: white;
}
.ftbutton_links :hover a {
    color: #00b0f0;
    transition: 0.5s;
}

/*個別ページ*/
/*会社概要*/
.corporation_table {
    width: 100%;
    margin: 1em 0;
    border-collapse: collapse;
}
.corporation_table tbody tr th {
    background-color: #00b0f0;
    color: white;
    border: solid 2px #00b0f0;
    border-bottom: solid 2px white;
    padding: 1em;

    white-space: nowrap;
}
.corporation_table tbody tr:last-child th {
    border: solid 2px #00b0f0;
}
.corporation_table tbody tr td {
    background-color: white;
    color: black;
    border: solid 2px #00b0f0;
    padding: 1em;
}
@media screen and (max-width: 768px) {
    .corporation_table tbody tr{
        display: block;
    }
    .corporation_table tbody th,.corporation_table tbody td{
        display: block;
        text-align: left;
    }
    .corporation_table tbody tr th {
    border: solid 2px #00b0f0;
}
    .corporation_table tbody tr{
        margin-bottom: 1em;
    }
    
}

h3{
    border-left: solid 10px #ed7d31;
    padding-left: .5em;
    text-align: left;
}
.service_photo_gallery{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.service_photo_gallery img{
    max-width: 50%;
    height: auto;
    padding:5px;
    box-sizing:border-box;
    object-fit: contain;
    /*object-position: bottom; */
}
@media screen and (max-width: 768px) {
.service_photo_gallery{
    display: block;
    }
    .service_photo_gallery img{
        max-width: 100%;
    }
}

/*問い合わせページ*/
.contact_form_table td,.contact_form_table th{
    padding: .2em!important;
}
.contact_form_table td input[type="text"],.contact_form_table td textarea{
    box-sizing: border-box;
    width: 100%;
    font-size: 1.5em;
    border:none;
}

.contact_button{
    text-align: center;
}

.contact_button input[type="submit"]{
    text-align: center;
    font-size: 1.2em;
    margin: 1em;
    padding: .5em;
    color:white;
    background-color: #ed7d31;
    border:none;
    border-radius: .5em;
    /*
    box-sizing: border-box;
    width: 100%;
    font-size: 1.5em;
    border:none;
    */
}

.topmenu_bl_right span{
    color:red;
}