/**
 * motive サービスデザイン - CSS
 * columnのトンマナを踏襲しつつ、アクセントカラーで差別化
 */

/* ===================================
   変数・アクセントカラー
   =================================== */
/* アクセント: #5BA4A4 (ティール) - columnの #92b5f5 (ブルー) と差別化 */

/* ===================================
   ページレイアウト
   =================================== */
.sd-page { padding-bottom: 5%; }
.sd-page .ly_con_wi { max-width: 1100px; }

/* ===================================
   ヒーロー
   =================================== */
.sd-hero { margin-top: 3%; text-align: center; }
@media (max-width: 765px) { .sd-hero { margin-top: 8%; } }

.sd-hero__title {
    font-family: "circe-rounded", sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: .1em;
}
@media (max-width: 765px) { .sd-hero__title { font-size: 1.8rem; } }

.sd-hero__description {
    margin-top: 1em;
    font-size: .9rem;
    line-height: 2;
    color: #666;
}
@media (max-width: 765px) {
    .sd-hero__description { font-size: .8rem; }
    .sd-hero__description br { display: none; }
}

/* ===================================
   カテゴリーフィルター
   =================================== */
.sd-filter { margin-top: 3%; }

.sd-filter__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5em;
    justify-content: center;
    list-style: none;
}

.sd-filter__tab a {
    display: block;
    padding: .5em 1.2em;
    font-size: .85rem;
    border-radius: 50px;
    background: hsla(0,0%,100%,.6);
    color: #666;
    text-decoration: none;
    transition: .3s;
}

.sd-filter__tab a:hover,
.sd-filter__tab.is-active a {
    background: #5BA4A4;
    color: #fff;
}

/* ===================================
   アーカイブレイアウト（2カラム）
   =================================== */
.sd-archive__layout {
    display: flex;
    flex-direction: row;
    gap: 4%;
    margin-top: 3%;
}
@media (max-width: 765px) {
    .sd-archive__layout { flex-direction: column; gap: 2em; margin-top: 8%; }
}

.sd-archive__main { width: 68%; min-width: 0; }
@media (max-width: 765px) { .sd-archive__main { width: 100%; } }

/* ===================================
   記事カード
   =================================== */
.sd-archive__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
}
@media (max-width: 765px) {
    .sd-archive__grid { grid-template-columns: 1fr; }
}

.sd-card {
    background: hsla(0,0%,100%,.8);
    border-radius: 15px;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.sd-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.sd-card__link { display: block; text-decoration: none; color: #262626; }

.sd-card__thumb { aspect-ratio: 3/2; overflow: hidden; }
.sd-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sd-card:hover .sd-card__img { transform: scale(1.05); }

.sd-card__no-image {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sd-card__placeholder { width: 40% !important; height: auto !important; opacity: .15; }

.sd-card__body { padding: 1.2em; }

.sd-card__meta { display: flex; gap: .5em; align-items: center; margin-bottom: .5em; }

.sd-card__category {
    font-size: .7rem;
    font-weight: bold;
    color: #5BA4A4;
    background: rgba(91,164,164,.1);
    padding: .2em .8em;
    border-radius: 50px;
}

.sd-card__title {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 765px) { .sd-card__title { font-size: .9rem; } }

.sd-card__excerpt {
    margin-top: .5em;
    font-size: .8rem;
    line-height: 1.7;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 765px) {
    .sd-card__excerpt { font-size: .75rem; -webkit-line-clamp: 2; }
}

.sd-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1em;
    font-size: .75rem;
    color: #888;
}

.sd-card__time::before { content: "\01F4D6 "; }

/* ===================================
   ページネーション
   =================================== */
.sd-pagination { margin-top: 3em; text-align: center; }
.sd-pagination .page-numbers {
    display: inline-flex;
    gap: .3em;
    list-style: none;
}
.sd-pagination .page-numbers li a,
.sd-pagination .page-numbers li span {
    display: block;
    padding: .5em 1em;
    font-size: .85rem;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    background: hsla(0,0%,100%,.6);
    transition: .3s;
}
.sd-pagination .page-numbers li .current,
.sd-pagination .page-numbers li a:hover {
    background: #5BA4A4;
    color: #fff;
}

/* ===================================
   パンくずリスト
   =================================== */
.sd-breadcrumb {
    max-width: 1100px;
    width: 80%;
    margin: 2em auto 3em;
}
@media (max-width: 765px) {
    .sd-breadcrumb { width: 90%; margin: 1em auto 2em; }
}

.sd-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    gap: .3em;
    font-size: .75rem;
    color: #888;
    list-style: none;
}
.sd-breadcrumb__item:not(:last-child)::after { content: ">"; margin-left: .3em; color: #ccc; }
.sd-breadcrumb__item a { color: #888; text-decoration: none; }
.sd-breadcrumb__item a:hover { text-decoration: underline; }
.sd-breadcrumb__item:last-child span { color: #262626; }

/* ===================================
   記事詳細（single）レイアウト
   =================================== */
.sd-single__layout {
    display: flex;
    flex-direction: row;
    gap: 4%;
    padding-top: 0;
}
@media (max-width: 765px) {
    .sd-single__layout { flex-direction: column; gap: 2em; }
}

.sd-single__main { width: 68%; min-width: 0; }
@media (max-width: 765px) { .sd-single__main { width: 100%; } }

/* 記事ヘッダー */
.sd-single__meta { display: flex; gap: .5em; align-items: center; margin-bottom: 1em; }

.sd-single__category {
    display: inline-block;
    font-size: .75rem;
    font-weight: bold;
    color: #fff;
    background: #5BA4A4;
    padding: .3em 1em;
    border-radius: 50px;
    text-decoration: none;
    transition: .3s;
}
.sd-single__category:hover { opacity: .8; }

.sd-single__title {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.5;
}
@media (max-width: 765px) { .sd-single__title { font-size: 1.4rem; } }

.sd-single__info {
    display: flex;
    flex-wrap: wrap;
    gap: .8em;
    align-items: center;
    margin-top: 1em;
    font-size: .8rem;
    color: #888;
}

.sd-single__read-time { color: #5BA4A4; font-weight: 500; }

/* KV */
.sd-single__kv { margin-top: 2em; }
.sd-single__kv-img { width: 100%; height: auto; border-radius: 15px; display: block; }

/* ===================================
   CTA
   =================================== */
.sd-cta--inline {
    max-width: 1100px;
    width: 80%;
    margin: 4em auto 0;
    background: hsla(0,0%,100%,.8);
    border-radius: 30px;
    padding: 3em;
    text-align: center;
}
@media (max-width: 765px) {
    .sd-cta--inline { width: 90%; padding: 2em 1.5em; }
}

.sd-cta--inline .sd-cta__label {
    font-family: "circe-rounded", sans-serif;
    font-size: .8em;
    color: #888;
    letter-spacing: .2em;
}
.sd-cta--inline .sd-cta__heading {
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: .5em;
}
@media (max-width: 765px) { .sd-cta--inline .sd-cta__heading { font-size: 1.1rem; } }

.sd-cta--inline .sd-cta__text {
    margin-top: 1em;
    font-size: .9rem;
    line-height: 2;
    color: #666;
}
@media (max-width: 765px) { .sd-cta--inline .sd-cta__text { font-size: .8rem; } }

.sd-cta--inline .sd-cta__btn { margin-top: 2em; }

/* SP固定CTA */
.sd-float-cta {
    position: fixed;
    bottom: 1.2em;
    right: 1em;
    z-index: 999;
    transition: opacity .3s, transform .3s;
}
.sd-float-cta__link {
    display: flex;
    align-items: center;
    gap: .5em;
    background: #262626;
    color: #fff;
    padding: .9em 1.4em;
    border-radius: 50px;
    font-weight: bold;
    font-size: .8em;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    transition: transform .3s, box-shadow .3s;
    letter-spacing: .03em;
}
.sd-float-cta__link:active { transform: scale(0.96); }

/* プログレスバー */
.sd-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #5BA4A4;
    z-index: 9999;
    transition: width .1s linear;
}

/* ===================================
   目次
   =================================== */
.sd-toc {
    margin: 2em 0;
    background: #f8f8f8;
    border-radius: 15px;
    overflow: hidden;
}
.sd-toc__inner { padding: 1.5em 2em; }
@media (max-width: 765px) { .sd-toc__inner { padding: 1em 1.5em; } }

.sd-toc__label {
    font-size: .85rem;
    font-weight: bold;
    margin-bottom: 1em;
    padding-bottom: .5em;
    border-bottom: 1px solid #e6e6e6;
}

.sd-toc__nav ol { list-style: none; counter-reset: toc; }
.sd-toc__nav ol li { counter-increment: toc; margin-top: .3em; }
.sd-toc__nav ol li:first-child { margin-top: 0; }

.sd-toc__nav ol li a {
    display: block;
    padding: .3em 0 .3em 1.5em;
    font-size: .9rem;
    color: #555;
    text-decoration: none;
    position: relative;
    transition: .3s;
    line-height: 1.6;
}
.sd-toc__nav ol li a::before {
    content: counter(toc) ".";
    position: absolute;
    left: 0;
    color: #5BA4A4;
    font-weight: bold;
}
.sd-toc__nav ol li a:hover { color: #262626; }
.sd-toc__nav ol li ol { padding-left: 1em; counter-reset: toc-sub; }
.sd-toc__nav ol li ol li { counter-increment: toc-sub; }
.sd-toc__nav ol li ol li a { font-size: .8rem; padding-left: 1.2em; }
.sd-toc__nav ol li ol li a::before { content: "- "; color: #ccc; }

/* ===================================
   記事本文コンテンツ
   =================================== */
.sd-article-content {
    margin-top: 2em;
    font-size: 1.05rem;
    line-height: 2;
    color: #262626;
}
@media (max-width: 765px) { .sd-article-content { font-size: .9rem; } }

.sd-article-content h2 {
    font-size: 1.6rem;
    font-weight: bold;
    margin-top: 3em;
    padding-bottom: .5em;
    border-bottom: 2px solid #262626;
    line-height: 1.5;
}
@media (max-width: 765px) {
    .sd-article-content h2 { font-size: 1.3rem; margin-top: 2em; }
}
.sd-article-content h2:first-child { margin-top: 0; }

.sd-article-content h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 2em;
    padding-left: .8em;
    border-left: 4px solid #5BA4A4;
    line-height: 1.5;
}
@media (max-width: 765px) {
    .sd-article-content h3 { font-size: 1.1rem; margin-top: 1.5em; }
}

.sd-article-content h4 { font-size: 1.1rem; font-weight: bold; margin-top: 1.5em; }
@media (max-width: 765px) { .sd-article-content h4 { font-size: 1rem; } }

.sd-article-content p { margin-top: 1.5em; }
.sd-article-content p:first-child { margin-top: 0; }

.sd-article-content strong, .sd-article-content b { font-weight: bold; }
.sd-article-content em { font-style: italic; }

.sd-article-content a { color: #5BA4A4; text-decoration: underline; transition: .3s; }
.sd-article-content a:hover { opacity: .7; }

.sd-article-content ul, .sd-article-content ol { margin-top: 1.5em; padding-left: 1.5em; }
.sd-article-content ul li, .sd-article-content ol li { margin-top: .5em; line-height: 1.8; }
.sd-article-content ul li:first-child, .sd-article-content ol li:first-child { margin-top: 0; }
.sd-article-content ul li { list-style: disc; }
.sd-article-content ol li { list-style: decimal; }

.sd-article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2em auto;
    border-radius: 10px;
}
.sd-article-content figure { margin: 2em 0; }
.sd-article-content figure img { margin: 0 auto; }
.sd-article-content figure figcaption { text-align: center; font-size: .8rem; color: #888; margin-top: .5em; }

.sd-article-content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    background: #f8f8f8;
    border-left: 4px solid #5BA4A4;
    border-radius: 0 10px 10px 0;
    font-size: .95rem;
}
@media (max-width: 765px) { .sd-article-content blockquote { padding: 1em 1.5em; } }
.sd-article-content blockquote p { margin-top: .5em; }
.sd-article-content blockquote p:first-child { margin-top: 0; }
.sd-article-content blockquote cite { display: block; margin-top: 1em; font-size: .8rem; color: #888; font-style: normal; }

.sd-article-content table { width: 100%; margin: 2em 0; border-collapse: collapse; font-size: .9rem; }
@media (max-width: 765px) {
    .sd-article-content table { font-size: .8rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.sd-article-content table th, .sd-article-content table td { padding: .8em 1em; border: 1px solid #e6e6e6; line-height: 1.6; }
.sd-article-content table th { background: #f5f5f5; font-weight: bold; text-align: left; }
.sd-article-content table tr:nth-child(even) td { background: #fafafa; }

.sd-article-content code { background: #f5f5f5; padding: .2em .4em; border-radius: 4px; font-size: .9em; font-family: "SFMono-Regular", Consolas, monospace; }
.sd-article-content pre { margin: 2em 0; padding: 1.5em; background: #2d2d2d; color: #f8f8f2; border-radius: 10px; overflow-x: auto; font-size: .85rem; line-height: 1.6; }
.sd-article-content pre code { background: none; padding: 0; color: inherit; }
.sd-article-content hr { margin: 3em 0; border: none; border-top: 1px solid #e6e6e6; }

/* ===================================
   関連記事
   =================================== */
.sd-related { margin-top: 4em; }
.sd-related__heading {
    font-size: 1.2rem;
    font-weight: bold;
    padding-bottom: .5em;
    border-bottom: 2px solid #262626;
    margin-bottom: 1.5em;
}
.sd-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2em;
}
@media (max-width: 765px) {
    .sd-related__grid { grid-template-columns: 1fr; }
}

/* ===================================
   サイドバー
   =================================== */
.sd-sidebar { position: relative; width: 28%; }
@media (min-width: 766px) {
    .sd-sidebar { position: sticky; top: 2em; align-self: flex-start; }
}
@media (max-width: 765px) { .sd-sidebar { width: 100%; } }

.sd-sidebar__heading {
    font-size: .9rem;
    font-weight: bold;
    padding-bottom: .5em;
    margin-bottom: 1em;
    border-bottom: 2px solid #262626;
}

.sd-sidebar__banner { margin-bottom: 2em; overflow: hidden; border-radius: 10px; }
.sd-sidebar__banner a { display: block; overflow: hidden; border-radius: 10px; }
.sd-sidebar__banner img { display: block; width: 100%; height: auto; border-radius: 10px; transition: transform .4s ease; }
.sd-sidebar__banner a:hover img { transform: scale(1.05); }

.sd-sidebar__categories {
    background: hsla(0,0%,100%,.8);
    border-radius: 15px;
    padding: 1.5em;
    margin-bottom: 2em;
}
.sd-sidebar__cat-list { list-style: none; }
.sd-sidebar__cat-list li { margin-top: .3em; }
.sd-sidebar__cat-list li:first-child { margin-top: 0; }
.sd-sidebar__cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5em 0;
    font-size: .85rem;
    color: #262626;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: .3s;
}
.sd-sidebar__cat-list li a:hover { color: #5BA4A4; }
.sd-sidebar__cat-list li.is-active a { color: #5BA4A4; font-weight: bold; }
.sd-sidebar__cat-list li .count {
    font-size: .7rem;
    color: #888;
    background: #f5f5f5;
    padding: .2em .6em;
    border-radius: 50px;
}

.sd-sidebar__works {
    background: hsla(0,0%,100%,.8);
    border-radius: 15px;
    padding: 1.5em;
    margin-bottom: 2em;
}
.sd-sidebar__works-list { list-style: none; }
.sd-sidebar__works-list li { margin-top: .8em; }
.sd-sidebar__works-list li:first-child { margin-top: 0; }
.sd-sidebar__works-list li a {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: .8em;
    align-items: center;
    text-decoration: none;
    color: #262626;
    transition: .3s;
}
.sd-sidebar__works-list li a:hover { opacity: .7; }
.sd-sidebar__works-img {
    width: 90px !important;
    height: auto !important;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.sd-sidebar__works-title {
    font-size: .8rem;
    font-weight: bold;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* サイドバーCTA */
.sd-sidebar .sd-sidebar-cta {
    background: #262626;
    color: #fff;
    border-radius: 15px;
    padding: 2em 1.5em;
    text-align: center;
}
.sd-sidebar .sd-sidebar-cta__label {
    font-family: "circe-rounded", sans-serif;
    font-size: .7em;
    letter-spacing: .2em;
    opacity: .6;
}
.sd-sidebar .sd-sidebar-cta__copy {
    margin-top: .8em;
    font-size: .9rem;
    font-weight: bold;
    line-height: 1.8;
}
.sd-sidebar .sd-sidebar-cta__btn { margin-top: 1.5em; }
.sd-sidebar .sd-sidebar-cta__btn a {
    background: #fff !important;
    color: #262626 !important;
    display: block;
    padding: .8em 2em;
    border-radius: 50px;
    font-weight: bold;
    font-size: .85em;
    text-decoration: none;
    transition: .3s;
}
.sd-sidebar .sd-sidebar-cta__btn a:hover { background: hsla(0,0%,100%,.8); }

/* ===================================
   アーカイブ: 空の状態
   =================================== */
.sd-archive__empty {
    text-align: center;
    padding: 4em 0;
    color: #888;
    font-size: .9rem;
}

/* ===================================
   トップページ: SERVICE DESIGN セクション
   =================================== */
.sd-top-section {
    margin-top: 3%;
}
.sd-top-section .bl_head_wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1em;
}
.sd-top-section .title_sec {
    font-weight: 600;
    font-size: 2rem;
    font-family: "circe-rounded", sans-serif;
    letter-spacing: .05em;
}
@media (max-width: 765px) {
    .sd-top-section .title_sec { font-size: 1.5rem; }
}
