/* ============== 基本設定 ============== */
body {
    position: relative;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    color: #fff;
    background-color: #006297;
    font-size: 16px;
    line-height: 1.8;
}

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

img {
    /* max-width: 100%; */
    height: auto;
    vertical-align: bottom;
}

.container {
    max-width: 1460px;
    margin: 0 auto;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    text-align: center;
    color: #004073;
}

section {
    height: 100%;
}

/* ============== ヘッダー ============== */
.header {
    position: fixed;
    z-index: 10;
    top: 10px;
    left: 10px;
    width: 100%;
    margin: 0 auto;
}

.header .container {
    max-width: 1200px;
}

.header-logo {
    width: 120px;
}

.header-logo img {
    width: 100%;
}

@media screen and (max-width:767px) {
    .header {
        top: 0;
        left: 0;
    }
    
    .header-logo {
        width: 90px;
        margin-top: 3%;
        margin-left: 5%;
    }
}

/* ハンバーガーメニュー基本 */
.menu-toggle {
    display: none;
  }
  
  .menu-icon {
    position: fixed;
    top: 30px;
    right: 25px;
    width: 32px;
    height: 26px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .menu-icon span {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: 0.4s;
  }
  
  /* チェック時のアニメーション（×に変化） */
  .menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }
  .menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }
  
  /* メニュー全体 */
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    background: #309ad3; /* ← サイト全体の背景色に合わせて変更 */
    box-shadow: -4px 0 10px rgba(0,0,0,0.2);
    transition: right 0.5s ease;
    z-index: 1000;
  }
  
  .menu ul {
    list-style: none;
    padding: 80px 20px;
    margin: 0;
    background: #309ad3; /* ← サイト全体の背景色に合わせて変更 */
  }
  
  .menu ul li {
    margin-bottom: 20px;
  }
  
  .menu ul li a {
    display: block; /* ← ボックスにする */
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s, transform 0.3s;
  }
  
  .menu ul li a:hover {
    background: #23719b82;
    /* color: #002369; */
    transform: translateX(4px);
  }
  
  /* チェック時にメニュー表示 */
  .menu-toggle:checked ~ .menu {
    right: 0;
  }
  
  /* スムーズスクロール */
  html {
    scroll-behavior: smooth;
  }
  
  /* スマホ用（右30%） */
  @media (max-width: 767px) {
    .menu {
      width: 50%;
    }
  }
  
  /* PC用（項目分だけ高さ調整） */
  @media (min-width: 768px) {
    .menu {
      width: 300px;
      height: auto;
      top: 20px;
      border-radius: 12px 0 0 12px;
      right: -320px;
      background: rgba(248, 248, 248, 0.95); /* 背景をやや透過に */
    }
    .menu-toggle:checked ~ .menu {
      right: 0;
    }
    .menu ul {
      padding: 20px;
    }
    .menu ul li {
      margin: 10px 0;
    }
  }

/* ============== ファーストビュー ============== */
#fv {
    position: relative;
    width: 100%;
    /* margin-bottom: 5%; */
}

#fv .fv-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

#fv .fv-img {
    display: block; /* text-align:center で中央 */
    width: 100%;            /* 小さい画面では親幅に合わせる */
    max-width: 1400px;
    height: auto;
    margin-top: -10%;
}

#fv .fv-catchphrase {
    position: absolute; 
    top: 30%; 
    left: 5%;
    writing-mode: vertical-rl;
    background-color: #0c6f38C9;
    color: #fff;
    padding: 20px;
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-shadow: 2px 2px 4px rgba(10,10,10,0.5);
}

#fv .fv-text {
    position: absolute;
    max-width: 38.6%;
    bottom: 40%;
    right: 6%;
    text-shadow: 2px 2px 4px rgba(10,10,10,0.8);
    background-color: #2eb2ffaa;
    padding: 0 2%;
}

#fv .fv-text h2 {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
}

#fv .fv-text p {
    font-size: 1rem;
}

#fv .fv-horizon {
    width: 100%;
    max-width: 1000px;
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
}

#fv .fv-horizon img {
    display: block;
    width: 80%;
    margin: 0 auto;
}

@media screen and (max-width:767px) {
    #fv .fv-img {
        margin-top: 0;
    }

    #fv .fv-catchphrase {
        top: 20%;
        font-size: 1rem;
        padding: 5px;
    }

    #fv .fv-horizon{
        bottom: 8%;
    }

    #fv .fv-text {
        top: 95%;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: none;
    }

    #fv .fv-text h2 {
        font-size: 1rem;
    }

    #fv .fv-text p{
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 5px;
    }

    #fv .fv-text p br:last-child{
        display: none;
    }

    #fv {
        margin-bottom: 20%;
    }
}

@media screen and (max-width:340px){
    #fv {
        margin-bottom: 40%;
    }

    #fv .fv-horizon{
        bottom: -5%;
    }

    #fv .fv-text {
        top: 108%;
    }
}


/* ============== イメージ画像 ============== */
#gallery {
    font-size: 0; /* 画像下の余白を消す */
    text-align: center;
    width: 100%;
}

#gallery img {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    object-fit: cover;
}

/* ============== 会社概要 ============== */
#company {
    color: #fff;
    padding: 10px 0 100px;
    text-align: center;
    background-image: url('../images/top_sec3_bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

#company .section-wave-top,
#company .section-wave-bottom {
    width: 100%;
}

#company .section-wave-top img,
#company .section-wave-bottom img,
#company > .container {
    width: 95%;
    max-width: 750px !important;
}

#company > .container {
    background-color: #00395f;
}

#company .company-container {
    width: auto;
    padding: 0 5%;
    margin: -70px 0;
    position: sticky;
}

#company .section-title {
    text-align: left;
    color: #fff;
    font-size: 2.5rem;
    margin-left: 10%;
    margin-bottom: 10px;
}

.company-list {
    display: block;
    border-top: 1px solid #fff;
}

.company-list-item {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #fff;
    padding: 10px;
    gap: 20%;
    font-size: 20px;
}

.company-list-item dt {
    width: 100%;
    max-width: 120px;
    font-weight: bold;
}

.company-list-item dd {
    width: 100%;
    max-width: 300px;
    text-align: left;
    margin: 0;
}

@media screen and (max-width:767px) {
    #company {
        padding: 10% 0;
    }

    #company .company-container {
        margin: -20px 0;
    }

    #company .section-title {
        font-size: 2.2rem;
        margin-left: 5%;
        margin-bottom: 2%;
    }

    .company-list-item {
        padding: 5px;
        gap: 0;
        font-size: 0.9rem;
    }
}

@media screen and (max-width:500px){
    #company .section-title {
        font-size: 2rem;
    }
}

@media screen and (max-width:340px){
    #company .section-title {
        font-size: 1.8rem;
    }
}


/* ============== 企業理念 ============== */
#philosophy {
    position: relative;
    background-image: url(../images/top_sec3_bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
} 

.philosophy {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-shadow: 2px 2px 4px rgba(10,10,10,0.8);
    width: 90%;
    max-width: 630px;
    box-sizing: border-box;
    padding: 0 20px;
}

.philosophy h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.philosophy p {
    font-size: 18px;
}

.recruit-top {
    width: 100%;
    max-width: 1401px;
    height: 100%;
    display: block;
    margin: 30px auto 0;
}

@media screen and (max-width:767px) {

    .philosophy {
        width: 80%;
        top: 30%;
    }

    .philosophy h2 {
        font-size: 1.5rem;
    }

    .philosophy p {
        font-size: 1rem;
    }

    .recruit-top {
        margin: 15px auto 0;
    }
}

@media screen and (max-width:450px) {
    .philosophy h2 {
        font-size: 1rem;
    }

    .philosophy p {
        font-size: 0.7rem;
    }
}

/* ============== 求人情報 ============== */
#recruit {
    width: 100%;
    height: 100%;
    padding-bottom: 10%;
    position: sticky;
}

@media screen and (max-width:950px) {
    #recruit {
        padding-bottom: 30%;
    }
}

@media screen and (min-width:1401px) {
    #recruit {
        padding-bottom: 0;
    }
}

#recruit > img {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    display: block;
    margin: 10px auto 0;
}

#recruit .recruit-bg {
    max-width: 1400px;
    background-color: #dcd09c;
    margin: 0 auto;
}

#recruit .recruit-bg > img {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    display: block;
    margin: 0 auto;
}

#recruit .recruit-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

#recruit .recruit-title-wrapper {
    display: flex;
    max-width: 950px;
    justify-content: space-evenly;
    align-items: center;
    margin: 0 auto;
}

#recruit .recruit-title-wrapper h2 {
    font-size: 2.5rem;
    margin: 0;
}

#recruit .recruit-title-wrapper img {
    width: 11%;
}

#recruit .recruit-cards {
    display: flex;
    position: absolute;
    width: 95%;
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    gap: 20px;
}

#recruit .recruit-card img {
    width: 100%;
    max-width: 980px;
}

#recruit .recruit-card-content {
    background-color: #00395f;
    padding: 0 10%;
    margin: -25px 0;
    position: sticky;
}

#recruit:not(.is-preparation) .recruit-title {
    display: inline-block;
    background-color: #fff;
    padding: 0 20px;
    color: #00395f;
    font-size: 1.5rem;
}

#recruit .recruit-card-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#recruit .recruit-card-content ul li {
    font-size: 1.3rem;
    margin-top: 5px;
}

#recruit ul li span {
    display: flex;
    align-items: center;
    position: relative;
    font-weight: bold;
}

#recruit .recruit-card-content ul li span::before {
    content: "";
    width: 0.8em;
    height: 0.8em;
    background: #fff;
    margin-right: 0.4em;
    flex-shrink: 0;
}

#recruit .recruit-card-content ul li p {
    margin-left: 5%;
}

#recruit .contact {
    position: inherit;
    left: 50%;
    bottom: -15%;
    transform: translateX(-50%);
    border: #fff 1.2px solid;
    padding: 1% 3%;
    font-size: 1.2rem;
    background-color: #006297;
    width: 120px;
    text-align: center;
    z-index: 99999;
}

@media screen and (max-width:767px) {
    #recruit {
        padding-bottom: 40%;
    }

    #recruit .recruit-container {
        height: 500px;
    }
    
    #recruit .recruit-title-wrapper h2 {
        font-size: 2.2rem;
    }

    #recruit .recruit-title-wrapper > img {
        width: 15%;
    }

    #recruit .recruit-cards {
        display: inline;
        max-width: none;
        width: 75%;
    }

    #recruit .recruit-card {
        margin-bottom: 5%;
    }

    #recruit .recruit-title h3 {
        font-size: 1rem;
    }

    #recruit .recruit-card-content ul li {
        font-size: 0.95rem;
    }

    #recruit .recruit-card-content ul li p {
        margin-left: 7%;
    }

    #recruit .contact {
        bottom: -5%;
    }
}

@media screen and (max-width:500px){
    #recruit {
        padding-bottom: 90%;
    }
    
    #recruit .recruit-title-wrapper h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width:340px){
    #recruit {
        padding-bottom: 150%;
    }
    
    #recruit .recruit-title-wrapper h2 {
        font-size: 1.8rem;
    }
}

/* ============== 求人情報 準備中 ============== */
#recruit.is-preparation .recruit-cards {
    display: block;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    text-align: center;
}

#recruit.is-preparation .recruit-card {
    margin: 0 auto;
    padding: 5% 0;
    max-width: 950px;
    width: 90%;
}

#recruit.is-preparation .recruit-card .recruit-title {
    text-align: center;
    padding: 5% 0;
}

#recruit.is-preparation .recruit-card .recruit-title h3 {
    color: #fff;
    font-size: 3rem;
}

#recruit.is-preparation .contact {
    position: relative;
    bottom: auto;
    right: auto;
    width: fit-content;
}

@media screen and (max-width: 950px) {
    #recruit.is-preparation {
        padding-bottom: 0;
    }
}

@media screen and (max-width:767px) {
    #recruit.is-preparation {
        padding-bottom: 50px;
    }

    #recruit.is-preparation .recruit-card {
        padding: 10% 0;
        max-width: none;
        width: 90%;
    }

    #recruit.is-preparation .recruit-card .recruit-title h3 {
        font-size: 2rem;
    }

    #recruit.is-preparation .recruit-container {
        height: auto;
        min-height: 200px;
    }

    #recruit.is-preparation .contact {
        position: relative;
        margin-top: 20px;
        width: fit-content;
    }
}



/* #recruit.is-preparation .recruit-card {
    margin: 0 auto;
    padding: 5% 0;
}

#recruit.is-preparation .recruit-title {
    text-align: center;
    padding: 5% 0;
}

#recruit.is-preparation .recruit-title h3 {
    color: #fff;
    font-size: 3rem;
} */

/* @media screen and (max-width:767px) {
    #recruit.is-preparation {
        padding-bottom: 0;
    }

    #recruit.is-preparation .recruit-container {
        height: 250px;
    }
    #recruit.is-preparation .contact {
        bottom: -30%;
    }
} */

/* #recruit .preparation > .recruit-card-wave-top {
    margin-top: 1%;
}

#recruit .preparation > .recruit-card-wave-bottom {
    margin-bottom: 1%;
} */

/* ============== フッター ============== */
#footer {
    position: relative;
    color: #fff;
}
.footer-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.footer-bg img {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    display: block;
    margin: 0 auto;
}

#footer .container {
    max-width: 1400px !important;
    max-width: none;
    background-color: #0769AC;
    padding-bottom: 50px;
}

.footer-container {
    display: flex;
    width: 1000px;
    max-width: 90%;
    justify-content: space-between;
    align-items: center;
    /* background-color: #0769AC; */
    margin: 0 auto;
}

.footer-left .footer-logo {
    margin-bottom: 20px;
}

.footer-left .footer-logo img {
    width: 40%;
    max-width: 200px;
}

.footer-left address {
    font-style: normal;
}

.footer-left address span {
    display: block;         /* ← これで縦方向のmarginが効く */
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10%;
}
.btn-footer {
    display: flex;
    min-width: 200px;
    padding: 15px;
    border: 1px solid #fff;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s;
    align-items: center;
    text-wrap: nowrap;
}
.btn-footer:hover {
    background-color: #fff;
    color: #004073;
}

.btn-footer img {
    width: 24px;
    margin-right: 10px;
}

.footer-map {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto 0;
}

@media screen and (max-width:767px) {
    #footer .container {
        width: 100%;
        max-width: none;
        background-color: #0769AC;
        padding-bottom: 20%;
    }

    .footer-container {
        display: inherit;
        width: 85%;
        max-width: none;
        margin: 0 auto;
    }

    .footer-left .footer-logo img {
        width: 40%;
        max-width: 120px;
    }

    .footer-left address {
        font-size: 0.8rem;
    }

    .footer-left address span {
        display: block;         /* ← これで縦方向のmarginが効く */
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .btn-footer {
        width: 200px;
        min-width: none;
        /* width: 85%; */
        margin: 0 auto;
    }

    .footer-map {
        margin: 15% auto 0;
    }
}

/* ============== レスポンシブ対応 (スマートフォン) ============== */
/* @media (max-width: 768px) {
    .container {
        padding: 0 20;
    }
    .section-title {
        font-size: 26px;
    }

    ファーストビュー
    .fv-catchphrase {
        font-size: 28px;
    }
    .fv-scroll {
        bottom: -20vh;
    }

    想い
    #about {
        padding: 60px 0;
    }
    .about-container {
        flex-direction: column;
    }
    .about-title-wrapper {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .section-title-vertical {
        font-size: 26px;
    }
    .about-text {
        font-size: 16px;
    }

    会社概要
    #company {
        padding: 40px 0;
    }
    .company-container {
        padding: 0 20px 0 20px;
        width: 80%;
    }
    .company-list-item {
        flex-direction: column;
    }
    .company-list-item dt {
        width: 100%;
        text-align: left;
        padding: 10px 15px;
        background-color: transparent;
    }
    .company-list-item dd {
        width: 100%;
        padding: 0 15px 15px;
    }

    求人情報
    .recruit-bg {
        padding: 60px 0;
    }
    .recruit-title-wrapper .shisa-left,
    .recruit-title-wrapper .shisa-right {
        width: 60px;
    }
     .recruit-title-wrapper h2 {
        margin: 0 15px;
    }
    .recruit-cards {
        flex-direction: column;
    }
    .recruit-card {
        width: 100%;
        box-sizing: border-box; paddingをwidthに含める
    }

    フッター
    #footer {
        padding: 80px 0;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-left {
        margin-bottom: 40px;
    }
    .footer-right {
        width: 100%;
    }
    .btn-footer {
        width: 100%;
        box-sizing: border-box;
    }
    .footer-map {
        margin-top: 60px;
    }
} */