/*
Theme Name: 遊々スタッフサービス オリジナルテーマ
Author: Tomoka Nakamura
Description: 遊々スタッフサービス株式会社の公式サイト用テーマです。
Version: 1.7
*/

/* --- General --- */
body {
    margin: 0;
    font-family: Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
}

li {
    list-style: none;
}

main {
    width: 100%;
    max-width: 100%;
    margin: 32px auto 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

section {
    margin-bottom: 200px;
}

.heading-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.heading-wrapper h2 {
    padding-bottom: 15px;
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 4px;
    display: inline-block;
    position: relative;

}

.heading-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: #B35669;
}

/* --- Header --- */
header {
    background-color: #B35669;
    position: relative;
    padding: 50px 60px 5px 60px;
    width: 100%;
    box-sizing: border-box;
    min-height: 100px;
}

header nav {
    position: absolute;
    top: 60%;
    /* 上下中央の位置はそのまま */
    left: auto;
    /* leftの指定を解除 */
    right: 10%;
    /* 右端から10%の位置に配置 */
    transform: translateY(-50%);
    /* 垂直方向の中央揃えだけを行う */
}

.site-logo-container {
    position: absolute;
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}

.site-logo-container img {
    height: 80px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.site-logo-container .site-title {
    color: #fff;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
    margin: 0;
    font-family: 'Noto Serif JP', serif;
}

header ul {
    display: flex;
    gap: 32px;
    font-size: 20px;
    margin: 0;
    padding: 0;
}

header ul a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

header ul a:hover {
    opacity: 0.8;
}

header ul li {
    display: flex;
    letter-spacing: 0.2em;
    font-size: 16px;
}

ul.contact {
    display: flex;
    /* 横並びにする */
    justify-content: center;
    /* 中央寄せ */
    align-items: center;
    /* 縦位置を中央に揃える */
    gap: 40px;
    /* 画像同士の間隔 */
    list-style: none;
    /* リストの点を消す */
    padding: 0;
    margin: 0;
}




/* --- Hero (mv) --- */
.hero {
    width: 100%;
    height: auto;
    display: none;
    object-fit: cover;
}

.hero-pc {
    display: block;
}

@media (max-width: 1024px) {
    .hero-pc {
        display: none;
    }

    .hero-tab {
        display: block;
    }
}

@media (max-width: 600px) {
    .hero-tab {
        display: none;
    }

    .hero-sp {
        display: block;
    }
}

.hero-container {
    position: relative;
    width: 100%;
    margin-bottom: 60px;
}

.hero-container img:not(.hero) {
    width: 100%;
    height: auto;
    display: block;
}

.overlay-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(179, 86, 105, 0.5);
    padding: 20px 60px;
    color: #fff;
    text-align: center;
    width: 35%;
    max-width: 500px;
    min-width: 300px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 90%;
}

.overlay-box h2 {
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: bold;
    border: none;
    padding: 0;
}

.overlay-box p {
    font-size: 1em;
    margin: 0;
}

/* --- Business Content Cards (Homepage) --- */
.card-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* 中央寄せ */
    gap: 10px;
    padding: 0;
    margin: 0;
}

.card-link {
    text-decoration: none;
}

.card {
    position: relative;
    flex: 1 1 calc(25% - 24px);
    max-width: 273px;
    height: 371px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.85);
    color: #2b2b2b;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.card:hover .card-overlay {
    background-color: rgba(146, 13, 40, 0.80);
}

.card-text {
    font-size: 16px;
    font-weight: bold;
}

.arrow {
    color: #2b2b2b;
    font-size: 32px;
    font-weight: lighter;
}

/* --- Info Section (News & Blog) --- */
.info-section {
    position: relative;
    width: 100%;
    height: auto;
    background-color: transparent;
    margin-bottom: 200px;
    padding-bottom: 100px;
}

@media (max-width: 1024px) {
    .info-inner {
        padding-top: 120px;
    }
}

@media (max-width: 600px) {
    .info-inner {
        padding-top: 140px;
    }
}

.info-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #b35669;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    z-index: 1;
}

.info-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 0;
}

.info-section .heading-wrapper h2 {
    color: #fff;
}

.info-section .heading-wrapper h2::after {
    background-color: #fff;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch !important;
    /* Force equal height */
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.info-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    align-items: center;
    text-align: center;
    height: 100% !important;
    /* Force column to fill flex container */
}

.info-title {
    color: #fff;
    border: 1px solid #fff;
    padding: 5px 20px;
    display: inline-block;
    white-space: nowrap;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: normal;
    display: inline-block;
}

.news-box,
.blog-box {
    background: #fff;
    color: #333;
    width: 100%;
    padding: 20px 30px;
    box-sizing: border-box;
    border-radius: 0;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1 !important;
    /* For equal height stretching */
    justify-content: space-between;
}

.news-box {
    background-image: repeating-linear-gradient(to bottom,
            transparent,
            transparent 56px,
            #e0e0e0 56px,
            #e0e0e0 57px);
    background-position: 0 57px;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    padding: 16px 5px;
}

.news-list li:last-child {
    border-bottom: none;
}

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

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex-grow: 1;
}

.blog-card {
    background: #f7f7f7;
    border: 1px solid #eee;
    color: #333;
    padding: 15px;
    min-height: 120px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card p {
    margin: 0;
}

.blog-card .date {
    font-size: 12px;
    color: #666;
    align-self: flex-end;
    margin-top: 10px;
}

/* --- Footer --- */
footer {
    padding-top: 60px;
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-left,
.footer-right {
    flex-basis: 50%;
}

.footer-description {
    font-size: 14px;
    color: #333;
    margin: 0 0 10px 0;
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin: 10px 0;
}

.info-icon {
    font-size: 24px;
}

.copyright-bar {
    background-color: #B35669;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 60px;
    font-size: 12px;
}

.copyright-bar p {
    margin: 0;
}

/* --- Page (Business Content) --- */
.service-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.service-item.layout-image-right {
    flex-direction: row-reverse;
}

.service-image,
.service-text {
    flex-basis: 50%;
}

.service-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-text h3 {
    font-size: 22px;
    margin-top: 0;
}

.service-text p {
    font-size: 16px;
    line-height: 1.8;
}

/* --- Single Post --- */
.single-container {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.single-title {
    font-size: 28px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.single-meta {
    margin-bottom: 30px;
    color: #666;
}

.single-content {
    line-height: 1.8;
}

/* --- Responsive --- */
@media (max-width: 768px){ 
	.news-container { flex-direction: column; align-items: center !important; } 
	.footer-content { flex-direction: column; align-items: flex-start; } 
	.service-item, 
	.service-item.layout-image-right { flex-direction: column; }
    .news-container {
        flex-direction: column;
        align-items: center !important;
    }
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .service-item,
    .service-item.layout-image-right {
        flex-direction: column;
    }
    .outline-image,
    .outline-details {
        width: 100%;
        flex-basis: auto !important;
    }
    .outline-image img {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        display: block;
    }
}

/* --- 採用情報ページ --- */
.recruitment-section {
    margin-bottom: 60px;
}

.recruitment-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
}

.job-posting-box {
    border: 1px solid #ddd;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.job-posting-box h4 {
    font-size: 18px;
    margin-top: 0;
}

.job-details {
    font-size: 14px;
    margin-bottom: 20px;
}

.job-details dt {
    font-weight: bold;
    width: 80px;
    float: left;
    clear: left;
}

.job-details dd {
    margin-left: 90px;
    margin-bottom: 10px;
}

.job-description {
    font-size: 14px;
    line-height: 1.8;
}

.form-container {
    border: 1px solid #ddd;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    min-height: 400px;
    /* フォームの高さを確保 */
}

/* --- 会社概要ページ --- */
.company-outline {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
}

.outline-image,
.outline-details {
    flex-basis: 50%;
}

.outline-image img {
    width: 100%;
    height: auto;
    display: block;
}

.company-info-list dt,
.company-info-list dd {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    font-size: 14px;
}

.company-info-list dt {
    font-weight: bold;
    width: 80px;
    float: left;
    clear: left;
}

.company-info-list dd {
    margin-left: 100px;
}

.philosophy-section {
    background-color: (255, 255, 255, 0.85);
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.philosophy-text,
.philosophy-image {
    flex-basis: 50%;
}

.philosophy-text {
    font-size: 16px;
    line-height: 1.8;
}

.philosophy-image {
    height: 300px;
    background-color: #e9e9e9;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #aaa;
}

/* ▼ 会社概要・Contact は白背景 */
.company-section,
.contact-section {
    background: #fff;
    padding: 80px 0;
}


/* 必要なら中のテキストボックスの透明感 */
.owner-inner {
    max-width: 40%;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.35);
    /* 白の透明（必要なければ削除） */
    border-radius: 10px;
    backdrop-filter: blur(4px);
}



.owner-section {
    background-image: url("https://yuyustaff.com/wp-content/uploads/2026/01/Frame-2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    min-height: 300px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}



/* ▼ 会社概要とContactは白背景 */
.company-section,
.contact-section {
    background-color: #fff;
    padding: 80px 0;
}

/* ▼ ページ構造の背景干渉を防ぐ */
.page-container {
    background: transparent;
}



/* --- BLOGカードのサムネイル画像 --- */
.blog-card-thumbnail {
    margin-bottom: 10px;
}

.blog-card-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10;
    /* 画像の縦横比を16:10に固定 */
    object-fit: cover;
    /* 比率に合わせて画像をトリミング */
}

.blog-card .blog-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    /* 残りの高さを埋めるように広がる */
}

a.blog-card-link {
    text-decoration: none;
    color: inherit;
}

/* --- アーカイブページ --- */
.archive-post-list {
    margin-top: 40px;
}

.archive-post-item {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
}

.archive-post-thumbnail {
    flex: 0 0 250px;
    /* 横幅を250pxで固定 */
}

.archive-post-thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.archive-post-content {
    flex: 1;
}

.archive-post-title {
    margin: 0 0 10px 0;
    font-size: 22px;
}

.archive-post-date {
    font-size: 14px;
    color: #777;
}

.archive-post-excerpt {
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.7;
}

.pagination {
    margin-top: 60px;
}

/* --- 一覧へボタン (修正版) --- */
.view-all-link-wrapper {
    text-align: right;
    margin-top: 20px;
    /* ↓ blog-boxの内側の余白を確保するため追加 */
    padding: 0 20px 20px;
}

.view-all-link {
    /* ▼ ここから変更 ▼ */
    color: #fff;
    /* 文字色をテーマカラーに */
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #fff;
    /* 枠線の色をテーマカラーに */
    /* ▲ ここまで変更 ▲ */

    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.view-all-link:hover {
    /* ▼ ここから変更 ▼ */
    background-color: #920d28;
    /* ホバー時に背景をテーマカラーに */
    color: #fff;
    /* ホバー時に文字色を白に */
    /* ▲ ここまで変更 ▲ */
}


/* Contact画像のカードを統一サイズにする */
.card2 {
    width: 300px;
    height: auto;
    /* ← 高さ300px固定をやめる */
    aspect-ratio: 1 / 1;
    /* ← 正方形を維持したいなら追加 */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}


/* 画像を同じ比率でフィットさせる */
.card-contact {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 切れずに全体を表示 */
    display: block;
}

/* 画像の間隔なし */
ul.contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* ▼ スマホ（768px以下）のとき */
@media (max-width: 768px) {
    ul.contact {
        flex-direction: row;
        /* 横並びにする */
        gap: 10px;
        /* Spacing between items - smaller for mobile */
        flex-wrap: nowrap;
        /* 1列に収める */
    }

    .card2 {
        width: auto;
        flex: 1;
        /* 等幅で伸縮 */
        height: auto;
        margin: 0;
    }

    .card-contact {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

#contact-form {
    margin: 0;
    padding: 0;
    margin-top: 0;
}

/* サービス の説明文 背景画像 */
#service-1 .service-text {
    background-image: url("https://yuyustaff.com/wp-content/uploads/2025/12/yuyu-HP_service_01.png");
    background-size: 100% auto;
    background-position: top;
    background-repeat: no-repeat;
    padding: 40px;
    color: #333;
}

#service-2 .service-text {
    background-image: url("https://yuyustaff.com/wp-content/uploads/2025/12/yuyu-HP_service_02.png");
    background-size: 100% auto;
    background-position: top;
    background-repeat: no-repeat;
    padding: 40px;
    color: #333;
}

#service-3 .service-text {
    background-image: url("https://yuyustaff.com/wp-content/uploads/2025/12/yuyu-HP_service_03.png");
    background-size: 100% auto;
    background-position: top;
    background-repeat: no-repeat;
    padding: 40px;
    color: #333;
}

#service-4 .service-text {
    background-image: url("https://yuyustaff.com/wp-content/uploads/2025/12/yuyu-HP_service_04.png");
    background-size: 100% auto;
    background-position: top;
    background-repeat: no-repeat;
    padding: 40px;
    color: #333;
}

#service-5 .service-text {
    background-image: url("https://yuyustaff.com/wp-content/uploads/2025/12/yuyu-HP_service_05.png");
    background-size: 100% auto;
    background-position: top;
    background-repeat: no-repeat;
    padding: 40px;
    color: #333;
}


/* --- 採用ページ：PC 横並び --- */
.recruit-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto 0;
}

/* テキストボックス */
.recruit-text {
    max-width: 500px;
    border: 1px solid #333;
    padding: 20px;
    background-color: #fff;
    text-align: left;
}

/* 画像 */
.recruit-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    display: block;
    position: relative;
    left: -50px;
}

/* --- スマホ（縦並び） --- */
@media (max-width: 768px) {
    .recruit-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .recruit-text {
        margin-left: 0;
        max-width: 90%;
        text-align: left;
    }

    .recruit-image img {
        max-width: 90%;
        margin: 0 auto;
    }
}




.heading-wrapper {
    text-align: center;
}

.heading-wrapper h2 {
    padding-bottom: 15px;
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 4px;
    display: inline-block;
    position: relative;
}

.heading-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: #B35669;
}

.heading-wrappper {
    text-align: center;
    margin-bottom: 60px;
    /* ← ここが余白を作る */
    padding-top: 60px;
    /* ← 好きな数値に調整 */
}


.recruitment-section {
    /* background-image: url("https://yuyustaff.com/wp-content/uploads/2025/12/yuyuhp-hiring_PC_wallpaper-scaled.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; */
}


/* すべての h2 を Great Vibes に統一 */
h2,
.heading-wrapper h2,
.heading-wrapper h2,
.overlay-box h2 {
    font-family: 'Great Vibes', cursive !important;
}

/* サイズはここで統一してもOK（自由に変更可能） */
h2 {
    color: #777;
}

.heading-wrapper h2 {
    font-size: 60px;
}

.info-title {
    font-size: 20px;
    /* NEWS / BLOG 用 */
}






/* ▼ PC（デスクトップ） */
.menubar {
    font-size: 16px;
    display: flex;
    gap: 10px;
    align-items: flex-end;
    /* 下に揃える */
    justify-content: flex-start;
    /* 左寄せ */
    height: 80px;
}

/* ▼ タブレット（768px 以下） */
@media (max-width: 768px) {
    .menubar {
        font-size: 15px;
        gap: 20px;
        height: 60px;
        align-items: flex-end;
        justify-content: flex-start;
        /* 左寄せ */
    }
}

/* ▼ スマホ（480px 以下） */
@media (max-width: 480px) {
    .menubar {
        font-size: 16px;
        gap: 15px;
        height: 50px;
        align-items: flex-end;
        justify-content: flex-start;
        /* 左寄せ */
    }
}






/* Service Page Heading Adjustment */
.heading-wrapper.service-heading h2 {
    margin-top: 20px;
}

/* Company Page Heading Adjustment */
.heading-wrapper.about-heading h2 {
    margin-top: 20px;
}

/* Recruitment Page Heading Adjustment */
.heading-wrapper.recruitment-heading h2 {
    margin-top: 20px;
}

/* --- Service Text Background Mobile Fix --- */
@media (max-width: 680px) {

    #service-1 .service-text,
    #service-2 .service-text,
    #service-3 .service-text,
    #service-4 .service-text,
    #service-5 .service-text {
        background-size: contain;
        background-position: top center;
    }
}

/* --- Mobile Header Alignment --- */
@media (max-width: 768px) {
    header {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .site-logo-container {
        left: 10px !important;
        /* Ensure it is really left - override any other conflicting transforms if necessary, though translateY is needed for vertical center */
    }

    .site-logo-container img {
        height: 60px !important;
        /* Increased from 50px */
        width: auto !important;
    }

    .site-logo-container .site-title {
        font-size: 18px !important;
        /* Increased from 16px */
    }

    /* --- Menu Adjustments --- */
    header nav {
        right: 10px !important;
        left: auto !important;
        transform: translateY(-50%) !important;
    }

    header ul {
        gap: 8px !important;
    }

    header ul li {
        font-size: 13px !important;
        letter-spacing: 0.1em !important;
    }

    header ul a {
        font-size: 13px !important;
    }
	
	@media (max-width: 768px) {
    .company-outline {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 30px;
    }
    .outline-image,
    .outline-details {
        width: 100%;
    }
    .outline-image img {
        width: 100%;
        display: block;
    }
}