@charset "utf-8";

:root {
    --c-text: #0f1a2a;
    --c-primary: #0058b3;
    --accent-weak: #e8f3ff;
    --main-color: #65c4e7;
    --sub1-color: #c9c9c9;
    --sub2-color: #e1e1e1;

    /* 事業内容 | WEBサイト制作 (追加) */
    --c-blue: #0b4a86;
    --g-left: #12d1c3;
    --g-right: #0b4a86;

    /* よくあるご質問 (追加) */
    --faq-blue: #004086;
    --faq-line: #2b5fae;
    --faq-gray: #8b96a6;
    --faq-text: #1a1f29;

    /* 業務フロー */
    --flow-border-blue: #99B9DB;
    --flow-text-blue: #004086;
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0
}

body {
    font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "游ゴシック体", "Yu Gothic", "Meiryo", sans-serif;
    color: var(--c-text);
    line-height: 1.8;
    letter-spacing: .02em;
    font-size: 18px;
}

h1,
h2,
h3,
h4,
h5,
p,
figure {
    margin: 0;
}

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

a {
    color: inherit;
    text-decoration: none
}

a:hover {
    opacity: .85
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

dd {
    margin-left: 0;
}


/* アンカーリンクの飛び先（サイトマップセクション内） */
[id] {
    scroll-margin-top: 120px;
}

.moyo-background {
    background-image: url("../img/MOYO_back.png");
    background-repeat: repeat-y;
    background-position: center top;
    background-size: 100% auto;
    margin-top: 0px;
}

.page-gutter,
.page-gutter-sp {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

.page-title {
    padding: 52px 0;
    margin: 0 auto;
}

.page-title h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-weight: 700;
    font-size: 40px;
    color: #004086;
    line-height: 1.2;
    text-align: center;
}

.page-title h1::before,
.page-title h1::after {
    content: '';
    width: 26px;
    height: 31px;
    margin-top: 4px;
    background-color: #004086;
    transform: skewX(-20deg);
    -webkit-transform: skewX(-20deg);
    -moz-transform: skewX(-20deg);
    -ms-transform: skewX(-20deg);
}

.page-title h1.sp-tow-line::before {
    align-self: start;
    margin-top: 10px;
}
.page-title h1.sp-tow-line::after {
    align-self: end;
    margin-bottom: 6px;
}

nav.inner-link {
    padding-top: 30px;
    padding-bottom: 30px;
}

nav.inner-link ul {
    display: flex;
    flex-flow: column;
    align-items: start;
    justify-content: center;
    align-items: start;
    padding: 0 20px;
}

nav.inner-link li {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 22px;
    font-weight: 700;
    color: #0b4a86;
    white-space: pre-wrap;
}

nav.inner-link li::before {
    content: '＞';
    align-self: baseline;
    padding: 5px 0;
    font-size: 18px;
}

/* 問い合わせボタン */
.contact-btn {
    position: relative;
    display: block;
    width: 100%;
    max-width: 512px;
    margin: 32px auto;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.contact-btn img {
    display: block;
    max-width: 100%;
    height: auto;
    transition: transform .4s ease, filter .4s ease;
}

.contact-btn:hover img {
    filter: brightness(1.15) drop-shadow(0 0 20px rgba(0, 255, 255, .6));
    animation: floatY .6s ease-in-out infinite alternate;
}

@keyframes floatY {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-6px);
    }
}

.contact-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .6) 50%, transparent 100%);
    transform: skewX(-20deg);
}

.contact-btn:hover::after {
    animation: shine .8s ease;
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

/* ページ上部に戻るボタン */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 70px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.back-to-top img {
    width: 90%;
    height: auto;
    display: block;
}

.back-to-top.show {
    opacity: 0.8;
    pointer-events: auto;
}

@media (min-width: 769px) {
    .page-title h1 {
        gap: 24px;
    }

    .page-title h1 br.sp {
        display: none;
    }

    nav.inner-link ul {
        align-items: center;
        flex-flow: wrap;
        gap: 8px 42px;
        padding: 0;
    }

    .contact-btn {
        width: max-content;
    }
}

@media (min-width: 1025px) {
    .page-gutter {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }

    .page-gutter-sp {
        padding: 0;
    }

    nav.inner-link ul {
        flex-flow: row;
        gap: 42px;
    }
}

@media (min-width: 1440px) {
    .page-gutter {
        max-width: 1440px;
        margin-right: auto;
        margin-left: auto;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/**
 * ==================================
 * テーブル共通スタイル
 * ==================================
 */

/* テーブル要素（採用情報セクション内） */
table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ccc;
}

th,
td {
    padding: 16px 24px;
    border: 1px solid #878787;
}

th {
    width: 20%;
    background: #004086;
    font-weight: bold;
    color: #fff;
    vertical-align: middle;
    text-align: left;
    white-space: nowrap;
}

td {
    vertical-align: top;
}

/* テーブルの偶数行（採用情報セクション内） */
tr:nth-child(even) td {
    background: #f2f2f2;
}

/* 768px 以下 (モバイル向け) */
@media screen and (max-width: 769px) {

    /* テーブルを縦並びにするための基本設定 */
    table,
    tbody,
    tr,
    th,
    td {
        display: block;
        width: 100%;
    }

    /* テーブルの行 */
    tr {
        margin-bottom: 0px;
    }

    /* テーブルのデータセル */
    td {
        margin-left: 0;
        background-color: #fff;
    }

    /* レスポンシブテーブル（詳細ページなどで使用）の構造化 */
    table.responsive-table,
    table.responsive-table tbody,
    table.responsive-table tr,
    table.responsive-table th,
    table.responsive-table td {
        display: block;
        width: 100%;
    }

    table.responsive-table {
        border: none !important;
    }

    table.responsive-table tr {
        margin-bottom: 20px;
        border-bottom: 2px solid #d3d3d3;
        padding-bottom: 10px;
    }

    table.responsive-table th {
        /* ... スタイル設定 ... */
        border: none;
    }

    table.responsive-table td {
        border: none;
        /* ... スタイル設定 ... */
    }
}
