/* =========================================================
   Founder Blog — Cone Inc. デザイン仕様準拠
   独立CSSファイル（親テーマ coneinc に追加）
   ========================================================= */

:root {
    --fb-text:        #333333;
    --fb-text-soft:   #555555;
    --fb-text-muted:  #888888;
    --fb-line:        #e5e5e5;
    --fb-bg:          #f6f6f6;
    --fb-card:        #ffffff;
    --fb-accent:      #6a82f6;
    --fb-accent-2:    #5a72e6;
    --fb-dark:        #333333;
    --fb-radius:      5px;
    --fb-shadow:      0 2px 12px rgba(0, 0, 0, .04);
    --fb-shadow-hover:0 4px 20px rgba(106, 130, 246, .15);
    --fb-max-width:   720px;
    --fb-list-width:  1080px;
    --fb-font:        "Montserrat", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---------- 共通ラッパ ---------- */
.founder-blog {
    background: var(--fb-bg);
    color: var(--fb-text);
    font-family: var(--fb-font);
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    line-height: 1.85;
    font-weight: 400;
}

.founder-blog a {
    color: var(--fb-accent);
    text-decoration: none;
    transition: opacity .2s ease, color .2s ease;
}
.founder-blog a:hover { opacity: .75; }

/* ---------- ブログ専用ヘッダー ---------- */
.fb-site-header {
    background: #fff;
    border-bottom: 1px solid var(--fb-line);
    padding: 0 24px;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.fb-site-header__inner {
    max-width: var(--fb-list-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.fb-site-header__left {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
}
.fb-site-header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.fb-site-header__logo-img {
    height: 28px;
    width: auto;
}
.fb-site-header__logo-mark {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #818cf8 0%, #6a82f6 100%);
    box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px #6a82f6;
}
.fb-site-header__logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--fb-text);
    letter-spacing: .02em;
}
.fb-site-header__sep {
    width: 1px;
    height: 24px;
    background: var(--fb-line);
    margin: 0 20px;
    flex-shrink: 0;
}
.fb-site-header__blog-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--fb-text);
    white-space: nowrap;
    letter-spacing: .02em;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fb-site-header__right {
    flex-shrink: 0;
    margin-left: 24px;
}
.fb-site-header__corp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--fb-text-muted);
    padding: 7px 16px;
    border: 1px solid var(--fb-line);
    border-radius: var(--fb-radius);
    transition: all .2s ease;
}
.fb-site-header__corp-link:hover {
    color: var(--fb-accent);
    border-color: var(--fb-accent);
    opacity: 1;
}
.fb-site-header__corp-link::after {
    content: "\2192";
    font-size: 11px;
}

@media (max-width: 640px) {
    .fb-site-header { padding: 0 16px; height: 56px; }
    .fb-site-header__sep { margin: 0 12px; }
    .fb-site-header__blog-title { font-size: 11px; white-space: normal; line-height: 1.4; }
    .fb-site-header__logo-text { font-size: 17px; }
    .fb-site-header__logo-img { height: 22px; }
    .fb-site-header__corp-link { padding: 5px 10px; font-size: 11px; }
}

/* =========================================================
   著者プロフィール（SNS風 + カバー画像）
   ========================================================= */
.fb-profile {
    background: var(--fb-card);
    border-bottom: 1px solid var(--fb-line);
}
.fb-profile__cover {
    max-width: var(--fb-list-width);
    margin: 0 auto;
    padding: 0 24px;
}
.fb-profile__cover-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(135deg, #c7d2fe 0%, #818cf8 100%);
}
.fb-profile__cover-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fb-profile__inner {
    max-width: var(--fb-list-width);
    margin: 0 auto;
    padding: 0 24px;
}
.fb-profile__header {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-top: 24px;
    margin-bottom: 20px;
}
.fb-profile__avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 4px solid #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
    margin-top: -40px;
    background: #fff;
}
.fb-profile__info {
    flex: 1;
    min-width: 0;
    padding-top: 28px;
}
.fb-profile__name {
    font-size: 24px;
    font-weight: 700;
    color: var(--fb-text);
    margin: 0 0 4px;
    line-height: 1.3;
}
.fb-profile__role {
    font-size: 13px;
    color: var(--fb-text-muted);
    margin: 0 0 12px;
    font-weight: 500;
}
.fb-profile__bio {
    font-size: 14px;
    line-height: 1.75;
    color: var(--fb-text-soft);
    margin: 0;
    max-width: 600px;
}

.fb-profile__stats {
    display: flex;
    gap: 24px;
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--fb-line);
}
.fb-profile__stat {
    font-size: 13px;
    color: var(--fb-text-soft);
}
.fb-profile__stat strong {
    font-weight: 700;
    color: var(--fb-text);
    margin-right: 4px;
}

.fb-profile__tabs {
    display: flex;
    gap: 0;
    margin-top: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.fb-profile__tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fb-text-muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color .2s ease, border-color .2s ease;
}
.fb-profile__tab:hover { color: var(--fb-text); opacity: 1; }
.fb-profile__tab.is-active {
    color: var(--fb-accent);
    border-bottom-color: var(--fb-accent);
}

@media (max-width: 640px) {
    .fb-profile__cover { padding: 0 16px; }
    .fb-profile__cover-img { height: 150px; border-radius: 0 0 8px 8px; }
    .fb-profile__inner { padding: 0 20px; }
    .fb-profile__header { gap: 16px; margin-top: 16px; }
    .fb-profile__avatar { width: 80px; height: 80px; margin-top: -30px; border-width: 3px; }
    .fb-profile__info { padding-top: 16px; }
    .fb-profile__name { font-size: 20px; }
    .fb-profile__stats { gap: 16px; }
    .fb-profile__tab { padding: 10px 14px; font-size: 12px; }
}

/* =========================================================
   一覧ページ
   ========================================================= */
.founder-blog--archive {
    padding: 40px 24px 120px;
}
.fb-archive__inner {
    max-width: var(--fb-list-width);
    margin: 0 auto;
}

/* 2カラム: メイン + サイドバー */
.fb-archive__layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 48px;
    align-items: start;
}

/* リスト形式（横長カード） */
.fb-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fb-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--fb-line);
    transition: background .2s ease;
}
.fb-card:first-child { padding-top: 0; }
.fb-card:hover { background: rgba(106, 130, 246, .02); }

.fb-card__thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--fb-radius);
    background: #eee;
}
.fb-card__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.fb-card:hover .fb-card__thumb img { transform: scale(1.04); }

.fb-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fb-card__title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.55;
    margin: 0 0 8px;
    color: var(--fb-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fb-card__title a { color: inherit; }

.fb-card__excerpt {
    color: var(--fb-text-soft);
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fb-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--fb-text-muted);
}
.fb-card__author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fb-text-soft);
    font-weight: 500;
}
.fb-card__avatar {
    width: 20px; height: 20px;
    border-radius: 50%;
    object-fit: cover;
}
.fb-card__meta-sep { color: var(--fb-line); }
.fb-card__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--fb-accent);
    padding: 2px 8px;
    background: rgba(106, 130, 246, .08);
    border-radius: 3px;
    letter-spacing: .02em;
}

/* サイドバー */
.fb-sidebar { position: sticky; top: 80px; }

.fb-sidebar__section { margin-bottom: 36px; }
.fb-sidebar__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fb-text);
    margin: 0 0 16px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.fb-sidebar__title::before {
    content: "";
    width: 3px;
    height: 14px;
    background: var(--fb-accent);
    border-radius: 2px;
}

/* バックナンバー */
.fb-backnumber {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fb-backnumber__year { margin-bottom: 12px; }
.fb-backnumber__year-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--fb-text);
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--fb-line);
}
.fb-backnumber__months {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.fb-backnumber__month a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--fb-text-soft);
    background: var(--fb-card);
    border-radius: var(--fb-radius);
    box-shadow: var(--fb-shadow);
    transition: all .2s ease;
}
.fb-backnumber__month a:hover,
.fb-backnumber__month a.is-current {
    color: #fff;
    background: var(--fb-accent);
    opacity: 1;
}
.fb-backnumber__count {
    font-size: 10px;
    color: var(--fb-text-muted);
    margin-left: 4px;
}

/* ページネーション */
.fb-pagination {
    margin-top: 48px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}
.fb-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    margin: 0 4px;
    color: var(--fb-text-soft);
    background: var(--fb-card);
    border-radius: var(--fb-radius);
    box-shadow: var(--fb-shadow);
    transition: all .2s ease;
}
.fb-pagination .page-numbers:hover {
    color: var(--fb-accent);
}
.fb-pagination .page-numbers.current {
    background: var(--fb-accent);
    color: #fff;
}

/* レスポンシブ */
@media (max-width: 860px) {
    .fb-archive__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .fb-sidebar { position: static; }
}
@media (max-width: 640px) {
    .founder-blog--archive { padding: 32px 20px 80px; }
    .fb-card {
        grid-template-columns: 120px 1fr;
        gap: 16px;
        padding: 20px 0;
    }
    .fb-card__title { font-size: 15px; }
    .fb-card__excerpt { display: none; }
}

/* =========================================================
   詳細ページ
   ========================================================= */
.founder-blog--single {
    padding: 64px 24px 120px;
}

.fb-article {
    max-width: var(--fb-max-width);
    margin: 0 auto;
}

.fb-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 32px;
    font-size: 13px;
    color: var(--fb-text-muted);
    font-weight: 500;
}
.fb-back-link::before { content: "\2190"; }
.fb-back-link:hover { color: var(--fb-accent); opacity: 1; }

.fb-article__header { margin-bottom: 32px; }
.fb-article__category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--fb-accent);
    padding: 4px 12px;
    background: rgba(106, 130, 246, .1);
    border-radius: var(--fb-radius);
    margin-bottom: 20px;
    letter-spacing: .04em;
}

.fb-article__title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .02em;
    margin: 0 0 24px;
    color: var(--fb-text);
}

.fb-article__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--fb-text-muted);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--fb-line);
    flex-wrap: wrap;
}
.fb-article__author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--fb-text);
    font-weight: 600;
    font-size: 14px;
}
.fb-article__avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.fb-article__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.fb-article__date::before {
    content: "";
    width: 4px;
    height: 4px;
    background: var(--fb-text-muted);
    border-radius: 50%;
}

/* アイキャッチ */
.fb-article__thumb {
    margin: 0 0 40px;
    border-radius: var(--fb-radius);
    overflow: hidden;
    background: #eee;
}
.fb-article__thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* 本文 */
.fb-article__body {
    background: var(--fb-card);
    padding: 48px 56px;
    border-radius: var(--fb-radius);
    box-shadow: var(--fb-shadow);
    font-size: 16px;
    line-height: 1.95;
    color: var(--fb-text);
    word-wrap: break-word;
}
.fb-article__body > *:first-child { margin-top: 0; }
.fb-article__body > *:last-child { margin-bottom: 0; }
.fb-article__body > * + * { margin-top: 1.5em; }

.fb-article__body h2 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 2.4em;
    margin-bottom: .9em;
    padding-left: 16px;
    color: var(--fb-text);
}
.fb-article__body h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.55;
    margin-top: 2em;
    margin-bottom: .6em;
    color: var(--fb-text);
}
.fb-article__body h4 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 1.8em;
}
.fb-article__body p { margin: 1.4em 0; }
.fb-article__body a {
    color: var(--fb-accent);
    border-bottom: 1px solid currentColor;
}
.fb-article__body strong { font-weight: 600; color: var(--fb-text); }
.fb-article__body blockquote {
    margin: 2em 0;
    padding: 20px 24px;
    background: #f8f8f8;
    border-left: 4px solid var(--fb-accent);
    border-radius: 0 var(--fb-radius) var(--fb-radius) 0;
    color: var(--fb-text-soft);
}
.fb-article__body blockquote > *:first-child { margin-top: 0; }
.fb-article__body blockquote > *:last-child { margin-bottom: 0; }

.fb-article__body ul,
.fb-article__body ol {
    margin: 1.4em 0;
    padding-left: 1.5em;
}
.fb-article__body li { margin: .4em 0; }
.fb-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--fb-radius);
    margin: 2em auto;
    display: block;
}
.fb-article__body figure { margin: 2em 0; text-align: center; }
.fb-article__body figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: var(--fb-text-muted);
}
.fb-article__body code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: .92em;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.fb-article__body pre {
    background: #2d2d2d;
    color: #f5f5f5;
    padding: 20px 24px;
    border-radius: var(--fb-radius);
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.7;
}
.fb-article__body pre code {
    background: none;
    color: inherit;
    padding: 0;
}
.fb-article__body hr {
    border: 0;
    border-top: 1px solid var(--fb-line);
    margin: 3em auto;
    width: 80px;
}

/* 著者カード */
.fb-article__footer { margin-top: 48px; }

.fb-author-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px;
    background: var(--fb-card);
    border-radius: var(--fb-radius);
    box-shadow: var(--fb-shadow);
}
.fb-author-card__avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.fb-author-card__body { flex: 1; min-width: 0; }
.fb-author-card__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--fb-accent);
    letter-spacing: .12em;
    margin: 0 0 4px;
    text-transform: uppercase;
}
.fb-author-card__name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--fb-text);
}
.fb-author-card__bio {
    font-size: 13px;
    line-height: 1.8;
    color: var(--fb-text-soft);
    margin: 0;
}

/* 記事ナビ */
.fb-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}
.fb-post-nav__item {
    display: block;
    padding: 20px 24px;
    background: var(--fb-card);
    border-radius: var(--fb-radius);
    box-shadow: var(--fb-shadow);
    color: var(--fb-text);
    transition: transform .2s ease, box-shadow .2s ease;
}
.fb-post-nav__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--fb-shadow-hover);
    opacity: 1;
}
.fb-post-nav__item--next { text-align: right; }
.fb-post-nav__label {
    display: block;
    font-size: 11px;
    color: var(--fb-accent);
    margin-bottom: 8px;
    letter-spacing: .12em;
    font-weight: 600;
    text-transform: uppercase;
}
.fb-post-nav__title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--fb-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA */
.fb-cta { margin-top: 40px; text-align: center; }
.fb-cta__btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--fb-accent);
    color: #fff !important;
    border-radius: var(--fb-radius);
    font-size: 14px;
    font-weight: 500;
    transition: background .2s ease, transform .2s ease;
}
.fb-cta__btn:hover {
    background: var(--fb-accent-2);
    transform: translateY(-1px);
    opacity: 1;
}

@media (max-width: 640px) {
    .founder-blog--single { padding: 40px 16px 80px; }
    .fb-article__title { font-size: 24px; }
    .fb-article__body { padding: 28px 20px; font-size: 15px; line-height: 1.9; }
    .fb-article__body h2 { font-size: 19px; }
    .fb-article__body h3 { font-size: 17px; }
    .fb-post-nav { grid-template-columns: 1fr; }
    .fb-author-card { padding: 20px; gap: 14px; }
    .fb-author-card__avatar { width: 52px; height: 52px; }
}
