/**
 * 社労士DXポータル - スタイルシート
 * 
 * このファイルをテーマディレクトリに sharoshi-style.css として保存してください
 */

:root {
    --primary-color: #00843D;
    --secondary-color: #FFA500;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --white: #fff;
}
/* =============================================
   MV
   ============================================= */
.mv {
  width: 100%;
  height: 500px; /* 高さ指定 */
  background-image: url(img/mv.jpg);
  background-size: cover;       /* 横幅を基準に全体をカバー → 余ったタテはトリミング */
  background-position: center;  /* 画像の中心を基準に表示 */
  background-repeat: no-repeat; /* 繰り返しなし */
  position: relative;
  display: flex;                /* 中央寄せしたい場合 */
  align-items: center;          /* 縦方向中央 */
  justify-content: center;      /* 横方向中央 */
  color: var(--white);
}
.mv .inner {
  /*z-index: 1;*/
}
.mv h2{
    font-size:3rem;
    font-weight: bold;
}


/* =============================================
   検索フォーム
   ============================================= */

.sharoshi-search-form {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.search-form-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.search-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-color);
}

.search-field select,
.search-field input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.search-field select:focus,
.search-field input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-button-wrap {
    text-align: center;
}

.search-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 60px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.search-button:hover {
    background: #006b31;
}

/* =============================================
   セクションタイトル
   ============================================= */

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    color: var(--text-color);
}

/* =============================================
   人気エリア
   ============================================= */

.sharoshi-popular-areas {
    margin-bottom: 40px;
}

.area-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.area-item {
    display: block;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    font-weight: bold;
}

.area-item:hover {
    background: #006b31;
    color: var(--white);
    text-decoration: none;
}

/* =============================================
   社労士一覧
   ============================================= */

.sharoshi-recent,
.sharoshi-list-section {
    margin-bottom: 40px;
}

.sharoshi-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.sharoshi-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.sharoshi-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.sharoshi-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.sharoshi-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sharoshi-content {
    padding: 20px;
}

.sharoshi-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.sharoshi-title a {
    color: var(--text-color);
    text-decoration: none;
}

.sharoshi-title a:hover {
    color: var(--primary-color);
}

.sharoshi-prefecture {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.sharoshi-specialties-tags {
    margin-bottom: 15px;
}

.specialty-tag {
    display: inline-block;
    background: var(--light-gray);
    padding: 4px 12px;
    margin: 2px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-color);
}

.sharoshi-link-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.sharoshi-link-btn:hover {
    background: #006b31;
    color: var(--white);
    text-decoration: none;
}

/* =============================================
   専門分野グリッド
   ============================================= */

.sharoshi-specialties {
    margin-bottom: 40px;
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.specialty-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    min-height: 80px;
}

.specialty-item:hover {
    background: var(--primary-color);
    text-decoration: none;
}

.specialty-name {
    color: var(--primary-color);
    font-weight: bold;
    text-align: center;
}

.specialty-item:hover .specialty-name {
    color: var(--white);
}



/* =============================================
   アーカイブページ
   ============================================= */

.archive.post-type-archive-sharoshi .page-header,
.tax-prefecture .page-header,
.tax-specialty .page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.archive-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.result-count {
    color: #666;
    font-size: 16px;
}

/* =============================================
   詳細ページ（Single）
   ============================================= */

.single-sharoshi .entry-header {
    margin-bottom: 30px;
    padding: 20px 0 0 0;
    border-bottom: 2px solid var(--primary-color);
}

.single-sharoshi .entry-title {
    font-size: 28px;
    margin-bottom: 15px;
}
.single-sharoshi i{
    color:#006b31;
}
.single-sharoshi h2{
    font-size:1.2rem;
    padding:0.5rem;
    margin-top:2rem;
    border-bottom:2px solid #006b31;
    color:#006b31;
}

.sharoshi-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.meta-item {
    padding: 15px;
    background: var(--light-gray);
    border-radius: 4px;
}

.meta-label {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.meta-value {
    color: var(--text-color);
}

.meta-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.meta-value a:hover {
    text-decoration: underline;
}

.sharoshi-contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}

.contact-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.contact-button:hover {
    background: #006b31;
}

.contact-button.phone {
    background: var(--secondary-color);
}

.contact-button.phone:hover {
    background: #e69500;
}

/* =============================================
   ページネーション
   ============================================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* =============================================
   レスポンシブ
   ============================================= */

@media (max-width: 768px) {
    .search-fields {
        grid-template-columns: 1fr;
    }
    
    .sharoshi-list {
        grid-template-columns: 1fr;
    }
    
    .area-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .specialty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sharoshi-contact-buttons {
        flex-direction: column;
    }
    
    .sharoshi-meta-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .area-list,
    .specialty-grid {
        grid-template-columns: 1fr;
    }
    
    .search-button {
        width: 100%;
    }
}

/* =============================================
   検索結果なし
   ============================================= */

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--light-gray);
    border-radius: 8px;
    margin: 40px 0;
}

.no-results h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.no-results p {
    color: #666;
}
