/* ==========================================================================
   株式会社ＨＩＴＥＣ - 「代表ノート」専用プレミアムスタイルシート (note.css)
   ========================================================================== */

/* 変数の定義（V3デザインシステムと調和） */
:root {
    --note-primary: #00b4d8;         /* ＨＩＴＥＣシアン */
    --note-primary-dark: #0077b6;    /* ＨＩＴＥＣディープブルー */
    --note-primary-light: rgba(0, 180, 216, 0.1);
    --note-bg-light: #f8fafd;        /* 柔らかな背景色 */
    --note-text-main: #2b2d42;       /* メイン文字色（少し和らげた墨黒） */
    --note-text-sub: #6c757d;        /* サブ文字色 */
    --note-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --note-card-shadow-hover: 0 20px 40px rgba(0, 180, 216, 0.12);
    --note-border-radius: 16px;
    --note-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 共通レイアウト */
.note-section {
    padding: 80px 0;
    background-color: var(--note-bg-light);
}

.note-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ヒーローセクション（一覧ページ上部） */
.note-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.note-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 60%);
    animation: pulse-bg 12s infinite alternate;
    pointer-events: none;
}

@keyframes pulse-bg {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

.note-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    background: linear-gradient(45deg, #ffffff 30%, #00b4d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

.note-hero-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
}

/* カテゴリーフィルター */
.note-filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.note-filter-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--note-text-main);
    cursor: pointer;
    transition: var(--note-transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.note-filter-btn:hover {
    background: var(--note-primary-light);
    color: var(--note-primary);
    border-color: rgba(0, 180, 216, 0.3);
    transform: translateY(-2px);
}

.note-filter-btn.active {
    background: var(--note-primary);
    color: #ffffff;
    border-color: var(--note-primary);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.25);
}

/* 注目記事（Featured Post） */
.note-featured {
    margin-bottom: 60px;
}

.note-featured-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--note-card-shadow);
    display: flex;
    transition: var(--note-transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    min-height: 450px;
}

.note-featured-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--note-card-shadow-hover);
}

.note-featured-img {
    flex: 1.2;
    min-height: 100%;
    position: relative;
    overflow: hidden;
}

.note-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--note-transition);
}

.note-featured-card:hover .note-featured-img img {
    transform: scale(1.04);
}

.note-featured-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 記事カードグリッド */
.note-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 記事カード */
.note-card {
    background: #ffffff;
    border-radius: var(--note-border-radius);
    overflow: hidden;
    box-shadow: var(--note-card-shadow);
    transition: var(--note-transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.note-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--note-card-shadow-hover);
    border-color: rgba(0, 180, 216, 0.15);
}

.note-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.note-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--note-transition);
}

/* ロゴやバナー等の白背景画像を、アスペクト比を維持しつつ枠内に上品に収めるためのプレミアムクラス */
.note-img-contain {
    object-fit: contain !important;
    background-color: #ffffff !important;
    padding: 18px !important; /* ロゴが枠の端にくっつきすぎないよう、エレガントな余白（プレミアムマージン）を確保 */
    box-sizing: border-box !important;
}

/* ロゴ画像のホバー時は、急激なはみ出しを防ぐため上品に微拡大させる */
.note-card:hover .note-card-img .note-img-contain,
.note-featured-card:hover .note-featured-img .note-img-contain {
    transform: scale(1.02) !important;
}

.note-card:hover .note-card-img img {
    transform: scale(1.05);
}

.note-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.note-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.note-category-tag {
    background: var(--note-primary-light);
    color: var(--note-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    display: inline-block;
}

.note-date {
    font-size: 0.85rem;
    color: var(--note-text-sub);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.note-card-title {
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 700;
    color: var(--note-text-main);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.note-card:hover .note-card-title {
    color: var(--note-primary-dark);
}

.note-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--note-text-sub);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.note-card-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--note-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: var(--note-transition);
}

.note-card-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.note-card:hover .note-card-link {
    color: var(--note-primary-dark);
}

.note-card:hover .note-card-link::after {
    transform: translateX(5px);
}

/* ==========================================================================
   個別詳細ページレイアウト (Detail Page)
   ========================================================================== */

.note-detail-hero {
    padding: 180px 0 100px;
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.9)), var(--bg-image) no-repeat center center/cover;
    color: #ffffff;
    text-align: center;
    position: relative;
}

.note-detail-title {
    font-size: 2.8rem;
    line-height: 1.4;
    font-weight: 800;
    max-width: 900px;
    margin: 20px auto;
    letter-spacing: -0.5px;
}

/* パンくずリスト */
.note-breadcrumb {
    padding: 20px 0;
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    font-size: 0.9rem;
}

.note-breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    color: var(--note-text-sub);
}

.note-breadcrumb a {
    color: var(--note-primary-dark);
    transition: color 0.3s;
}

.note-breadcrumb a:hover {
    color: var(--note-primary);
    text-decoration: underline;
}

/* メイン2カラム構成 */
.note-detail-layout {
    display: flex;
    gap: 40px;
    padding: 60px 0;
}

.note-detail-main {
    flex: 1;
    min-width: 0; /* flexの子要素がはみ出さないように */
}

.note-detail-sidebar {
    width: 340px;
    flex-shrink: 0;
}

/* 本文エリア */
.note-post-container {
    background: #ffffff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--note-card-shadow);
    border: 1px solid rgba(0,0,0,0.02);
}

/* 目次 (TOC) */
.note-toc {
    background: #f8fafd;
    border: 1px solid rgba(0, 180, 216, 0.15);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 40px;
}

.note-toc-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--note-text-main);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-toc-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background-color: var(--note-primary);
    border-radius: 2px;
}

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

.note-toc-list li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.note-toc-list li.toc-depth-3 {
    padding-left: 20px;
    font-size: 0.9rem;
}

.note-toc-list a {
    color: var(--note-text-main);
    transition: color 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.note-toc-list a:hover {
    color: var(--note-primary);
}

/* リッチな記事コンテンツスタイリング (SSG変換後) */
.note-content {
    color: var(--note-text-main);
    font-size: 1.1rem;
    line-height: 1.9;
    letter-spacing: 0.3px;
}

.note-content p {
    margin-bottom: 30px;
}

.note-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--note-text-main);
    margin: 60px 0 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--note-primary-light);
    position: relative;
}

.note-content h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--note-primary);
}

.note-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--note-text-main);
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.note-content h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--note-primary);
    border-radius: 50%;
}

.note-content blockquote {
    background: #f8fafc;
    border-left: 4px solid var(--note-primary);
    padding: 24px 30px;
    margin: 35px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--note-text-sub);
}

.note-content blockquote p {
    margin-bottom: 0;
}

.note-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 35px auto;
    display: block;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.note-content ul, .note-content ol {
    margin-bottom: 30px;
    padding-left: 24px;
}

.note-content li {
    margin-bottom: 10px;
}

/* 記事末尾のプロフィールカード */
.note-author-box {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eaeaea;
    display: flex;
    gap: 25px;
    align-items: center;
    background: linear-gradient(135deg, #f8fafd 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(0, 180, 216, 0.05);
}

.note-author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.note-author-info {
    flex: 1;
}

.note-author-role {
    font-size: 0.85rem;
    color: var(--note-primary-dark);
    font-weight: 700;
    margin-bottom: 5px;
}

.note-author-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--note-text-main);
    margin-bottom: 10px;
}

.note-author-bio {
    font-size: 0.95rem;
    color: var(--note-text-sub);
    line-height: 1.6;
}

/* サイドバーウィジェット */
.note-sidebar-widget {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--note-card-shadow);
    border: 1px solid rgba(0,0,0,0.02);
    margin-bottom: 30px;
}

.note-widget-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--note-text-main);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.note-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--note-primary);
}

/* ミニプロフィール */
.note-mini-profile {
    text-align: center;
}

.note-mini-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.note-mini-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.note-mini-bio {
    font-size: 0.85rem;
    color: var(--note-text-sub);
    line-height: 1.6;
    text-align: left;
}

/* 関連記事リスト */
.note-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.note-widget-list li {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f5f5f5;
}

.note-widget-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.note-widget-post-date {
    font-size: 0.8rem;
    color: var(--note-text-sub);
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
}

.note-widget-post-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

.note-widget-post-title a {
    color: var(--note-text-main);
    transition: color 0.3s;
}

.note-widget-post-title a:hover {
    color: var(--note-primary);
}

/* プレミアム採用バナーウィジェット */
.note-recruit-banner-widget {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: var(--note-card-shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.note-recruit-banner-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.note-recruit-tag {
    background: rgba(0, 180, 216, 0.2);
    border: 1px solid rgba(0, 180, 216, 0.4);
    color: var(--note-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 15px;
}

.note-recruit-title {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 15px;
}

.note-recruit-text {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 25px;
}

.note-recruit-btn {
    background: linear-gradient(45deg, var(--note-primary) 0%, var(--note-primary-dark) 100%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: var(--note-transition);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.note-recruit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.5);
    background: linear-gradient(45deg, var(--note-primary-dark) 0%, var(--note-primary) 100%);
}


/* ==========================================================================
   レスポンシブ対応 (Media Queries)
   ========================================================================== */

@media (max-width: 1024px) {
    .note-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .note-detail-layout {
        flex-direction: column;
    }
    .note-detail-sidebar {
        width: 100%;
    }
    .note-featured-card {
        flex-direction: column;
        min-height: auto;
    }
    .note-featured-img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .note-hero-title {
        font-size: 2.5rem;
    }
    .note-grid {
        grid-template-columns: 1fr;
    }
    .note-post-container {
        padding: 30px 20px;
    }
    .note-detail-title {
        font-size: 1.8rem;
    }
    .note-author-box {
        flex-direction: column;
        text-align: center;
    }
}
