/*
Theme Name: Career Port 会社写真版
Author: Your Name
Version: 1.4
*/
@charset "UTF-8";

html {
    font-size: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f5f2e5;
    background-image: url(images/bg_0.png);
}

/* -----------------------------------
 * ヘッダー
 * ----------------------------------- */
.site-header {
    width: 100%;
    height: 60px;
    background-color: #000;
    position: relative;
    z-index: 100;
}

.header-inner {
    width: 100%;
    max-width: 1000px;
    height: 60px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* ロゴのサイズ調整 */
.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.site-logo a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.site-logo img {
    height: 70px;
    max-height: 70px;
    width: auto;
    display: block;
}

/* ハンバーガーボタンの位置固定 */
.hamburger-menu {
    width: 30px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 102;
    position: relative;
    margin: 0;
}

.menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* -----------------------------------
 * ハンバーガーメニュー
 * ----------------------------------- */
#menu-toggle {
    display: none;
}

.nav-content {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: #111;
    padding-top: 80px;
    transition: all 0.3s ease;
    z-index: 101;
}

.nav-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-content li a {
    display: block;
    padding: 1rem 2rem;
    color: #fff;
    font-family: "BIZ UDPGothic", sans-serif;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid #333;
}

.nav-content li a:hover {
    background-color: #222;
}

#menu-toggle:checked ~ .nav-content {
    right: 0;
}

#menu-toggle:checked ~ .menu-btn span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}
#menu-toggle:checked ~ .menu-btn span:nth-child(2) {
    opacity: 0;
}
#menu-toggle:checked ~ .menu-btn span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* -----------------------------------
 * メインビジュアル
 * ----------------------------------- */
.main-visual {
    width: 100vw;
    height: 100svh;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}

.main-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* ★上端を基準にして切り取るプロパティ */
    display: block;
}

/* -----------------------------------
 * プロフィール情報エリア
 * ----------------------------------- */
.profile-info {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 20px;
}

.profile-inner {
    width: 280px;
    margin: 0 auto;
    position: relative;
}

.company-tag {
    background-color: #000;
    color: #fff;
    font-family: "BIZ UDPGothic", sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 12px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    box-sizing: border-box;
}

.company-tag span {
    display: block;
    width: 280px;
    margin: 0 auto;
}

.name-card {
    background-color: #c0d836;
    color: #000;
    padding: 12px 100vw 12px 20px;
    margin-right: -100vw;
    margin-top: 0;
    margin-left: auto;
    width: fit-content;
    box-sizing: border-box;
}

.name-card-inner {
    text-align: right;
}

.person-name {
    font-family: "BIZ UDPGothic", sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    white-space: nowrap;
}

.faculty-name {
    font-family: "BIZ UDPGothic", sans-serif;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

/* -----------------------------------
 * コンテンツカード
 * ----------------------------------- */
.content-box {
    position: relative;
    background-color: #fff;
    border: 5px solid #000;
    border-radius: 20px;
    width: 280px;
    padding: 1.8rem 1.2rem 1.2rem;
    margin: 40px auto 30px;
    box-sizing: border-box;
}

.content-box h1,
.content-box h2 {
    font-family: "BIZ UDPGothic", sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #000;
    background-color: #fff;
    border: 5px solid #000;
    border-radius: 15px;
    width: fit-content;
    max-width: 90%;
    position: absolute;
    top: -25px;
    left: -15px;
    padding: 0.5rem 1rem;
    margin: 0;
    z-index: 2;
    box-sizing: border-box;
}

.content-box p {
    font-family: "BIZ UDPGothic", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    padding: 0;
    margin: 0;
}

/* -----------------------------------
 * インタビュー間の全幅画像
 * ----------------------------------- */
.sub-visual {
    width: 100vw;
    margin-top: 50px;
    margin-bottom: 50px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.sub-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* -----------------------------------
 * 会社情報エリア
 * ----------------------------------- */
.company-info {
    display: flex;
    flex-wrap: wrap;
    width: 100vw;
    max-width: 800px;
    margin: 60px auto 0;
    box-sizing: border-box;
}

.company-image {
    flex: 1 1 300px;
    min-height: 250px;
}

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

.company-details {
    flex: 1 1 300px;
    background-color: #000;
    color: #fff;
    padding: 30px 25px;
    box-sizing: border-box;
}

.company-name {
    font-family: "BIZ UDPGothic", sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #fff;
    letter-spacing: 0.05em;
}

.company-list {
    margin: 0;
    padding: 0;
    font-family: "BIZ UDPGothic", sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

.company-list dt {
    font-weight: 700;
    color: #ccc;
    margin-top: 10px;
}

.company-list dt:first-child {
    margin-top: 0;
}

.company-list dd {
    margin-left: 0;
    margin-bottom: 8px;
    color: #fff;
}

.company-list dd a {
    color: #c0d836;
    text-decoration: underline;
}

/* -----------------------------------
 * フッター
 * ----------------------------------- */
footer {
    width: 100%;
    background-color: #000;
    padding: 20px 0;
    margin-top: 0;
    text-align: center;
}

.copyright {
    font-family: "BIZ UDPGothic", sans-serif;
    font-size: 12px;
    color: #fff;
    margin: 0;
    padding: 0;
}
/* 投稿一覧 */
*, *::before, *::after { box-sizing: border-box; }
body { overflow-x: hidden; font-family: "BIZ UDPGothic", sans-serif; }
.post-list { max-width: 800px; margin: 0 auto; padding: 48px 20px 80px; min-height: calc(100vh - 130px); }
.list-title { font-size: clamp(22px, 4vw, 32px); margin: 0 0 32px; }
.post-list-item { margin: 0 0 22px; background: #fff; border: 3px solid #000; border-radius: 16px; overflow: hidden; }
.post-list-link { display: flex; align-items: center; color: #000; text-decoration: none; }
.post-list-link:hover, .post-list-link:focus-visible { background: #f3f7dd; }
.post-list-image { width: 32%; min-width: 160px; aspect-ratio: 4 / 3; }
.post-list-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-list-body { padding: 20px; }
.post-list-body h2 { font-size: clamp(18px, 3vw, 24px); margin: 8px 0; line-height: 1.5; }
.post-list-body p { margin: 0; font-size: 14px; }
.list-pagination { margin-top: 36px; text-align: center; }
.list-pagination .page-numbers { display: inline-block; margin: 0 5px; padding: 8px; color: #000; }
.list-pagination .current { background: #c0d836; }
/* 元のindex.phpのカード幅と見出し位置を記事でも使用 */
.interview-content { padding-top: 1px; padding-bottom: 1px; }
.interview-content .sub-visual { margin-top: 50px; margin-bottom: 50px; }
.legacy-interview-content { padding: 1px 20px; }
.interview .company-info { width: 100%; }
.interview .company-details { flex-grow: 1; }
.person-name { line-height: 1.4; }
@media (max-width: 600px) { .post-list-link { display: block; } .post-list-image { width: 100%; } .post-list-body { padding: 16px; } }
