/*************
 2026 リメイク
 *************/

/* 基本モバイル */

:root{
    interpolate-size: allow-keywords;
}

body{
    position: relative;
    max-width: 1200px;
    margin: auto;
    color: #333;
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", "sans-serif";
    font-size: 14px;
    line-height: 150%;
}

h3{
    margin: 30px auto 15px;
    padding: 0 4px;
    font-size: 22px;
    font-weight: bold;
    line-height: 40px;
}
h4{
    margin: 30px auto 15px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

div.PC{
    display: none;
}
div.SP{
    display: block;
}

section{
    margin: 30px 0 0;
}

p{
    margin: 2em 4px 0;
    word-break: normal;
    line-break: strict;
    overflow-wrap: anywhere;
}
p.indent{
    text-indent: 1em;
}

figure{
    display: block;
    text-align: center;

    img{
        display: inline-block;
    }
}

ul.table{
  margin: 0;
  padding: 0;
  list-style: none;

  li{
    display: table-row;
  }
  li:nth-child(even){
    background-color: #bae3f9;
  }
  li span{
    display: table-cell;
    padding: 4px 0.5em;
    line-height: 150%;

    img{
        display: inline-block;
        padding-left: 1em;
        vertical-align: top;
    }
  }
  li span.item{
    white-space: nowrap;
  }
  li span.content{
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  li.tail{
    display: block;
    text-align: right;
    background-color: transparent;
  }
}

details{
    summary{
        margin: 2px;
        padding: 0.5em 1em;
        background-color: #96dcff;
        color: #2699fb;
        font-size: 15px;
        font-weight: bold;
        line-height: 200%;
    }
    > div{
        margin-bottom: 30px;
    }

    &::details-content{
        @media (prefers-reduced-motion: no-preference){
            overflow: clip;
            transition-duration: 500ms;
            transition-property: content-visibility, block-size;
            transition-behavior: allow-discrete;
        }
    }

    &:not(:open)::details-content{
        block-size: 0;
    }
}


header{
    position: relative;
    padding: 4px 4px;

    h1{
        position: absolute;
    }

    nav{
        text-align: right;
    }
    nav ul{
        margin: 0;
        margin-left: auto;
        width: 180px;
        height: 0;
        overflow-y: hidden;
        text-align: center;
        list-style: none;
        opacity: 0;
        transition: all 800ms;
    }
    nav.li,
    nav li.narrow{
        display: block;
    }
    nav a{
        display: block;
        margin-bottom: 2px;
        width: 100%;
        height: auto;
        background-color: #969696;
        color: white;
        line-height: 40px;
        text-decoration: none;
    }
    nav a.current{
        background-color: #666;
    }
    nav a:active{
        background-color: #555;
    }
}

#Hamburger{
    position: relative;
    width: 34px;
    height: 28px;
    cursor: pointer;
}
#Hamburger span{
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #888;
    border-radius: 4px;
}
#Hamburger, #Hamburger span{
    display: inline-block;
    transition: all 300ms;
    box-sizing: border-box;
}
#Hamburger span:nth-of-type(1){
    top: 0;
}
#Hamburger span:nth-of-type(2){
    top: 12px;
}
#Hamburger span:nth-of-type(3){
    bottom: 0;
}

#Hamburger span:nth-of-type(1){
    animation: bar01 300ms forwards;
}
@keyframes bar01{
    0%{
        transform: translateY(12px) rotate(45deg);
    }
    50%{
        transform: translateY(12px) rotate(0);
    }
    100%{
        transform: translateY(0) rotate(0);
    }
}
#Hamburger span:nth-of-type(2){
    transition: all 150ms 150ms;
    opacity: 1;
}
#Hamburger span:nth-of-type(3){
    animation: bar03 300ms forwards;
}
@keyframes bar03{
    0%{
        transform: translateY(-12px) rotate(-45deg);
    }
    50%{
        transform: translateY(-12px) rotate(0);
    }
    100%{
        transform: translateY(0) rotate(0);
    }
}
#Hamburger.active span:nth-of-type(1){
    animation: active-bar01 300ms forwards;
}
@keyframes active-bar01{
    0%{
        transform: translateY(0) rotate(0);
    }
    50%{
        transform: translateY(12px) rotate(0);
    }
    100%{
        transform: translateY(12px) rotate(45deg);
    }
}
#Hamburger.active span:nth-of-type(2){
    opacity: 0;
}
#Hamburger.active span:nth-of-type(3){
    animation: active-bar03 300ms forwards;
}
@keyframes active-bar03{
    0%{
        transform: translateY(0) rotate(0);
    }
    50%{
        transform: translateY(-12px) rotate(0);
    }
    100%{
        transform: translateY(-12px) rotate(-45deg);
    }
}
#Hamburger.active + ul{
    height: 210px;
    opacity: 1;
}

#Eyecatch{
    position: relative;
    height: min(100vw, 376px);
    background-color: white;

    img{
        position: absolute;
    }

    div.narrow{
        display: block;
    }
    div.wide{
        display: none;
    }
}
@media screen and (min-width: 376px){
    #Eyecatch{
        height: calc(min(100vw, 1200px) / 1200 * 515);

        div.narrow{
            display: none;
        }
        div.wide{
            display: block;
        }
    }
}

#TitleBar{
    margin: 8px 0;
    padding: 4px 8px;
    background-color: #2699fb;
    color: white;

    a{
        display: block;
        padding: 4px;
        width: 100%;
        color: white;
        text-decoration: none;
        font-size: 13px;
    }
    a.this{
        text-align: left;
    }
    a.link{
        text-align: right;
    }
    a.link:after{
        display: inline-block;
        margin-left: 0.5em;
        width: 24px;
        height: 18px;
        content: '';
        background-image: url("../images/arrow.png");
        background-size: contain;
        background-repeat: no-repeat;
    }
    a span{
        margin-right: 0.5em;
        font-size: 20px;
        font-weight: bold;
    }
}

.linkButton{
    a{
        display: block;
        margin: 0 auto;
        padding: 9px 0;
        width: min(100vw, 250px);
        height: 64px;
        background-color: red;
        text-decoration: none;
    }
    a span{
        display: block;
        color: white;
        text-align: center;
        font-weight: bold;
    }
    span.upper{
        font-size: 22px;
        line-height: 26px;
    }
    span.lower{
        font-size: 16px;
        line-height: 20px;
    }
    span.center{
        font-size: 24px;
        line-height: 46px;
    }
}
#Recruit{
    position: relative;
    margin: 4px 0;
}

#Whatsnew{
    margin-top: 30px;

    h3{
        border-bottom: solid 2px #888;
        color: red;
    }

    div.contents{
        height: 190px;
        overflow-y: auto;
    }

    ul{
        margin: 4px 0;
        padding: 0 2px;
        list-style: none;
    }
    li{
        display: flex;
        padding: 0 2px;
    }
    li:nth-child(odd){
        background-color: #bae3f9;
    }
    span.date{
        color: red;
        padding-right: 0.5em;
    }
}

#Contents{
    margin-top: 30px;

    ul.main{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 8px;
        margin: 30px 0;
        padding: 8px 0;
        border-top: solid 1px #888;
        border-bottom: solid 1px #888;
        list-style: none;
    }
    ul.main li a{
        display: block;
        margin: 0;
    }

    div.copy{
        margin-top: 60px;
        text-align: center;
        color: red;
        line-height: 300%;
    }
    p.upper{
        font-size: 21px;
        font-weight: bold;
        line-height: 36px;
    }
    p.lower{
        font-size: 15px;
        font-weight: bold;
        line-height: 20px;
    }
    p.lower span{
        font-size: 25px;
        line-height: 44px;
    }

    ul.company{
        margin: 30px 0;
        padding: 0;
        list-style: none;
    }
    ul.narrow{
        display: block;
    }
    ul.wide{
        display: none;
    }
    ul.company li img{
        width: 100%;
    }
}
@media screen and (min-width: 560px){
    #Contents{
        ul.narrow{
            display: none;
        }
        ul.wide{
            display: block;
        }
    }
}

footer{
    position: relative;
    margin-top: 30px;
    padding: 0.5em 1em 1em 1em;
    border-top: solid 2px #888;
    h1{
        display: none;
    }

    nav{
        text-align: center;
    }
    nav ul{
        margin: 0;
        padding: 0;
        list-style: none;
    }
    nav li{
        display: inline-block;
        margin: 0.5em;
    }
    nav a{
        text-decoration: none;
        color: #333;
        font-size: 12px;
    }
    nav a:hover{
        text-decoration: underline;
    }

    p{
        margin-top: 1em;
        text-align: center;
        font-size: 12px;
    }
}


/* PC用 */

@media screen and (min-width: 640px){

div.PC{
    display: block;
}
div.SP{
    display: none;
}

section{
    margin: 30px 8px 0;
}

header{
    position: relative;
    padding: 1em 1em 0.5em 1em;

    nav ul{
        margin: 0;
        padding: 0;
        height: auto;
        width: auto;
        text-align: right;
        opacity: 1;
    }
    nav li{
        display: inline-block;
        margin-left: 1em;
    }
    nav li.narrow{
        display: none;
    }
    nav a{
        display: inline;
        margin: 0;
        background-color: transparent;
        color: #333;
        font-size: 12px;
        line-height: 20px;
    }
    nav a.current{
        background-color: transparent;
    }
    nav a:hover{
        text-decoration: underline;
    }
    nav a:active{
        background-color: transparent;
    }
}

#Hamburger{
    display: none;
}

#TitleBar{
    display: flex;
    justify-content: space-between;
}

#Recruit{
    position: absolute;
    right: 8px;
}

#Whatsnew{
    margin-top: 36px;

    h3{
        padding: 0 1em;
    }

    ul{
        padding: 0 8px;
    }

}

#Contents{
    ul.main{
        height: calc(min(100vw, 1200px) / 1200 * 260);
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 8px;
        margin: 30px 0;
        padding: 0;
        border-top: solid 1px #888;
        border-bottom: solid 1px #888;
        list-style: none;
    }
    ul.main li a{
        margin-top: -10px;
    }
    ul.main li:nth-child(even) a{
        margin-top: 10px;
    }

    ul.company.wide{
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 8px;
        margin: 30px 0;
    }
}

footer{
    position: relative;
    padding: 0.5em 1em 1em 1em;
    border-top: solid 2px #888;
    h1{
        position: absolute;
        display: block;
    }

    nav{
        text-align: right;
    }
    nav li{
        display: inline-block;
        margin-left: 1em;
    }

    p{
        margin-top: 0.5em;
        text-align: right;
    }
}

}
