* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    color: #fff;
    background: #141414;
    font-family: "Noto Sans JP", sans-serif;
}
.header {
    background: #fff;
    position: relative;
    z-index: 1001;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}
h1 {
    margin: 0;
}
h1.logo {
    height: 40px;
    line-height: 40px;
}
.logo img {
    height: 40px;
    display: block;
}
.right-area {
    display: flex;
    align-items: center;
}

/* ヘッダーボタン */
.header-button-area a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #C8161D;
    border-radius: 5px;
    margin-left: 20px;
    padding: 5px 10px 6px;
    font-size: 0.7rem;
    color: white;
    text-decoration: none;
}
.header-button-area a {
    font-size: 0.7rem;
    color: white;
    text-decoration: none;
    position: relative;
    padding-right: 12px;
}
.header-button-area a::after {
    content: '➔';
    display: inline-block;
    margin-left: 5px;
    transform: rotate(-45deg);
    font-size: 0.7rem;
}
.header-button-area a:hover::after {
    transform: rotate(0deg);
}

/* 言語切替 */
/* .lang-switch {
    background-color: #333333;
    border-radius: 5px;
    margin-left: 20px;
    padding: 0 10px 5px;
}
.lang-switch a {
    font-size: .7rem;
    margin-left: 10px;
    color: #999999;
    text-decoration: none;
}
.lang-switch a.active {
    color: #ffffff;
} */
.lang-switch {
    background-color: #333333;
    border-radius: 5px;
    margin-left: 10px;
    padding: 0 5px 5px; /* 幅狭め */
    display: inline-block;
    position: relative;
}
.lang-switch select {
    background-color: #333333;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 5px 5px 5px 5px;
    font-size: 0.7rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    outline: none;
    min-width: 45px;
}
.lang-switch::after {
    content: "🌐";
    position: absolute;
    right: 5px;
    top: 45%;
    transform: translateY(-45%);
    pointer-events: none;
    font-size: 0.8rem;
    color: #ffffff;
}

/* グローバルナビ */
.global-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.global-nav li {
    margin-left: 20px;
    font-size: .85rem;
}
.global-nav a {
    text-decoration: none;
    color: #000;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 15px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1002;
    color: #000; 
}
h2 {
    font-size: clamp(1rem, 4vw, 4rem);
    font-weight: bold;
    text-align: center;
    letter-spacing: 1px;
    color: #FFFFFF;
    width: 90vw;
    max-width: 1200px;
    white-space: nowrap;
    margin: 0;
}
.black .clip-text {
    color: #333333!important;
    text-shadow: none!important;
    font-size: 1.65rem!important;
}
a {
    color: #ccc;
    text-decoration: none;
    cursor: pointer;
}
section {
    height: 100%;
    width: 100%;
    top: 0;
    position: fixed;
    visibility: hidden;
    z-index: 100;
}
section .outer,
section .inner {
    width: 100%;
    height: 100%;
    overflow-y: hidden;
}
section .bg {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    background-size: cover;
    background-position: center;
}
section .cont-box {
    width: 100%;
    max-width: 1000px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}
section .cont-box p {
    margin-top: 20px;
    /* margin-top: 50px; */
    font-size: 1.1rem;
    /* font-size: .8rem; */
    font-weight: normal;
    line-height: 2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
section .cont-box p span {
    background-color: black;
    border-radius: 15px;
    padding: 2px 15px;
}
section .cont-text {
    text-align: left;
}
section .bg h2 {
    z-index: 2;
}
section .bg .clip-text {
    overflow: hidden;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.first .bg {
    background-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 100%
        ),
        url("../images/top_bg.png");
}
.second .bg {
    background-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.6) 100%
        ),
        url("../images/about_bg.jpeg");
}
.third .bg {
    background-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 100%
        ),
        url("../images/service_bg.jpeg");
}
.fourth .bg {
    background-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 100%
        ),
        url("../images/careers_bg.jpeg");
}
.fifth .bg {
    background-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 100%
        ),
        url("../images/contact_bg.png");
}
.six .bg {
    background-color: #FFFFFF;
    background-position: 50% 45%;
}

.section-heading,
.section-heading-l {
    width: 100%;
    /* display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; */
}
.section-heading i {
    font-size: 3rem;
    margin: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.section-heading i.fa-github-alt {
    font-size: 3.2rem;
}
.view-img {
    margin: 0 auto;
    text-align: center;
}
.view-img img {
    width: 100%;
    max-width: 700px;
}
.service-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    /* margin-top: 50px; */
    margin-top: 20px;
}
.service-flex > div {
    flex: 1;
}
    .service-flex > div span {
        font-size: 1rem;
        font-weight: bold;
        border-radius: 25px;
        display: inline-block;
        padding: 2px 20px;
    }
    .service-flex > div span.yellow {
        background-color: yellow;
        color: #333333;
    }
    .service-flex > div span.red {
        background-color: #C8161D;
        color: white;
    }
    .service-flex > div span.black {
        background-color: #333333;
        color: white;
    }
    .service-flex > div p {
        margin-top: 10px;
        line-height: 1.5em;
    }
    .mg20 {
        margin-top: 20px;
    }
    .center {
        text-align: center!important;
    }
    .bold {
        font-weight: bold!important;
    }
    .recrut-font {
        font-size: 1.4rem!important;
        padding: 1px 20px 4px!important;
    }
.btn-area {
    text-align: center;
}
.btn-area a {
    display: inline-block;
    line-height: 1;
    background-color: #C8161D;
    color: white;
    padding: 10px 20px;
}
.btn-area a:hover {
    opacity: .5;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}
.item {
    padding: 20px;
    text-align: center;
}
.item img {
    width: 100%;
    height: 50px;
    object-fit:contain;
}
.item p {
    color: #333333!important;
    text-shadow: none!important;
    font-size: .85rem!important;
    font-weight: bold!important;
    margin: 0 auto!important;
}
.item a {
    color: #333333!important;
    font-size: .85rem!important;
    margin: 0 auto!important;
}
.footer-area {
    width: 100%;
    position: absolute;
    bottom: 0;
    text-align: center;
}
.sns-icon {
  width: fit-content;
  margin: 0 auto 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.sns-icon a img {
    width: 30px;
    transition: transform 0.2s ease;
}
.sns-icon a:hover img {
  transform: translateY(-3px);
}
.footer-area footer {
    background-color: #C8161D;
    color: white;
    font-size: .7rem;
    padding: 10px 0;
}
footer ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 20px 0 10px;
    list-style: none;
}
footer ul li a {
    text-decoration: none;
    color: #ffffff;
}
footer span {
    display: block;
    margin-bottom: 10px;
}
footer span img {
    width: 100%;
    max-width: 150px;
}
/* スマホ */
@media (max-width: 768px) {
.header-inner {
    padding: 5px;
}
.logo img {
    height: 30px;
}
/* ヘッダーボタン */
.header-button-area a {
    margin-left: 0;
    padding: 5px 5px 6px;
}
/* 言語切替 */
.lang-switch {
    margin-left: 5px;
    padding: 0 4px 5px 0;
}
.lang-switch a {
    font-size: .7rem;
    margin-left: 5px;
    color: #666;
    text-decoration: none;
}
    .global-nav ul {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .menu-toggle::before {
        content: "☰";
    }
    .menu-toggle.active::before {
        content: "✕";
    }
    .global-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        background: #fff;
        border-left: 1px solid #ddd;
        transition: right 0.3s ease;
        padding-top: 60px;
        z-index: 1001;
    }
    .global-nav ul {
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    .global-nav li {
        margin: 20px;
    }
    .global-nav.open {
        right: 0;
    }
    section .bg {
        padding: 0 10px;
    }
    section .cont-box {
        padding: 0 10px;
    }
    section .cont-box p {
        font-size: .9rem;
        line-height: 1.5em;
        margin-top: 20px;
    }
    .section-heading img {
        width: 100%;
    }
    .view-img img {
        width: 100%;
        max-width: 300px;
    }
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 1000;
    }
    .overlay.active {
        display: block;
    }
    .service-flex {
        flex-direction: column;
        margin-top: 10px;
        gap: 0;
    }
    .service-flex > div span {
        font-size: .8rem;
        font-weight: bold;
        border-radius: 25px;
        display: inline-block;
        padding: 1px 10px;
    }
    .service-flex > div p {
        margin-top: 5px;
        font-size: .9rem;
        line-height: 1.2em;
    }
    .recrut-font {
        font-size: .85rem!important;
        padding: 2px 10px!important;
    }
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
  .container {
    grid-template-columns: 1fr;
  }
}