@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ====================================================================================================================
↓ 以下より追加コード
==================================================================================================================== */

/* ====================================================================================================================
共通
==================================================================================================================== */

/* 最後尾のパンくずリストを表示する */
.single .p-breadcrumb__item:last-child>span.p-breadcrumb__text {
    display: block !important;
}

/* カスタム投稿 voice-post の詳細ページのみ日付を非表示にする */
.single-voice-post .c-postTitle__date,
.single-voice-post .p-articleMetas,
.single-jobs .c-postTitle__date,
.single-jobs .p-articleMetas,
.single-products .c-postTitle__date,
.single-products .p-articleMetas {
    display: none !important;
}

/* ====================================================================================================================
取扱製品専用スタイル
==================================================================================================================== */

/* ==================================
取扱製品：一覧用（製品紹介ページ：主要取扱製品一覧）
===================================== */

/* グリッドレイアウトの全体コンテナ */
.products-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC幅：4列 */
    gap: 20px; /* 画像と画像の間隔 */
    width: 100%;
    margin: 0 auto;
}

/* 各製品アイテムのリンクボックス */
.product-grid-item {
    display: block;
    width: 100%;
    text-decoration: none;
    border-radius: 0;
    overflow: hidden; /* 画像が枠外にはみ出るのを防ぐ */
    
    /* 常時影を少しつける */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* 修正点：hover時のbox-shadowの変化（transition）を削除 */
}

/* 画像を内包するボックスを1:1の正方形に強制固定 */
.product-grid-img {
    width: 100%;
    aspect-ratio: 1 / 1; /* 正方形に保つ */
    overflow: hidden;
    position: relative;
    background: #f4f4f4;
}

/* 画像自体の表示方法とアニメーション */
.product-grid-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 縦横比を崩さず領域いっぱいに表示 */
    
    /* 初期状態は等倍（1.0） */
    transform: scale(1.0);
    transition: transform 0.3s ease;
}

/* --- hover時に少しピンチアウト（拡大）する --- */
.product-grid-item:hover .product-grid-img img {
    transform: scale(1.08); /* 1.08倍に拡大（お好みに合わせて数値は調整してください） */
}

/* スマホ対応（画面幅768px以下の場合に2列にする） */
@media (max-width: 768px) {
    .products-grid-container {
        grid-template-columns: repeat(2, 1fr); /* スマホ幅：2列 */
        gap: 15px; /* スマホ時は間隔を少し狭める */
    }
}


/* ====================================================================================================================
先輩社員の声ページ専用スタイル
==================================================================================================================== */

/* ==================================
先輩社員の声：共通
===================================== */

/* 一覧コンテナ */
.c-voice-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* main-messageクラスのスタイル設定 */
.main-message {
    font-family: 'Lusitana', 'Yu Mincho', YuMincho, 'Hiragino Mincho ProN', Meiryo, 'Lusitana', serif;
    font-size: 24px; /* スマホ（デフォルト） */
    margin-bottom: 20px;
    font-weight: 700;
}

/* PC幅（1024px以上）の場合 */
@media screen and (min-width: 1024px) {
    .main-message {
        font-size: 28px;
    }
}

/* ==================================
先輩社員の声：アーカイブ
===================================== */

/* 各記事のレイアウト (PC向け 2カラム) */
.c-voice-item {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

/* 左側：画像エリア */
.c-voice-item__img {
    flex: 0 0 calc(50% - 20px);
    margin: 0;
}

.c-voice-item__img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 右側：テキストエリア */
.c-voice-item__body {
    flex: 0 0 calc(50% - 20px);
}

/* メインメッセージ */
.c-voice-item__main-message {
    font-family: 'Lusitana', 'Yu Mincho', YuMincho, 'Hiragino Mincho ProN', Meiryo, 'Lusitana', serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* 役職・名前 */
.c-voice-item__name {
    font-size: 18px !important;
    margin: 24px 0 !important;
}

/* 概要 */
.c-voice-item__description {
    margin-bottom: 16px;
}


/* スマホ表示 (1カラム) */
@media screen and (max-width: 767px) {
    .c-voice-item {
        flex-direction: column;
        gap: 20px;
    }
    .c-voice-item__img,
    .c-voice-item__body {
        flex: 0 0 100%;
    }
    .c-voice-item__title {
        font-size: 20px;
    }
}

/* ==================================
先輩社員の声：詳細
===================================== */

/* カスタム投稿 voice-post の詳細ページのみ日付を非表示にする */
.single-voice-post .c-postTitle__date,
.single-voice-post .p-articleMetas {
    display: none !important;
}

/* 詳細ページ用：枠線なしグリッド表示 */
.is-detail-view {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr); /* スマホ2列 */
    margin-top: 6em;
    padding-top: 8em;
    border-top: solid 1px #EAEAEA;
}

@media screen and (min-width: 1024px) {
    .is-detail-view {
        grid-template-columns: repeat(4, 1fr); /* PC4列 */
    }
}

.voice-title {
    font-size: 18px;
    margin-bottom: 8px;
    color: #BB5535;
    font-weight: bold;
}

/* 一覧画像サイズ調整 */
.voice-item-detail img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom: 10px;
}

/* 一覧名前調整 */
.voice-name {
    font-family: 'Lusitana', 'Yu Mincho', YuMincho, 'Hiragino Mincho ProN', Meiryo, 'Lusitana', serif;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

/* ====================================================================================================================
募集要項ページ専用スタイル
==================================================================================================================== */

/* ==================================
募集要項：アーカイブ（カテゴリ切り替えボタン）
===================================== */

/* --- 全体コンテナ（角丸なし・幅いっぱい） --- */
.recruit-list-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

/* --- タブボタンのスタイル --- */
.recruit-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

/* タブボタン本来の装飾をリセットして綺麗に */
.tab-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f4f4f4;
    color: #333;
    cursor: pointer;
    font-weight: bold;
    border: none;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: var(--color_htag);
    color: #fff;
}

/* 選択されている（現在アクティブな）タブのスタイル */
.tab-btn.active {
    background: var(--color_htag);
    color: #fff;
}

/* ==================================
募集要項：アーカイブ（カードデザイン）
===================================== */

/* --- カード本体のデザイン --- */
.recruit-cards-wrapper {
    width: 100%;
}

.recruit-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: var(--border04);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
}

.recruit-img {
    flex: 0 0 40%;
}

.recruit-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.recruit-info {
    flex: 1;
}

.recruit-cat {
    display: inline-block;
    background: #f4f4f4;
    padding: 2px 8px;
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.recruit-info h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.recruit-info p {
    margin: 4px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.recruit-card .swell-block-button {
    margin-top: 32px;
}

/* --- スマホ対応（縦並び） --- */
@media (max-width: 600px) {
    .recruit-card {
        flex-direction: column;
    }
    .recruit-img {
        flex: 0 0 auto;
        width: 100%;
    }
}























/* ==========================================================================
Contact Form 7 入力画面用デザイン
========================================================================== */

/* フォーム全体のコンテナ */
.wpcf7-form {
    max-width: 650px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* 各項目のブロック */
.form-row {
    margin-bottom: 28px;
    position: relative;
}

/* 項目ラベル（見出し） */
.form-label label {
    display: flex;
    align-items: center;
    font-weight: 700;
    margin-bottom: 8px; /* 入力枠との余白 */
    color: #222;
}

/* --- バッジ（必須 / 任意） --- */
.form-row:has(.wpcf7-validates-as-required) .form-label label::before {
    content: "必須";
    display: inline-block;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 0;
    margin-right: 8px;
    vertical-align: middle;
}

.form-row:not(:has(.wpcf7-validates-as-required)) .form-label label::before {
    content: "任意";
    display: inline-block;
    background: #757575;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 0;
    margin-right: 8px;
    vertical-align: middle;
}

/* 入力フィールドの共通スタイル */
.form-input input[type="text"],
.form-input input[type="email"],
.form-input input[type="tel"],
.form-input select,
.form-input textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 0;
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

/* セレクトボックスの矢印アイコン */
.form-input select {
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23666666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

/* テキストエリアの高さ */
.form-input textarea {
    height: 150px;
    resize: vertical;
}

/* フォーカス時の枠線 */
.form-input input:focus,
.form-input select:focus,
.form-input textarea:focus {
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
    outline: none;
}

/* プレースホルダーの文字色調整 */
.form-input input::placeholder, .form-input textarea::placeholder { color: #aaa; opacity: 1; }
.form-input input::-webkit-input-placeholder, .form-input textarea::-webkit-input-placeholder { color: #aaa; }
.form-input input:-ms-input-placeholder, .form-input textarea:-ms-input-placeholder { color: #aaa; }
.form-input select:invalid, .form-input select option[value=""] { color: #aaa; }
.form-input select option:not([value=""]) { color: #333; }

/* エラー時のスタイル */
.wpcf7-form .wpcf7-not-valid {
    border-color: #e53935 !important;
    background-color: #fdf2f2 !important;
}
.wpcf7-not-valid-tip {
    color: #e53935 !important;
    font-size: 13px;
    font-weight: 700;
    margin-top: 6px;
    display: block;
}
.wpcf7-response-output {
    margin: 24px 0 0 0 !important;
    padding: 14px 16px !important;
    font-size: 14px;
    font-weight: 700;
    border-width: 1px !important;
    border-style: solid !important;
    border-radius: 0;
    text-align: center;
}
.wpcf7-form.invalid .wpcf7-response-output {
    border-color: #e53935 !important;
    background-color: #fdf2f2 !important;
    color: #9b1c1c !important;
}
.wpcf7-form.sent .wpcf7-response-output {
    border-color: #4caf50 !important;
    background-color: #edf7ed !important;
    color: #1e4620 !important;
}

/* ==========================================================================
送信ボタンエリア共通
========================================================================== */
.form-submit {
    text-align: center;
    margin-top: 32px;
    position: relative;
}
.form-submit input[type="submit"] {
    display: inline-block;
    min-width: 240px;
    padding: 16px 40px;
    background: rgb(187, 85, 53);
    border-radius: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}
.form-submit input[type="submit"]:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.form-submit input[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.wpcf7-spinner {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

/* ==========================================================================
確認メッセージとスマホ用改行のスタイル
========================================================================== */
.form-confirm-msg {
    font-size: 16px;
    color: #333;
    margin-bottom: 24px;
}

/* PCでは改行を無効化（非表示） */
.sp-br {
    display: none;
}

/* スマホ（画面幅768px以下）でのみ改行を有効化（表示） */
@media (max-width: 768px) {
    .sp-br {
        display: block;
    }
}