@import url("https://fonts.googleapis.com/css2?family=Germania+One&family=Pirata+One&family=Roboto+Slab:wght@300;700&display=swap");

/* グローバルな box-sizing 設定 - 継承を徹底させる */
html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* 重要: htmlタグのスタイル */
html {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* スクロールバー幅を考慮したビューポート幅の設定 */
html, body {
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    left: 0;
    right: 0;
}

article, section, .business-section-override, .news-section {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    left: 0;
    right: 0;
    position: relative;
}

@keyframes riseUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* モバイル表示の文字サイズとレイアウト調整 - mobile-deviceクラスで制御 */
.mobile-device {
    font-size: 14px;
}

.mobile-device h1 {
    font-size: 1.8rem !important;
}

.mobile-device h2 {
    font-size: 1.6rem !important;
}

.mobile-device h3 {
    font-size: 1.4rem !important;
}

.mobile-device p, 
.mobile-device div, 
.mobile-device span, 
.mobile-device li, 
.mobile-device a {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

.mobile-device .news-card-title {
    font-size: 1rem !important;
}

.mobile-device .news-card-summary {
    font-size: 0.85rem !important;
}

/* ニュースカードのより細かい調整 */
.mobile-device .news-card-content {
    padding: 15px !important;
}

.mobile-device .news-card-meta {
    margin-bottom: 10px !important;
}

/* 参照先のパディングを全体的に左右揃える */
.mobile-device section > div {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* テキスト配置を全体的に左揃えにする */
.mobile-device p, 
.mobile-device div:not(.centered) {
    text-align: left;
}

/* 見出しだけは中央揃えにする */
.mobile-device h1, 
.mobile-device h2, 
.mobile-device h3, 
.centered {
    text-align: center;
}

/* 採用求人ページの調整 */
.mobile-device .job-title-section {
    padding: 15px !important;
    font-size: 0.9rem !important;
}

.mobile-device .job-description-section {
    padding: 15px !important;
    margin: 0 10px !important;
    text-align: left !important;
        line-height: 1.5 !important;
    }
    
    .job-description-section {
        padding: 15px !important;
        margin: 0 15px 5px 15px !important; 
        line-height: 1.4 !important;
        font-size: 0.85rem !important;
        text-align: left !important;
    }

    /* 募集職種のカードスタイル上書き */
    .job-listing-item .job-description-section {
        padding: 15px !important;
        margin: 0 15px !important; 
    }
    
    /* レスポンシブなテーブル */
    @media screen and (max-width: 480px) {
        table {
            width: 100% !important;
        }
        td {
            display: block !important;
            width: 100% !important;
            box-sizing: border-box !important;
        }
    }
    
    /* セクション間の隙間修正 */
    section, .section-container, article {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
} 

/* セクション間の隙間修正 - 共通 */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* スタイルをデスクトップ・モバイル各CSSファイルに移動 */

body.menu-open {
    overflow: hidden;
}
section, .section-container, article, .business-section-override, .news-section, .block1 {
    width: 100vw;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    left: 0;
    right: 0;
}

.section-container, .cards {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
}

@-webkit-keyframes animate-svg-stroke-1 {
    0% {
        stroke-dashoffset: 485.16064453125px;
        stroke-dasharray: 485.16064453125px;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 485.16064453125px;
    }
}

@keyframes animate-svg-stroke-1 {
    0% {
        stroke-dashoffset: 485.16064453125px;
        stroke-dasharray: 485.16064453125px;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 485.16064453125px;
    }
}

@-webkit-keyframes animate-svg-fill-1 {
    0% {
        fill: transparent;
    }

    100% {
        fill: rgb(164, 11, 94);
    }
}

@keyframes animate-svg-fill-1 {
    0% {
        fill: transparent;
    }

    100% {
        fill: rgb(164, 11, 94);
    }
}

.svg-elem-1 {
    -webkit-animation: animate-svg-stroke-1 2s cubic-bezier(0.755, 0.05, 0.855, 0.06) 1s both,
                       animate-svg-fill-1 5s cubic-bezier(0.47, 0, 0.745, 0.715) 0.5s both;
            animation: animate-svg-stroke-1 2s cubic-bezier(0.755, 0.05, 0.855, 0.06) 1s both,
                animate-svg-fill-1 5s cubic-bezier(0.47, 0, 0.745, 0.715) 0.5s both;
    transform: none;
}

@-webkit-keyframes animate-svg-stroke-2 {
    0% {
        stroke-dashoffset: 184.88800048828125px;
        stroke-dasharray: 184.88800048828125px;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 184.88800048828125px;
    }
}

@keyframes animate-svg-stroke-2 {
    0% {
        stroke-dashoffset: 184.88800048828125px;
        stroke-dasharray: 184.88800048828125px;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 184.88800048828125px;
    }
}

@-webkit-keyframes animate-svg-fill-2 {
    0% {
        fill: transparent;
    }

    100% {
        fill: rgb(164, 11, 94);
    }
}

@keyframes animate-svg-fill-2 {
    0% {
        fill: transparent;
    }

    100% {
        fill: rgb(164, 11, 94);
    }
}

.svg-elem-2 {
-webkit-animation: animate-svg-stroke-2 2s cubic-bezier(0.755, 0.05, 0.855, 0.06) 1.12s both,
                    animate-svg-fill-2 5s cubic-bezier(0.47, 0, 0.745, 0.715) 0.6s both;
        animation: animate-svg-stroke-2 2s cubic-bezier(0.755, 0.05, 0.855, 0.06) 1.12s both,
            animate-svg-fill-2 5s cubic-bezier(0.47, 0, 0.745, 0.715) 0.6s both;
}

@-webkit-keyframes animate-svg-stroke-3 {
    0% {
        stroke-dashoffset: 401.5581970214844px;
        stroke-dasharray: 401.5581970214844px;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 401.5581970214844px;
    }
}

@keyframes animate-svg-stroke-3 {
    0% {
        stroke-dashoffset: 401.5581970214844px;
        stroke-dasharray: 401.5581970214844px;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 401.5581970214844px;
    }
}

@-webkit-keyframes animate-svg-fill-3 {
    0% {
        fill: transparent;
    }

    100% {
        fill: rgb(164, 11, 94);
    }
}

@keyframes animate-svg-fill-3 {
    0% {
        fill: transparent;
    }

    100% {
        fill: rgb(164, 11, 94);
    }
}

.svg-elem-3 {
-webkit-animation: animate-svg-stroke-3 2s cubic-bezier(0.755, 0.05, 0.855, 0.06) 1.24s both,
                    animate-svg-fill-3 5s cubic-bezier(0.47, 0, 0.745, 0.715) 0.7s both;
        animation: animate-svg-stroke-3 2s cubic-bezier(0.755, 0.05, 0.855, 0.06) 1.24s both,
            animate-svg-fill-3 5s cubic-bezier(0.47, 0, 0.745, 0.715) 0.7s both;
}

@-webkit-keyframes animate-svg-stroke-4 {
    0% {
        stroke-dashoffset: 394.8916015625px;
        stroke-dasharray: 394.8916015625px;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 394.8916015625px;
    }
}

@keyframes animate-svg-stroke-4 {
    0% {
        stroke-dashoffset: 394.8916015625px;
        stroke-dasharray: 394.8916015625px;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 394.8916015625px;
    }
}

@-webkit-keyframes animate-svg-fill-4 {
    0% {
        fill: transparent;
    }

    100% {
        fill: rgb(164, 11, 94);
    }
}

@keyframes animate-svg-fill-4 {
    0% {
        fill: transparent;
    }

    100% {
        fill: rgb(164, 11, 94);
    }
}

.svg-elem-4 {
-webkit-animation: animate-svg-stroke-4 2s cubic-bezier(0.755, 0.05, 0.855, 0.06) 1.3599999999999999s both,
                    animate-svg-fill-4 5s cubic-bezier(0.47, 0, 0.745, 0.715) 0.8s both;
        animation: animate-svg-stroke-4 2s cubic-bezier(0.755, 0.05, 0.855, 0.06) 1.3599999999999999s both,
            animate-svg-fill-4 5s cubic-bezier(0.47, 0, 0.745, 0.715) 0.8s both;
}

@-webkit-keyframes animate-svg-stroke-5 {
    0% {
        stroke-dashoffset: 335.5740966796875px;
        stroke-dasharray: 335.5740966796875px;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 335.5740966796875px;
    }
}

@keyframes animate-svg-stroke-5 {
    0% {
        stroke-dashoffset: 335.5740966796875px;
        stroke-dasharray: 335.5740966796875px;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 335.5740966796875px;
    }
}

@-webkit-keyframes animate-svg-fill-5 {
    0% {
        fill: transparent;
    }

    100% {
        fill: rgb(164, 11, 94);
    }
}

@keyframes animate-svg-fill-5 {
    0% {
        fill: transparent;
    }

    100% {
        fill: rgb(164, 11, 94);
    }
}

.svg-elem-5 {
-webkit-animation: animate-svg-stroke-5 2s cubic-bezier(0.755, 0.05, 0.855, 0.06) 1.48s both,
                    animate-svg-fill-5 5s cubic-bezier(0.47, 0, 0.745, 0.715) 0.9s both;
        animation: animate-svg-stroke-5 2s cubic-bezier(0.755, 0.05, 0.855, 0.06) 1.48s both,
            animate-svg-fill-5 5s cubic-bezier(0.47, 0, 0.745, 0.715) 0.9s both;
}

@-webkit-keyframes animate-svg-stroke-6 {
    0% {
        stroke-dashoffset: 406.779296875px;
        stroke-dasharray: 406.779296875px;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 406.779296875px;
    }
}

@keyframes animate-svg-stroke-6 {
    0% {
        stroke-dashoffset: 406.779296875px;
        stroke-dasharray: 406.779296875px;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 406.779296875px;
    }
}

@-webkit-keyframes animate-svg-fill-6 {
    0% {
        fill: transparent;
    }

    100% {
        fill: rgb(164, 11, 94);
    }
}

@keyframes animate-svg-fill-6 {
    0% {
        fill: transparent;
    }

    100% {
        fill: rgb(164, 11, 94);
    }
}

.svg-elem-6 {
-webkit-animation: animate-svg-stroke-6 2s cubic-bezier(0.755, 0.05, 0.855, 0.06) 1.6s both,
                    animate-svg-fill-6 5s cubic-bezier(0.47, 0, 0.745, 0.715) 1s both;
        animation: animate-svg-stroke-6 2s cubic-bezier(0.755, 0.05, 0.855, 0.06) 1.6s both,
            animate-svg-fill-6 5s cubic-bezier(0.47, 0, 0.745, 0.715) 1s both;
}

@-webkit-keyframes animate-svg-stroke-7 {
    0% {
        stroke-dashoffset: 363.0625305175781px;
        stroke-dasharray: 363.0625305175781px;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 363.0625305175781px;
    }
}

@keyframes animate-svg-stroke-7 {
    0% {
        stroke-dashoffset: 363.0625305175781px;
        stroke-dasharray: 363.0625305175781px;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 363.0625305175781px;
    }
}

@-webkit-keyframes animate-svg-fill-7 {
    0% {
        fill: transparent;
    }

    100% {
        fill: rgb(164, 11, 94);
    }
}

@keyframes animate-svg-fill-7 {
    0% {
        fill: transparent;
    }

    100% {
        fill: rgb(164, 11, 94);
    }
}

.svg-elem-7 {
-webkit-animation: animate-svg-stroke-7 2s cubic-bezier(0.755, 0.05, 0.855, 0.06) 1.72s both,
                    animate-svg-fill-7 5s cubic-bezier(0.47, 0, 0.745, 0.715) 1.1s both;
        animation: animate-svg-stroke-7 2s cubic-bezier(0.755, 0.05, 0.855, 0.06) 1.72s both,
            animate-svg-fill-7 5s cubic-bezier(0.47, 0, 0.745, 0.715) 1.1s both;
}

@-webkit-keyframes animate-svg-stroke-8 {
    0% {
        stroke-dashoffset: 361.94232177734375px;
        stroke-dasharray: 361.94232177734375px;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 361.94232177734375px;
    }
}

@keyframes animate-svg-stroke-8 {
    0% {
        stroke-dashoffset: 361.94232177734375px;
        stroke-dasharray: 361.94232177734375px;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 361.94232177734375px;
    }
}

@-webkit-keyframes animate-svg-fill-8 {
    0% {
        fill: transparent;
    }

    100% {
        fill: rgb(164, 11, 94);
    }
}

@keyframes animate-svg-fill-8 {
    0% {
        fill: transparent;
    }

    100% {
        fill: rgb(164, 11, 94);
    }
}

.svg-elem-8 {
-webkit-animation: animate-svg-stroke-8 2s cubic-bezier(0.755, 0.05, 0.855, 0.06) 1.8399999999999999s both,
                    animate-svg-fill-8 5s cubic-bezier(0.47, 0, 0.745, 0.715) 1.2000000000000002s both;
        animation: animate-svg-stroke-8 2s cubic-bezier(0.755, 0.05, 0.855, 0.06) 1.8399999999999999s both,
            animate-svg-fill-8 5s cubic-bezier(0.47, 0, 0.745, 0.715) 1.2000000000000002s both;
}

@-webkit-keyframes animate-svg-stroke-9 {
    0% {
        stroke-dashoffset: 335.5740966796875px;
        stroke-dasharray: 335.5740966796875px;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 335.5740966796875px;
    }
}

@keyframes animate-svg-stroke-9 {
    0% {
        stroke-dashoffset: 335.5740966796875px;
        stroke-dasharray: 335.5740966796875px;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 335.5740966796875px;
    }
}

@-webkit-keyframes animate-svg-fill-9 {
    0% {
        fill: transparent;
    }

    100% {
        fill: rgb(164, 11, 94);
    }
}

@keyframes animate-svg-fill-9 {
    0% {
        fill: transparent;
    }

    100% {
        fill: rgb(164, 11, 94);
    }
}

.svg-elem-9 {
-webkit-animation: animate-svg-stroke-9 2s cubic-bezier(0.755, 0.05, 0.855, 0.06) 1.96s both,
                    animate-svg-fill-9 5s cubic-bezier(0.47, 0, 0.745, 0.715) 1.3s both;
        animation: animate-svg-stroke-9 2s cubic-bezier(0.755, 0.05, 0.855, 0.06) 1.96s both,
            animate-svg-fill-9 5s cubic-bezier(0.47, 0, 0.745, 0.715) 1.3s both;
}

html{
    overflow-x: hidden;
    height: -webkit-fill-available;
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0; 
 }

body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    scroll-behavior: smooth;
} 

a {
    text-decoration: underline black;
}

p, td {
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    font-size: 14pt;
}

h2 {
    font-family: YuMincho, "游明朝体", "YuMincho", "游明朝",
    "Yu Mincho", "Hiragino Mincho ProN", "ヒラギノ明朝 Pro W3";
    font-size: 24pt;
}

h3 {
    font-family: YuMincho, "游明朝体", "YuMincho", "游明朝",
    "Yu Mincho", "Hiragino Mincho ProN", "ヒラギノ明朝 Pro W3";
    font-size: 24pt;
}


#main-menu-block {
    z-index: 1000;
    width: 100%;
    padding: 12px 10px;
    justify-content: center;
    text-align: center;
    position: fixed;
    display: flex;
}

#main-menu-block a {
    padding: 8px;
    font-size: 1rem;
    white-space: nowrap;
}

nav {
    font-size: 14pt;
    padding: 10pt;
    top: 20px;
    width: 100%;
    max-width: 750px;
    background: rgb(164, 11, 94,0.75);
    justify-content: center;
    text-align: center;
    grid-auto-flow: column;
    border-width: 1px;
    border-color: black;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px 5px 5px 5px; 
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 0;
    width: 100%;
}

nav li {
    margin: 0;
    padding: 0;
}

nav a {
    font-size: 14pt;
    padding: 10px;
    font-family: sans-serif;
    font-weight: normal;
    color: white;
    transition: background 1s ease-in;
    text-decoration: none;
    white-space: nowrap;
}

nav a:hover {
    background: white;
    color: rgb(164, 11, 94);
    transition: background 0.3s ease-in;
}
    
.page-title {
    position: sticky;
    z-index: 2;
    margin: 0px;
    padding: 0px;
    padding-top: 250px;
    display: block;
    vertical-align: middle;
    background-color: transparent;
    min-width: 100%;
    width: auto;
    height: 100vh;
    min-height: 100vh;
    position: relative;
}

.page-title-block {
    z-index: 2;
    display: block;
    vertical-align: middle;
    justify-content: center;
    text-align: center;
    min-width: 100%;
    width: auto;
}


.page-title-text {
    z-index: 2;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    vertical-align: middle;
    text-align: center;
    font-size: 24pt;
    font-weight: bolder;
    width: 0;
    border-right: 0.05em solid black; 
    overflow: hidden; 
    white-space: nowrap; 
    text-shadow: -8px -8px 16px white;
    animation: 
        typing-message 4s steps(18, end) forwards, 
        cursol 1s step-end 7s infinite
}

@keyframes typing-message{
    0% { width: 0vw; }
    100% { width: 18em; }
}

@keyframes cursol{
    0%{ border-color: transparent; }
    50% { border-color: black; } 
    100% { border-color: transparent;}
}

@keyframes cursol-end{
    0%{ border-color: transparent; }
}


section {
    display: table;
    position: relative;
    z-index: 100;
    min-width: 100%;
    width: auto;
    /* min-height: 50vh を削除 */
    margin-left: 0px;
    margin-right: 0px;
    justify-content: center;
    text-align: center;
    background-color: rgba(255,255,255,1);
    margin-top: 1px;
}

section content {
    display: table;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 50px;
    padding-bottom: 30px;
    z-index: 1;
    width: 100%;
    vertical-align: top;
    align-items: center;
}

section content block{
    display: inline-block;
    padding-left: 30px;
    padding-right: 30px;
    margin: 10px 8px;
    width: 700px;
    border-radius: 6px;
    background-color: transparent;
    animation: fadeup 1s cubic-bezier(0.33, 1, 0.68, 1) forwards;
    vertical-align: middle;
}

section content block h2 {
    text-align: center; 
    line-height: 1.8em;
    font-weight: bold;
    color: rgb(164, 11, 94);
}

section content block h3 {
    text-align: center; 
    line-height: 1.8em;
    font-weight: bold;
    color: rgb(164, 11, 94);
}

section content block p {
    text-align: justify; 
    line-height: 1.8em;
    font-weight: normal;
    padding: 10px;
    color: black;
}

section content single-block{
    display: inline-block;
    margin: 10px 8px;
    border-radius: 6px;
    background-color: transparent;
    animation: fadeup 1s cubic-bezier(0.33, 1, 0.68, 1) forwards;
    vertical-align: middle;
    text-align: center;
}

section content single-block p {
    max-width: 80%;
    text-align: justify; 
    line-height: 1.8em;
    font-weight: normal;
    padding: 10px;
    color: black;
}

section content single-block h2 {
    text-align: center; 
    line-height: 1.8em;
    font-size: 24pt;
    font-weight: bold;
    color: rgb(164, 11, 94);
}

section content single-block h3 {
    text-align: center; 
    line-height: 1.8em;
    font-weight: bold;
    color: rgb(164, 11, 94);
}


.mission {
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    text-align: center;
    vertical-align: middle;
    font-size: 15pt;
    font-weight: normal;
    border-radius: 5px 5px 5px 5px;
    color: rgb(164, 11, 94);
    border:  1px solid rgb(164, 11, 94);
    white-space: nowrap; 
    padding: 15px 15px 0px;
    box-sizing: border-box;
    background-color: transparent;
    line-height: 1.2;
}


.cards {
    display: table;
    padding: 30px;
    z-index: 1;
    width: 100%;
    vertical-align: top;
    margin: 0 auto;
    text-align: center;
}

.card {
    display: inline-block;
    margin: 8px 8px;
    padding: 0;
    width: 350px;
    height: 450px;
    border-radius: 6px;
    box-shadow: 4px 4px 16px #888;
    background-color: rgba(164, 11, 94, 1);
    animation: fadeup 1s cubic-bezier(0.33, 1, 0.68, 1) forwards;
    vertical-align: top;
}

.card img {
    width: 100%;
    border-radius: 6px 6px 0 0;
}

.card h2 {
    color: white;
    text-align: center;
    font-size: 24px;
    padding: 16px 16px;
}

.card p {
    padding-left: 24pt;
    padding-right: 24pt;
    color: white;
    text-align: justify;
    line-height: 1.4;
}

.card img:hover {
    opacity: 0.6;
    color: #f00;
}
.card h2:hover {
    color: #f00;
}


@keyframes fadeup {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.background-video-container {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: -9999;
    overflow: hidden;
    pointer-events: none;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

@media (max-aspect-ratio: 16/9) {
    .background-video {
        width: 100%;
        height: auto;
    }
}

@media (min-aspect-ratio: 16/9) {
    .background-video {
        width: auto;
        height: 100%;
    }
}


.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fade-in 1.5s ease-in-out forwards;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.scroll-indicator:hover {
    transform: scale(1.05);
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

.scroll-text {
    margin-top: 10px;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: white;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    background-color: rgba(164, 11, 94, 0.8);
    padding: 3px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-text {
    background-color: rgba(164, 11, 94, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(12px) scale(1.1);
    }
    60% {
        transform: translateY(6px) scale(1.05);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.knowledge-circle {
    z-index: 1;
    position: relative;
    white-space: nowrap;
    rotate: 0deg;
    animation:circle-anim 72s linear infinite;
}
@keyframes circle-anim {
    0% {
        transform: rotate(0deg);
        
    }
    100% {
        transform: rotate(360deg);
    }    
}
.knowledge-circle-typo {
    z-index: 10;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    position: absolute;
    display:inline-flex;
}



.tr-line {
    border-top: 1px gray;
    border-bottom: 1px gray;
}
.td-title {
    width: 40%;
    padding: 10px;
    text-align: right;
    white-space: nowrap;
    font-weight: bold;
    line-height: 1.25em;
    color: black;
    border-top: 1px gray;
    border-bottom: 1px gray;
}

.td-data {
    width: 60%;
    padding: 10px;
    text-align: left;
    white-space: nowrap;
    font-weight: lighter;
    line-height: 1.25em;
    color: black;
    border-top: 1px gray;
    border-bottom: 1px gray;
     
}

.td-data-wrap {
    margin: 10pt 0;
    padding: 10pt 0;
    text-align:justify;
    font-weight: lighter;
    line-height: 1.25em;
    color: black;
    border-left: 0;
    border-bottom: 1px solid #eee;
}

.section-index {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
}

.section-index-container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(1px);
    border: 1px solid rgb(164, 11, 94, 0.3);
}

.section-index h3 {
    font-size: 16pt;
    margin: 0 0 10px 0;
    color: rgb(164, 11, 94);
    text-align: center;
}

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

.section-index li {
    margin: 10px 0;
    text-align: center;
}

.section-index a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.section-index a:hover {
    background-color: rgb(164, 11, 94);
    color: white;
}

/* ハンバーガーメニュー */
.hamburger-menu {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1100;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    display: none; /* デフォルトでは非表示 */
    justify-content: center;
    align-items: center;
}

.hamburger-icon {
    position: relative;
    display: block;
    width: 30px;
    height: 2px;
    background-color: rgb(164, 11, 94);
    transition: all 0.3s;
    mix-blend-mode: exclusion; /* XOR効果 */
}

.hamburger-icon:before,
.hamburger-icon:after {
    content: '';
    position: absolute;
    width: 30px; /* 同一長 */
    height: 2px;
    background-color: rgb(164, 11, 94);
    transition: all 0.3s;
    left: 0; /* 中央揃え */
    mix-blend-mode: exclusion; /* XOR効果 */
}

/* メニューが開いている状態のハンバーガーアイコン（×マーク）は白色 */
.hamburger-menu.active .hamburger-icon:before,
.hamburger-menu.active .hamburger-icon:after {
    background-color: #ffffff;
    mix-blend-mode: normal;
}

.hamburger-icon:before {
    top: -8px;
}

.hamburger-icon:after {
    top: 8px;
}

.hamburger-menu.active .hamburger-icon {
    background-color: transparent;
}

.hamburger-menu.active .hamburger-icon:before {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-icon:after {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(164, 11, 94, 0.95);
    z-index: 1050;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    padding-top: 40px;
    overflow-y: auto;
}

.mobile-logo {
    margin-bottom: 30px;
    text-align: center;
}

.mobile-logo img {
    max-width: 240px;
    height: auto;
    filter: 
        drop-shadow(0 0 2px rgba(255, 255, 255, 1))
        drop-shadow(0 0 4px rgba(255, 255, 255, 1))
        drop-shadow(0 0 6px rgba(255, 255, 255, 1)); /* 白色の採光効果 - 多層シャドウで強化 */
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

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

.mobile-menu li {
    margin: 10px 0;
}

.mobile-menu a {
    color: white;
    font-size: 32px;
    text-decoration: none;
    font-weight: bold;
    display: block;
    padding: 15px 0;
    transition: all 0.3s;
    letter-spacing: 2px;
}

.mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .section-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .section-index {
        display: none;
    }
    
    .scroll-indicator {
        margin-top: 20px;
    }
    
    /* scroll-arrow styling moved to device-specific CSS files */
    
    .scroll-text {
        font-size: 12px;
    }
    
    /* モバイルメニュー表示 */
    .hamburger-menu {
        display: flex;
    }
    
    #main-menu-block nav {
        display: none;
    }
    
    /* メニュー要素のサイズ適正化 */
    #main-menu-block nav li a {
        padding: 8px;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    /* モバイルデバイス向けパディング調整 - 全要素に適用 */
    body {
        padding-left: 0 !important;
    }

    /* すべてのコンテナ要素に対して左パディングを最小限に */
    section,
    div[class$="-container"],
    div[class$="-content"], 
    div[class$="-block"],
    .cards,
    .card,
    article,
    section content,
    section content block,
    section content single-block,
    .news-container,
    .news-card,
    .news-card-content,
    .site-index-container,
    .news-detail-container,
    .news-archive-container,
    .contact-form,
    .form-group,
    .news-detail-body,
    .news-full-content,
    .news-archive-item,
    .page-title-block,
    .page-title-text {
        padding-left: 2px !important;
    }
    
    /* グリッドシステムのマージン調整 */
    [class*="col-"] {
        padding-left: 2px !important;
    }
    
    /* 特定要素のパディング調整 */
    section content {
        padding-right: 10px !important;
    }
    
    /* テーブルレイアウトの調整 */
    .td-title, .td-data {
        padding-left: 2px !important;
    }
    
    /* リストアイテムやマーカーの位置調整 */
    ul, ol {
        padding-left: 10px !important;
        margin-left: 0 !important;
    }
    
    li {
        padding-left: 2px !important;
        margin-left: 0 !important;
    }
    
    /* 採用・お問い合わせページ特有の要素 */
    .job-description, 
    .job-details,
    .news-archive-summary,
    .news-detail-intro {
        padding-left: 2px !important;
    }
    
    /* コンテナの横幅を拡大 */
    .container, 
    .container-fluid,
    section content block,
    section content single-block {
        width: 98% !important;
        max-width: 98% !important;
        margin-left: 1% !important;
        margin-right: 1% !important;
    }
    
    /* ビデオコンテナのサイズ調整 */
    .background-video-container {
        left: 0 !important;
        width: 100% !important;
    }
    
    /* インラインスタイルのパディングを上書き */
    [style*="padding-left"]:not(.job-description-section) {
        padding-left: 2px !important;
    }
    
    [style*="padding:"]:not(.job-description-section) {
        padding-left: 2px !important;
        padding-right: 5px !important;
    }
    
    [style*="padding-right"]:not(.job-description-section) {
        padding-right: 5px !important;
    }
    
    [style*="margin-left"]:not(.job-description-section) {
        margin-left: 2px !important;
    }
    
    [style*="margin-right"]:not(.job-description-section) {
        margin-right: 2px !important;
    }
    
    /* 要素の横幅を広げる */
    [style*="width:"] {
        width: auto !important;
        max-width: 100% !important;
    }
    
    /* グリッドレイアウトの調整 */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* 左右の余白をなくす */
    div[style*="margin:"], 
    section[style*="margin:"], 
    article[style*="margin:"] {
        margin-left: 1px !important;
        margin-right: 1px !important;
    }
    
    /* トップページのSVGサイズ調整 */
    .page-title-block svg {
        width: 85% !important;
        max-width: 300px !important;
    }
    
    /* 回転アニメーションの調整 */
    .knowledge-circle-container {
        width: 90% !important;
        max-width: 250px !important;
        margin: 0 auto !important;
    }
    
    .knowledge-circle {
        width: 100% !important;
        max-width: 220px !important;
        margin: 0 auto !important;
    }
    
    .knowledge-circle-typo {
        width: 20% !important;
        max-width: 45px !important;
        right: 5% !important;
    }
    
    /* トップページの各セクションの余白調整 */
    #lnk-knowledge > div,
    #lnk-business > content {
        padding-left: 2px !important;
        padding-right: 5px !important;
    }
    
    /* カードレイアウトの調整 */
    .cards {
        display: table !important;
        padding: 30px !important;
        margin-left: -38px !important;
        width: 100% !important;
        vertical-align: top !important;
    }
    
    .card {
        width: 95% !important;
        max-width: 350px !important;
        margin: 10px auto !important;
        height: auto !important;
        min-height: 380px !important;
    }
    
    .card img {
        width: 100% !important;
        object-fit: cover !important;
        height: auto !important;
    }
    
    .card h2 {
        font-size: 20px !important;
        padding: 12px 5px !important;
        margin: 0 !important;
        text-align: center !important;
    }
    
    .card p {
        padding: 0 15px 15px 15px;
        margin: 0;
        text-align: left;
        font-size: 16px;
    }
}

/* サイトインデックスのスタイル */
.site-index {
    background-color: #f2f2f2;
    padding: 30px 0 25px;
    border-top: 1px solid #e5e5e5;
}

.site-index-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-index-layout {
    display: flex;
    justify-content: center;
}

.site-index-column {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 1000px;
}

.site-index-logo {
    flex-shrink: 0;
    width: 200px;
    margin-right: 0;
    margin-bottom: 10px;
    text-align: center;
}

.logo-address {
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 8px;
    line-height: 1;
    color: #666;
    text-align: center;
    white-space: normal;
}

.site-index-map {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 20px;
}

.site-index-section {
    width: 170px;
    margin-bottom: 0;
}

.site-index-section h3 {
    font-size: 10px;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    font-weight: normal;
    margin: 0 0 2px 0;
    color: rgb(164, 11, 94);
    padding-bottom: 1px;
    border-bottom: 1px solid rgba(164, 11, 94, 0.2);
    text-align: left;
}

.site-index-section ul {
    list-style: none;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.site-index-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-index-link-item {
    margin-bottom: 2px;
    text-align: left;
}

.site-index-section a {
    text-decoration: none;
    color: #333;
    font-size: 11px;
    transition: all 0.3s ease;
    display: inline-block;
}

.site-index-section a:hover {
    color: rgb(164, 11, 94);
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .site-index {
        padding: 30px 0;
    }
    
    .site-index-layout {
        flex-direction: column;
        align-items: center;
    }
    
    .site-index-logo {
        width: 100%;
        max-width: 300px;
        margin-bottom: 20px;
        align-items: center;
        text-align: center;
    }
    
    .logo-address {
        margin-top: 10px;
        text-align: center;
        max-width: 300px;
    }
    
    .site-index-map {
        width: 100%;
        justify-content: space-around;
    }
    
    .site-index-section {
        width: 45%;
        margin-bottom: 20px;
    }
}

/* モバイルデバイス専用のスタイル */
.mobile-device .page-title-block svg {
    width: 90% !important;
    max-width: 300px !important;
}

/* 中間画面サイズ向けの修正 - トップページの右側空白バグ対応 */
@media screen and (max-width: 1024px) {
    article[style*="width: 100vw"] {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* モバイルデバイス向け会社概要・お問い合わせスタイル */
.mobile-device .company-info-section {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.mobile-device .company-details,
.mobile-device .company-contact {
    width: 95% !important;
    max-width: 100% !important;
    margin: 0 auto 20px !important;
}

/* テーブルレイアウトの調整をmobile/top.cssに移動 */

.mobile-device .td-data {
    width: 60% !important;
    padding: 8px 5px !important;
    text-align: left !important;
    white-space: normal !important;
    font-size: 0.9rem !important;
}

/* モバイルデバイス向けミッションセクションのスタイル */
.mobile-device .mission-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 95% !important;
    padding-bottom: 30px !important;
}

.mobile-device .mission-text,
.mobile-device .mission-philosophy {
    flex: 1 1 100% !important;
    padding: 10px !important;
    width: 100% !important;
}

/* フィロソフィーブロックのSVGサイズ調整 */
.mobile-device .mission-philosophy img {
    width: 60% !important;
    max-width: 180px !important;
    margin: 0 auto !important;
}

.mobile-device .knowledge-circle-container {
    width: 95% !important;
    max-width: 95% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: relative !important;
    /* 中央揃えのためのtransformは不要 - 見切れの原因 */
    left: auto !important;
    transform: none !important;
}

.mobile-device .knowledge-circle {
    width: 95% !important;
    max-width: 450px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
}

.mobile-device .knowledge-circle-typo {
    width: 25% !important;
    max-width: 80px !important;
    right: 5% !important;
    bottom: 10% !important;
}

.mobile-device #lnk-knowledge > div,
.mobile-device #lnk-business > content {
    padding-left: 2px !important;
    padding-right: 5px !important;
}

/* ナレッジセクションのコンテンツレイアウト調整 */
.mobile-device #lnk-knowledge content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.mobile-device content block,
.mobile-device content single-block {
    padding-left: 2px !important;
    padding-right: 5px !important;
}

/* ナレッジセクションの回転アニメーション用のブロックを全幅で表示 */
.mobile-device #lnk-knowledge content block:nth-child(2) {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* モバイルデバイスのカードレイアウト調整 */
.mobile-device .cards {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    padding: 30px !important;
    width: 100% !important;
}

.mobile-device .card {
    width: 90% !important;
    max-width: 320px !important;
    margin: 10px auto !important;
    height: auto !important;
    min-height: 360px !important;
    display: block !important;
}

.mobile-device .card img {
    width: 100% !important;
    object-fit: cover !important;
    height: auto !important;
}

.mobile-device .card h2 {
    font-size: 20px !important;
    padding: 12px 5px !important;
    margin: 0 !important;
    text-align: center !important;
}

.mobile-device .card p {
    padding: 0 15px 15px 15px !important;
    margin: 0 !important;
    text-align: left !important;
    font-size: 16px !important;
}

/* モバイルデバイス用の最新情報セクションのスタイル */
.mobile-device .news-section {
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.mobile-device .news-title {
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.mobile-device .news-container {
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.mobile-device .news-scroll-container {
    overflow-x: visible !important;
    white-space: normal !important;
    cursor: default !important;
    width: 100% !important;
}

.mobile-device .news-scroll-container > div {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

.mobile-device .news-card {
    width: 95% !important;
    max-width: 400px !important;
    margin: 10px auto !important;
    display: block !important;
    white-space: normal !important;
}

/* 4件目以降のニュースを非表示（元の設定に戻す） */
.mobile-device .news-card:nth-child(n+4) {
    display: none !important;
}

/* ナビゲーションドットを非表示 */
.mobile-device .scroll-indicator-dots {
    display: none !important;
}

/* 小型スマートフォン向けの特別調整 */
@media (max-width: 375px) {
    /* 小型デバイスの最新情報セクション調整 */
    .news-section {
        text-align: center !important;
        padding: 30px 0 50px !important;
    }
    
    .news-title {
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto 20px !important;
    }
    
    .news-container {
        text-align: center !important;
        padding: 0 !important;
    }
    
    /* 小型デバイスでは最新情報を3件だけ表示（元の設定に戻す） */
    .news-card:nth-child(n+4) {
        display: none !important;
    }
    
    /* 最新情報カードのスタイル調整 */
    .news-card {
        width: 95% !important;
        max-width: none !important;
        margin: 5px auto !important;
        text-align: center !important;
    }
    
    .news-card-content {
        padding: 15px !important;
        text-align: center !important;
    }
    
    /* 特に狭いスマホの場合、すべての余白を最小に */
    * {
        padding-left: 1px !important;
        padding-right: 4px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* 小型デバイス向け会社情報テーブルの調整 */
    .td-title, .td-data {
        padding: 5px !important;
        white-space: normal !important;
        font-size: 0.85rem !important;
    }
    
    /* 小型デバイス向けミッションセクションの調整 */
    .mission-philosophy img {
        width: 50% !important;
        max-width: 150px !important;
    }
    
    .td-title {
        text-align: right !important;
        padding-right: 5px !important;
    }
    
    .td-data {
        text-align: left !important;
        padding-left: 5px !important;
    }
    
    body, html {
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* コンテンツを最大限に広げる */
    [style*="width:"],
    [style*="max-width:"] {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* トップページロゴSVGをさらに調整 */
    .page-title-block svg {
        width: 95% !important;
        max-width: 280px !important;
    }
    
    /* 回転SVGを画面いっぱいに */
    #lnk-knowledge content {
        padding: 0 !important;
    }
    
    #lnk-knowledge content block:nth-child(2) {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100vw !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .knowledge-circle-container {
        width: 100vw !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }
    
    .knowledge-circle {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
    }
    
    .knowledge-circle-typo {
        width: 18% !important;
        max-width: 36px !important;
    }
    
    /* トップページのナレッジセクションをコンパクトに */
    #lnk-knowledge table {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .td-data-wrap {
        margin: 10px 0 !important;
        padding: 5px 0 !important;
    }
    
    /* カードサイズをさらに最適化 */
    .cards {
        padding: 10px !important;
        margin-left: 0 !important;
    }
    
    .card {
        width: 98% !important;
        max-width: 300px !important;
        margin: 5px auto !important;
        min-height: 340px !important;
    }
    
    /* サービス説明文を中央揃えに */
    #lnk-business single-block > p {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        text-align: center !important;
        margin: 0 auto !important;
        padding: 0 5px !important;
    }
}

@media (max-width: 480px) {
    .site-index {
        padding: 25px 0;
    }
    
    .site-index-logo {
        max-width: 240px;
        font-size: 8pt;
    }
    
    .site-index-section {
        width: 100%;
        max-width: 240px;
        margin-bottom: 15px;
    }
    
    /* 応募方法のコンテナ調整 */
    #recruitment-entry h3 {
        font-size: 24pt !important;
        margin-bottom: 20px !important;
    }
    
    #recruitment-entry div[style*="background-color: white"] {
        padding: 20px 10px !important;
        margin: 10px 0 !important;
    }
    
    .site-index-section h3 {
        font-size: 16px;
    }
    
    .site-index-section li {
        margin-bottom: 2px;
    }
    
    /* 採用ページの調整 */
    #recruitment-body-top,
    #recruitment-body,
    #recruitment-entry {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 職種リストの調整 */
    .job-listing-item {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px auto !important;
        overflow: hidden !important; /* はみ出しを防止 */
    }
    
    .job-listing-item > div {
        width: 100% !important;
        padding: 10px 5px !important;
        border-right: none !important;
        box-sizing: border-box !important; /* 幅計算にパディングを含める */
    }
    
    /* 募集職種の説明文エリアスタイル */
    .job-description-section {
        width: 100% !important;
        margin: 0 !important;
        padding: 10px !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word !important; /* 長い単語の折り返し */
    }
    
    /* 職種リストのタイトル部分 */
    .job-listing-item > div:first-child {
        border-bottom: 1px solid #eee !important;
    }
    
    /* 職種一覧のグリッドを調整 */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* グリッド内の職種タイトルと説明文を縦並びに */
    .job-listing-item {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* 画面いっぱいに広げる */
    div[style*="width: 800px"],
    div[style*="max-width: 800px"],
    div[style*="max-width: 1000px"],
    article[style*="max-width: 1000px"] {
        width: 98% !important;
        max-width: 98% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 2px !important;
        padding-right: 5px !important;
    }
    
    /* 職種詳細ページの調整 */
    .job-description,
    .job-details {
        padding-left: 2px !important;
        padding-right: 5px !important;
    }
    
    .job-description p,
    .job-details p {
        padding-left: 2px !important;
        text-align: left !important;
    }
    
    .job-description ul,
    .job-details ul {
        padding-left: 5px !important;
    }
    
    .job-description li,
    .job-details li {
        padding-left: 1px !important;
    }
}

/* ニュースセクション用スタイル */
.news-section {
    padding: 60px 0 100px;
    margin-bottom: 0;
    background-color: white;
    position: relative;
    z-index: 1;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* セクションとコンテンツのパディングをオーバーライドするクラス */
.news-section-override,
.business-section-override {
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
}

/* section content 要素のパディングオーバーライド */
section.news-section-override .section-container,
section.business-section-override .section-container {
    padding-bottom: 50px \!important;
    max-width: none;
    width: 100% \!important;
}

/* 共通セクションスタイル */
.section-container {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    text-align: center;
}


/* 共通セクションタイトルスタイル */
.section-title {
    text-align: center !important;
    margin: 60px auto 40px !important;
    padding: 0 !important;
    color: rgb(164, 11, 94);
    font-size: 24pt;
    font-family: YuMincho, "游明朝体", "YuMincho", "游明朝",
    "Yu Mincho", "Hiragino Mincho ProN", "ヒラギノ明朝 Pro W3";
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}


.news-loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #777;
}

/* スクロール可能なニュースコンテナのスタイル */
.news-scroll-container {
    -webkit-overflow-scrolling: touch; /* iOSのスムーススクロール */
    position: relative;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: rgba(164, 11, 94, 0.5) transparent;
}

.news-scroll-container:active {
    cursor: grabbing;
}

.news-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.news-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.news-scroll-container::-webkit-scrollbar-thumb {
    background-color: rgba(164, 11, 94, 0.5);
    border-radius: 20px;
}

/* スナップスクロール用のスタイル */
.snap-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform-origin: center center;
    scroll-snap-align: center;
    position: relative;
}

.snap-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-scroll-container:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(164, 11, 94, 0) 0%, 
        rgba(164, 11, 94, 0.3) 25%, 
        rgba(164, 11, 94, 0.5) 50%, 
        rgba(164, 11, 94, 0.3) 75%, 
        rgba(164, 11, 94, 0) 100%);
}

/* スクロールナビゲーション表示用 */
.scroll-indicator-dots {
    display: block;
    text-align: center;
    margin: 20px 0;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(164, 11, 94, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
}

.scroll-dot.active {
    background-color: rgb(164, 11, 94);
    transform: scale(1.3);
}

/* 従来のグリッドスタイル（念のため残しておく） */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* レスポンシブ用にニュースセクション内の要素を明示的に中央揃え */
@media (max-width: 768px) {
    .news-section,
    .news-section .section-container,
    .news-section .section-title,
    .scroll-indicator-dots,
    .news-view-all {
        text-align: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .section-container {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-card-content {
    padding: 20px;
    flex-grow: 1;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    border-radius: 20px;
    margin-bottom: 10px;
}

.news-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.news-card-title {
    color: #333;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: bold;
    line-height: 1.4;
}

.news-summary {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

.news-card-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.news-more-link {
    color: rgb(164, 11, 94);
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s;
}

.news-more-link:hover {
    opacity: 0.7;
}

.news-related-link {
    color: #4285f4;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s;
    margin-left: 15px;
}

.news-related-link:hover {
    opacity: 0.7;
}

.news-view-all {
    text-align: center;
    margin: 10px 0 0;
    width: 100%;
    padding-bottom: 0;
}

.news-view-all-link {
    display: inline-block;
    padding: 12px 30px;
    background-color: rgb(164, 11, 94);
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.news-view-all-link:hover {
    background-color: rgb(134, 9, 77);
}

/* レスポンシブ調整用のクラス */
@media (max-width: 768px) {
    .mission-content {
        flex-direction: column !important;
    }
    
    .mission-text,
    .mission-philosophy {
        flex: 1 1 100% !important;
        padding: 10px 15px !important;
    }
    
    .company-info-section {
        flex-direction: column !important;
        padding: 0 20px !important;
    }
    
    .company-details,
    .company-contact {
        flex: 1 1 100% !important;
    }
}

/* ニュース詳細ページのスタイル */
.news-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 50px;
}

.news-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.news-detail-date {
    margin-left: 15px;
    color: #666;
    font-size: 16px;
}

.news-detail-title {
    font-size: 32px;
    line-height: 1.3;
    color: #333;
    font-weight: bold;
}

.news-detail-body {
    margin-bottom: 40px;
}

.news-detail-intro {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
    font-weight: 500;
    text-align: left;
    padding-left: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.news-detail-subtitle {
    font-size: 22px;
    color: rgb(164, 11, 94);
    margin: 30px 0 15px;
    padding-left: 12px;
    border-left: 4px solid rgb(164, 11, 94);
}

.news-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    text-align: left;
}

.news-full-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    text-align: left;
    white-space: pre-line;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.news-detail-additional {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.news-detail-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.news-back-button, .news-related-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgb(164, 11, 94);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin: 0 10px;
}

.news-back-button:hover, .news-related-button:hover {
    background-color: rgb(134, 9, 77);
}

.news-related-button {
    background-color: rgb(164, 11, 94);
}

.news-related-button:hover {
    background-color: rgb(134, 9, 77);
}

.news-detail-loading,
.news-detail-error,
.news-detail-not-found {
    text-align: center;
    padding: 100px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.news-detail-loading h2,
.news-detail-error h2,
.news-detail-not-found h2 {
    color: rgb(164, 11, 94);
    margin-bottom: 20px;
}

.news-detail-error p,
.news-detail-not-found p {
    margin-bottom: 20px;
    color: #666;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        max-width: 100%;
    }
    
    .news-detail-title {
        font-size: 24px;
    }
    
    .news-detail-intro {
        font-size: 16px;
    }
    
    .news-detail-subtitle {
        font-size: 20px;
    }
}

/* ニュースアーカイブページのスタイル */
.news-archive-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 50px;
}

.news-archive-title {
    text-align: center;
    color: rgb(164, 11, 94);
    font-size: 32px;
    margin-bottom: 40px;
}

.news-archive-filters {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.news-search {
    width: 100%;
}

.news-search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.news-search-input:focus {
    border-color: rgb(164, 11, 94);
    outline: none;
    box-shadow: 0 0 0 2px rgba(164, 11, 94, 0.2);
}

.news-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-button {
    padding: 8px 15px;
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-button.active {
    background-color: rgb(164, 11, 94);
    color: white;
    border-color: rgb(164, 11, 94);
}

.filter-button:hover {
    opacity: 0.8;
}

.news-archive-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-archive-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}

.news-archive-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.news-archive-date {
    margin-left: 15px;
    color: #666;
    font-size: 14px;
}

.news-archive-item-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.news-archive-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-archive-item-title a:hover {
    color: rgb(164, 11, 94);
}

.news-archive-summary {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.news-archive-item-footer {
    display: flex;
    justify-content: flex-start;
}

.news-archive-footer {
    margin-top: 40px;
    text-align: center;
}

.news-empty {
    text-align: center;
    padding: 40px 0;
    color: #666;
}

@media (max-width: 768px) {
    .news-archive-title {
        font-size: 28px;
    }
    
    .news-filter {
        justify-content: center;
        width: 100%;
    }
    
    .news-archive-item-title {
        font-size: 20px;
    }
}

.page-footer {
    position: relative;
    z-index: 0;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Cookie consent styles */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cookie-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 14px;
}

.cookie-buttons {
    margin-top: 15px;
}

.cookie-btn {
    background-color: rgb(164, 11, 94);
    color: white;
    border: none;
    padding: 8px 16px;
    margin: 0 10px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

.cookie-btn:hover {
    background-color: rgb(134, 9, 77);
}

/* Form styles */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: rgb(164, 11, 94);
    box-shadow: 0 0 0 2px rgba(164, 11, 94, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    background-color: rgb(164, 11, 94);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-submit:hover {
    background-color: rgb(134, 9, 77);
}

.error-message {
    color: #d9534f;
    font-size: 14px;
    margin-top: 5px;
}

.success-message {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.required:after {
    /* content属性を削除して疑似要素の内容を非表示に */
    color: rgb(164, 11, 94);
    margin-left: 4px;
}

.form-info {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}
