/*
Theme Name: Penon Recruit
Description: 採用サイト専用のWordPressテーマ
Version: 1.0.0
Author: Penon
Author URI: https://penon.co.jp
Text Domain: penon-recruit
*/

@import url('css/reset.css');
@import url('css/unique.css');

:root {
    --color-sub: #B79263;
    --color-base: #F8F6F2;
    --color-text: #211816;
    --logo-shadow: 1px 1px 3px #b0b0b0;
    --text-shadow: 1px 1px 4px #414141;
    --content-padding: 0 20px;
    --font-en: 'Montserrat', sans-serif;
    --font-ja: "heisei-kaku-gothic-std", sans-serif;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}

body{
    font-family: var(--font-ja);
    color: var(--color-text);
    font-size: 1.6rem;
    letter-spacing: 2.3px;
}
@media screen and (max-width: 768px) {
    body{
       font-size: 1.4rem;
    }
}
section{
    position: relative;
}

a{
    color: var(--color-text);
    transition: all 0.2s ease-out;
    text-decoration: none;
}

a:hover{
    opacity: 0.8;
}

.t_r{
    text-align: right;
}

.t_c{
    text-align: center;
}

.sp{
    display: none;
}
@media screen and (max-width: 768px) {
    .sp{
        display: block;
    }
    .pc{
        display: none;
    }
}

/* Montserrat */
.montserrat--600{
    font-family: var(--font-en);
    font-weight: 600;
}
.montserrat--500{
    font-family: var(--font-en);
    font-weight: 500;
}

/* ヘッダー */
.site-header {
    background-color: var(--color-base);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    font-size: clamp(0.8125rem, 0.351rem + 0.9615vw, 1.6rem);
}

.header-container {
    max-width: 1300px;
    margin-left: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    box-sizing: content-box;
    padding-left: 14px;
    background-color: var(--color-base);
}

.nav-links-wrapper{
    flex: 1;
    margin-right: 18px;
}
@media screen and (max-width: 768px) {
    .nav-links-wrapper{
        flex: 0;
    }
}

.official-links-inner{
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.sp .official-links-inner{
    justify-content: flex-start;
}

.official-links-inner a{
    border:none !important;
}

/* ナビゲーション */
.nav-menu-wrapper{
    height: 100%;
}

.menu-item-entry span{
    display:flex;
    align-items: center;
    margin: 0;
}

#site-navigation{
    height: 100%;
}

.main-navigation{
    height: 100%;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    height: 100%;
}

.main-navigation li{
    height: 100%;
}

.main-navigation a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    color: var(--color-text);
    font-weight: 500;
}

.menu-item-entry a{
    background-color: var(--color-sub);
    color: #fff;
    padding-inline: 36px;
}

.main-navigation li:not(.menu-item-entry) a:hover {
    color: var(--color-sub);
}

/* メインコンテンツ */
.site-main {
    margin-top: 120px;
    min-height: calc(100vh - 160px);
}

/* セクション */
.section--default{
    padding-block: 100px;
}
@media screen and (max-width: 768px) {
    .section--default{
        padding-block: 40px;
    }
}

.section--color-base {
    background-color: var(--color-base);
}


/* ページヘッダー */
.page-header {
    text-align: center;
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.archive-description {
    font-size: 18px;
    opacity: 0.9;
}

header .site-description{
    white-space: nowrap;
}

@media screen and (max-width: 768px) {
    header .logo img{
        width: 104px;
    }
    header .site-description{
        font-size: 1.4rem;
    }
}


/* ページネーション */
.pagination {
    ul{
      display: flex;
      justify-content: center;
      gap: 20px;
    }
    li *{
      color: var(--color-sub);
      font-weight: 700;
      display: flex;
      flex-direction: column;
      height: 100%;
      width: 100%;
      padding-inline:5px;
    }
    .current{
        width: 43px;
        height: 43px;
        border: 1px solid var(--color-sub);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .page-numbers:not(.dots){
      justify-content: center;
    }
    .page-numbers:not(.dots) a {
      position: relative;
      display: inline-block;
      color: var(--color-sub);
      text-decoration: none;
      display: flex;
      align-items: center;
    }
    .page-numbers:not(.dots) a::after {
      content: '';
      position: absolute;
      width: 0;
      height: 2px;
      display: block;
      margin-top: 5px;
      right: 0;
      bottom: 0;
      background: var(--color-sub);
      transition: width 0.3s ease, right 0.3s ease;
    }
    .page-numbers:not(.dots) a:hover::after {
      width: 100%;
      right: 0;
    }
    .dots{
      justify-content: flex-end;
    }
  }


/* フッター */

.footer-content {
    background-color: var(--color-base);
    padding: 64px 73px 57px 73px;    
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: min-content;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}
@media screen and (max-width: 768px) {
    .footer-content{
        padding: 40px 36px;
    }
}
.footer-section-1 { 
    grid-area: 1 / 1 / 2 / 2; 
}

.footer-section-2 { 
    grid-area: 1 / 2 / 2 / 3; 
}

.footer-section-3 { 
    grid-area: 2 / 2 / 3 / 3; 
}

.footer-section p {
    line-height: 1.6;
    white-space: nowrap;
}

.footer-menu-container{
    display: flex;
    justify-content: flex-end;
    gap: 50px;
    flex: 1 1 0;
    margin-bottom: 30px;
}
@media (max-width: 768px) {
    .footer-menu-container{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 50px 24px;
        margin-bottom: 0;
    }
    .footer-section-3{
        text-align: center;
    }
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu li:first-child{
    font-weight: 600;
}

.footer-menu a:hover {
    color: var(--color-sub);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    text-align: center;
    padding-block: 10px;
    color: var(--color-sub);
    padding-inline: 64px;
}
@media screen and (max-width: 768px) {
    .footer-bottom{
        padding-inline: 20px;
    }
    .footer-bottom p{
        font-size: 1rem;
        letter-spacing: 0;
    }
}


/* 検索フォーム */
.search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.search-submit {
    padding: 10px 15px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-submit:hover {
    background: #0056b3;
}

/* 404ページ */
.error-404 {
    text-align: center;
    padding: 60px 0;
}

.error-404 .page-title {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 20px;
}

.error-404 .page-content {
    font-size: 18px;
    margin-bottom: 40px;
}

.error-actions {
    margin-bottom: 40px;
}

.error-actions .btn {
    margin: 0 10px;
}

/* ページトップボタン */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #fff;
    color: var(--color-sub);
    border: 1px solid var(--color-sub);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-sub);
    color: #fff;
    transform: translateY(-3px);
}

/* ハンバーガーメニューボタン */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-sub);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* ハンバーガーメニューアニメーション */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -9px);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 60px;
        padding: 0 20px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-base);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .main-navigation.active {
        transform: translateX(0);
    }
    
    .nav-menu-wrapper {
        padding: 40px 20px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        height: auto;
    }
    
    .main-navigation li {
        height: auto;
    }

    .main-navigation li.menu-item-entry{
       margin-top: 30px;
    }
    .main-navigation a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--color-sub);
        font-size: 1.6rem;
    }
    
    .menu-item-entry a {
        width: 100%;
        display: inline-flex;
        flex-direction: row;
        background-color: var(--color-sub);
        color: #fff;
        padding: 20px;
        text-align: center;
        border: none;
    }
    .menu-item-entry a::after{
        content: '';
        width: 9px;
        height: 9px;
        margin: auto;
        border-top: 2px solid #fff;
        border-right: 2px solid #fff;
        transform: rotate(45deg);
        box-sizing: border-box;
    }
    .menu-item-entry span{
        display: block;
    }
    
    .site-main {
        margin-top: 60px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .single-post .entry-title {
        font-size: 24px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* スクリーンリーダー用 */
.screen-reader-text {
    display: none;
} 

/* ボタン */
.button--default {
    display: inline-flex;
    gap: 20px;
    background-color: var(--color-sub);
    color: #fff;
    text-decoration: none;
}
.button--default::after{
    content: '';
    width: 9px;
    height: 9px;
    margin: auto;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    box-sizing: border-box;
}
.button--footer{
    padding: 18px 24px;
}
.button--hero-entry{
    padding: 18px 24px;
}
.button--entry{
    padding: 18px 24px;
}
.button--banner{
    width: 200px !important;
    padding: 10px 14px;
    box-sizing: border-box;
}
.button--large{
    width: 100%;
    max-width: 400px;
    padding: 18px 24px;
}
.button-text{
    flex: 1;
    margin-left: 20px;
}
@media screen and (max-width: 768px) {
    .button--hero-entry{
        gap: 0;
        padding: 18px 14px;
    }
    .button-text{
        margin-left: 0;
    }
    .button--footer{
        padding: 18px  37px;
    }
}
/* ロゴ */
.logo{
    display: inline-flex;
    align-items: center;
    gap: 24px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.8rem;
}

.logo-shadow {
    filter: drop-shadow(var(--logo-shadow));
}

/* 矢印 */
.link--arrow-left::before{
    display: inline-block;
    content: '';
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--color-sub);
    border-right: 2px solid var(--color-sub);
    transform: rotate(-135deg);
    margin-right: 8px;
}
.link--arrow-right::after{
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--color-sub);
    border-right: 2px solid var(--color-sub);
    transform: rotate(45deg);
    margin-left: 10px;
}

/* コンポーネント */
.component-content{
    max-width: 1000px;
    margin-inline: auto;
    box-sizing: content-box;
    padding-inline: 20px;
}

/* 募集要項ボタン */
.section-entry-button{
    margin-top: 120px;
    margin-bottom: 80px;
}
@media screen and (max-width: 768px) {
    .section-entry-button{
        margin-top: 0;
        margin-bottom: 50px;
    }
}

/* 関連記事 */
.related-articles-title{
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.related-articles-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.related-article-title{
    margin-top: 10px;
    letter-spacing: 2.24px;
}
.related-article-img{
    aspect-ratio: 1/1;
}
.related-article-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anchor{
    padding-top: 80px;
    margin-top: -80px;
}
@media screen and (max-width: 768px) {
    .related-articles-list{
        grid-template-columns: 1fr;
    }
}

/*スライダー */
.slick-track{
	justify-content: center;
}