/* カスタムスタイル */

/* ========================================
   ユーティリティクラス
======================================== */
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* ========================================
   グリッドレイアウト
======================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ========================================
   カウンセラーカード（横長）
======================================== */
.counselor-card {
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.counselor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.counselor-card-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.counselor-card-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.counselor-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.counselor-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.counselor-card-job {
    font-size: 0.85rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.counselor-card-intro {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.counselor-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.counselor-card-price {
    font-weight: bold;
    color: #667eea;
    font-size: 1.05rem;
}

.counselor-card-price-unit {
    font-size: 0.8rem;
    color: #999;
}

/* ========================================
   ブログカード
======================================== */
.blog-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.blog-card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.blog-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-author-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.blog-author-name {
    font-size: 0.85rem;
    color: #666;
}

.blog-author-label {
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    color: white;
}

.label-counselor { background: #667eea; }
.label-admin { background: #ffc107; }
.label-client { background: #28a745; }

.blog-card-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    flex: 1;
}

.blog-card-title a {
    color: #333;
    text-decoration: none;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #999;
}

/* ========================================
   告知カード
======================================== */
.announcement-card {
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.announcement-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #999;
}

.announcement-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.announcement-excerpt {
    color: #666;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ========================================
   特徴カード（トップページ）
======================================== */
.feature-card {
    padding: 0;
    overflow: hidden;
    text-align: center;
}

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

.feature-card-content {
    padding: 1.25rem;
}

.feature-card-title {
    margin-bottom: 0.5rem;
}

.feature-card-desc {
    color: #666;
    font-size: 0.92rem;
}

/* ========================================
   登録選択カード
======================================== */
.register-card {
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.register-card:hover {
    transform: translateY(-4px);
}

.register-card.client:hover {
    border-color: #28a745;
}

.register-card.counselor:hover {
    border-color: #667eea;
}

.register-card-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.register-icon-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-icon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.register-card-title {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.register-card-title.client { color: #28a745; }
.register-card-title.counselor { color: #667eea; }

.register-card-desc {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.register-card-button {
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
}

.register-card-button.client { background: #28a745; }
.register-card-button.counselor { background: #667eea; }

/* ========================================
   ヒーローセクション
======================================== */
.hero-section {
    background-size: cover;
    background-position: center;
    padding: 8rem 2rem;
    text-align: center;
    margin: 0;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    margin-left: auto;
    margin-right: 10%;
    text-align: left;
}

.hero-title {
    font-size: 2.3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.3;
    color: #333;
    font-family: "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN", "メイリオ", Meiryo, sans-serif;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
    font-family: "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN", "メイリオ", Meiryo, sans-serif;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   検索フォーム
======================================== */
.search-box {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem;
}

.detail-search-toggle {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* ========================================
   パンくずリスト
======================================== */
.breadcrumbs {
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #666;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-separator {
    color: #ccc;
}

/* ========================================
   ページネーション
======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-info {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* ========================================
   プロフィール画像（丸）
======================================== */
.profile-image-round {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-placeholder-round {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* ========================================
   ヒーローボタン
======================================== */
.btn-hero {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s;
    display: inline-block;
}

.btn-hero.btn-primary {
    background: #667eea;
    color: white;
    font-weight: bold;
}

.btn-hero.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-hero.btn-outline {
    border: 2px solid #667eea;
    color: #667eea;
    background: white;
}

.btn-hero.btn-outline:hover {
    background: #f8f9fa;
}

/* ===================================
   ページネーション
   =================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-info {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: #f8f9fa;
}

.pagination-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* ===================================
   告知ページ専用
   =================================== */
.announcements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.announcement-form-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.announcement-form-notice h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #667eea;
}

.announcement-form-notice ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.announcement-form-notice li {
    display: flex;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: #444;
}

.announcement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.announcement-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.announcement-card {
    padding: 1.25rem;
    transition: all 0.2s;
    cursor: pointer;
}

.announcement-card:hover {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.announcement-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.announcement-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.announcement-author-avatar.counselor {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.announcement-author-avatar.client {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.announcement-author-info {
    flex: 1;
    min-width: 0;
}

.announcement-author-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.announcement-author-name strong {
    font-size: 0.9rem;
}

.announcement-author-label {
    background: #667eea;
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
}

.announcement-author-label.client {
    background: #28a745;
}

.announcement-author-date {
    color: #bbb;
    font-size: 0.75rem;
}

.announcement-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #222;
}

.announcement-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===================================
   ブログページ専用
   =================================== */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.blog-empty {
    text-align: center;
    padding: 3rem;
}

.blog-empty p {
    color: #999;
    font-size: 1.1rem;
}

/* ===================================
   レスポンシブ
   =================================== */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .announcement-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   ブログコンテンツ表示用スタイル
   =================================== */
.blog-content h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 1.5rem 0 1rem;
    color: #333;
}

.blog-content h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1.3rem 0 0.8rem;
    color: #333;
}

.blog-content h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 1.1rem 0 0.7rem;
    color: #333;
}

.blog-content p {
    margin: 1rem 0;
    line-height: 1.8;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.blog-content ul,
.blog-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.blog-content li {
    margin: 0.5rem 0;
    line-height: 1.7;
}

.blog-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #666;
    font-style: italic;
}

.blog-content a {
    color: #667eea;
    text-decoration: underline;
}

.blog-content a:hover {
    color: #5568d3;
}

.blog-content code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.blog-content pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-content pre code {
    background: none;
    padding: 0;
}

/* ===================================
   告知カードのプロフィール画像
   =================================== */
.announcement-author-avatar-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
