/*
 * Newscom Writer Profiles
 * v1.8.3 - Site-native / technical micro-interaction design
 *
 * 方針：
 * - 既存テーマのfont-familyを継承
 * - 白・濃いグレー・細い罫線をベースにNewscom系ライトブルーを控えめに使用
 * - 技術力は派手な装飾ではなく、精密な余白・レイヤー・ホバー・モーションで表現
 */

:root {
    --nc-writer-text: #545251;
    --nc-writer-text-strong: #4c4948;
    --nc-writer-text-soft: #545251;
    --nc-writer-muted: #9a9a9a;
    --nc-writer-line: #e2e2e2;
    --nc-writer-line-strong: #c4c4c4;
    --nc-writer-soft: rgba(94, 183, 232, .07);
    --nc-writer-soft-strong: rgba(94, 183, 232, .12);
    --nc-writer-card: #ffffff;
    --nc-writer-accent: #5eb7e8;
    --nc-writer-accent-dark: #4b9eff;
    --nc-writer-link-hover: #4c4948;
    --nc-writer-shadow: 0 16px 38px rgba(76, 73, 72, .09);
    --nc-writer-ease: cubic-bezier(.22, 1, .36, 1);
}

.nc-writer-page,
.nc-article-writer {
    color: var(--nc-writer-text);
    font-family: inherit;
}

.nc-writer-page {
    padding-right: 0;
    padding-bottom: clamp(80px, 9vw, 128px);
    padding-left: 0;
}

.nc-writer-content {
    padding: 24px 24px 0;
}

.nc-writer-page__inner {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.nc-writer-page:not(.nc-writer-archive) .nc-writer-page__inner {
    width: min(100%, 1120px);
}

/* Theme-native lower-page hero ------------------------------------------- */
.nc-writer-mv {
    z-index: 1;
}

.nc-writer-mv .mv_child_heading {
    margin: 0;
}

.nc-writer-mv .mv_child_heading .jp,
.nc-writer-mv .mv_child_heading .en {
    text-shadow: 0 1px 10px rgba(0, 0, 0, .06);
}

/* Breadcrumb -------------------------------------------------------------- */
.nc-writer-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 clamp(36px, 5vw, 56px);
    color: var(--nc-writer-muted);
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: .02em;
}

.nc-writer-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease;
}

.nc-writer-breadcrumb a:hover {
    color: var(--nc-writer-accent-dark);
}

.nc-writer-breadcrumb a:focus-visible,
.nc-writer-column__title a:focus-visible,
.nc-writer-card__link:focus-visible,
.nc-article-writer__name:focus-visible,
.nc-writer-profile__text a:focus-visible {
    outline: 2px solid var(--nc-writer-accent-dark);
    outline-offset: 4px;
}

/* Page heading ------------------------------------------------------------ */
.nc-writer-header {
    position: relative;
    margin-bottom: clamp(52px, 7vw, 82px);
    padding-left: 22px;
    animation: nc-writer-heading-in .74s var(--nc-writer-ease) both;
}

.nc-writer-header::before {
    position: absolute;
    top: 2px;
    bottom: 4px;
    left: 0;
    width: 3px;
    background: linear-gradient(
        180deg,
        var(--nc-writer-accent),
        var(--nc-writer-accent-dark)
    );
    content: "";
    transform: scaleY(0);
    transform-origin: top;
    animation: nc-writer-line-in .68s .16s var(--nc-writer-ease) forwards;
}

.nc-writer-header__eyebrow {
    margin: 0 0 10px;
    color: var(--nc-writer-accent);
    font-family: "Oswald", sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: .08em;
}

.nc-writer-header__title {
    margin: 0;
    color: var(--nc-writer-text-strong);
    font-size: clamp(30px, 3.8vw, 43px);
    font-weight: 600;
    line-height: 1.51;
    letter-spacing: .06em;
}

.nc-writer-archive__header .nc-writer-header__title {
    letter-spacing: .15em;
}

/* Shared section heading -------------------------------------------------- */
.nc-writer-profile,
.nc-writer-columns {
    padding-top: clamp(30px, 4vw, 44px);
    border-top: 1px solid var(--nc-writer-text);
}

.nc-writer-profile {
    animation: nc-writer-section-in .74s .12s var(--nc-writer-ease) both;
}

.nc-writer-columns {
    margin-top: clamp(64px, 8vw, 96px);
    animation: nc-writer-section-in .74s .22s var(--nc-writer-ease) both;
}

.nc-writer-section-title {
    margin: 0 0 clamp(24px, 3vw, 34px);
    color: var(--nc-writer-text-strong);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -.02em;
}

/* Profile panel ----------------------------------------------------------- */
.nc-writer-profile__list,
.nc-article-writer__list {
    margin: 0;
}

.nc-writer-profile__list {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--nc-writer-line);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(94,183,232,.045), transparent 32%),
        var(--nc-writer-card);
    box-shadow: 0 8px 28px rgba(25, 58, 65, .045);
}

.nc-writer-profile__list::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--nc-writer-accent-dark),
        var(--nc-writer-accent),
        rgba(94,183,232,0)
    );
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    animation: nc-writer-scan-in 1s .26s var(--nc-writer-ease) forwards;
}

.nc-writer-profile__row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 36px;
    padding: 23px 26px;
    border-bottom: 1px solid var(--nc-writer-line);
    transition: background .28s ease;
    animation: nc-writer-row-in .64s var(--nc-writer-ease) both;
}

.nc-writer-profile__row:nth-child(1) { animation-delay: .16s; }
.nc-writer-profile__row:nth-child(2) { animation-delay: .23s; }
.nc-writer-profile__row:nth-child(3) { animation-delay: .30s; }
.nc-writer-profile__row:nth-child(4) { animation-delay: .37s; }
.nc-writer-profile__row:nth-child(5) { animation-delay: .44s; }
.nc-writer-profile__row:nth-child(6) { animation-delay: .51s; }

.nc-writer-profile__row:last-child {
    border-bottom: 0;
}

.nc-writer-profile__row:hover {
    background: rgba(94,183,232,.045);
}

.nc-writer-profile__row dt,
.nc-article-writer__row dt {
    color: var(--nc-writer-text-soft);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
}

.nc-writer-profile__row dd,
.nc-article-writer__row dd {
    min-width: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
}

.nc-writer-profile__text p,
.nc-article-writer__profile p {
    margin: 0 0 .85em;
}

.nc-writer-profile__text p:last-child,
.nc-article-writer__profile p:last-child {
    margin-bottom: 0;
}

.nc-writer-profile__text a,
.nc-article-writer__profile a {
    color: var(--nc-writer-accent-dark);
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* Expertise labels -------------------------------------------------------- */
.nc-writer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nc-writer-tags li {
    margin: 0;
    padding: 7px 11px;
    border: 1px solid rgba(94,183,232,.34);
    border-radius: 4px;
    background: var(--nc-writer-soft-strong);
    color: #545251;
    font-size: 13px;
    line-height: 1.45;
    transition:
        background .28s ease,
        border-color .28s ease,
        color .28s ease,
        transform .28s var(--nc-writer-ease),
        box-shadow .28s ease;
}

.nc-writer-tags li:hover {
    border-color: rgba(94,183,232,.62);
    background: rgba(94,183,232,.20);
    color: #4c4948;
    box-shadow: 0 5px 14px rgba(94,183,232,.12);
    transform: translateY(-1px);
}

/* Assigned columns -------------------------------------------------------- */
.nc-writer-columns__list {
    border-top: 1px solid var(--nc-writer-line);
}

.nc-writer-column {
    position: relative;
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    padding: 23px 8px;
    border-bottom: 1px solid var(--nc-writer-line);
    transition: background .25s ease, padding .25s var(--nc-writer-ease);
}

.nc-writer-column::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: var(--nc-writer-accent);
    content: "";
    opacity: 0;
    transform: scaleY(.3);
    transition:
        opacity .25s ease,
        transform .3s var(--nc-writer-ease);
}

.nc-writer-column:hover {
    padding-right: 14px;
    padding-left: 14px;
    background: rgba(94,183,232,.035);
}

.nc-writer-column:hover::before {
    opacity: 1;
    transform: scaleY(1);
}

.nc-writer-column__date {
    color: var(--nc-writer-muted);
    font-size: 13px;
    line-height: 1.8;
    letter-spacing: .04em;
}

.nc-writer-column__title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.75;
}

.nc-writer-column__title a {
    position: relative;
    display: inline;
    color: var(--nc-writer-text);
    opacity: 1;
    text-decoration: none;
    background-image: linear-gradient(
        90deg,
        var(--nc-writer-accent),
        var(--nc-writer-accent)
    );
    background-repeat: no-repeat;
    background-position: left calc(100% - 1px);
    background-size: 0% 1px;
    transition:
        color .28s ease,
        background-size .45s var(--nc-writer-ease);
}

.nc-writer-column__title a:hover,
.nc-writer-column__title a:focus-visible {
    color: var(--nc-writer-link-hover);
    opacity: 1;
    background-size: 100% 1px;
    transition:
        color .28s ease,
        background-size .45s var(--nc-writer-ease);
}

.nc-writer-column__title a:not(:hover):not(:focus-visible) {
    transition:
        color .28s ease,
        background-size .32s ease-out;
}

.nc-writer-column:hover .nc-writer-column__title a {
    color: var(--nc-writer-link-hover);
}

.nc-writer-column__arrow,
.nc-writer-card__arrow,
.nc-article-writer__arrow {
    display: inline-block;
    margin-left: 7px;
    transition: transform .3s var(--nc-writer-ease);
}

.nc-writer-column__title a:hover .nc-writer-column__arrow,
.nc-article-writer__name:hover .nc-article-writer__arrow {
    transform: translateX(5px);
}

.nc-writer-column__status {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    border: 1px solid #c9ced1;
    border-radius: 3px;
    color: var(--nc-writer-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    vertical-align: middle;
}

.nc-writer-columns__empty {
    margin: 0;
    color: var(--nc-writer-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* Pagination -------------------------------------------------------------- */
.nc-writer-pagination {
    margin-top: 42px;
}

.nc-writer-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nc-writer-pagination li {
    margin: 0;
}

.nc-writer-pagination a,
.nc-writer-pagination .current {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #d5d9db;
    border-radius: 4px;
    color: inherit;
    font-size: 13px;
    text-decoration: none;
    transition:
        border-color .25s ease,
        color .25s ease,
        background .25s ease,
        transform .25s var(--nc-writer-ease);
}

.nc-writer-pagination .current {
    border-color: var(--nc-writer-text);
    background: var(--nc-writer-text);
    color: #fff;
}

.nc-writer-pagination a:hover {
    border-color: var(--nc-writer-accent-dark);
    background: var(--nc-writer-soft);
    color: var(--nc-writer-accent-dark);
    transform: translateY(-1px);
}

/* Staff archive ----------------------------------------------------------- */
.nc-writer-archive__header {
    max-width: 780px;
}

.nc-writer-archive__lead {
    max-width: 720px;
    margin: 0 0 clamp(34px, 5vw, 54px);
    color: #555;
    font-size: 16px;
    line-height: 2;
}

.nc-writer-archive__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.nc-writer-card {
    position: relative;
    min-width: 0;
    margin: 0;
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(.985);
    animation: nc-writer-card-in .68s var(--nc-writer-ease) forwards;
    animation-delay: calc(var(--nc-writer-index, 0) * 95ms + 120ms);
}

.nc-writer-card__link {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: clamp(26px, 3vw, 34px);
    overflow: hidden;
    border: 1px solid var(--nc-writer-line);
    border-radius: 10px;
    background:
        linear-gradient(
            145deg,
            rgba(94,183,232,.045) 0%,
            rgba(255,255,255,0) 38%
        ),
        var(--nc-writer-card);
    box-shadow: 0 8px 24px rgba(25, 58, 65, .035);
    color: inherit;
    text-decoration: none;
    transform: translateZ(0);
    transition:
        transform .38s var(--nc-writer-ease),
        border-color .32s ease,
        background .32s ease,
        box-shadow .38s ease;
}

.nc-writer-card__link::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--nc-writer-accent-dark),
        var(--nc-writer-accent),
        rgba(94,183,232,0)
    );
    content: "";
    transform: scaleX(.14);
    transform-origin: left;
    transition: transform .42s var(--nc-writer-ease);
}

.nc-writer-card__link::after {
    position: absolute;
    right: -38px;
    bottom: -54px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(94,183,232,.16);
    border-radius: 50%;
    content: "";
    opacity: .45;
    transform: scale(.85);
    transition:
        opacity .35s ease,
        transform .5s var(--nc-writer-ease);
    pointer-events: none;
}

.nc-writer-card__link:hover {
    border-color: rgba(94,183,232,.52);
    background:
        linear-gradient(
            145deg,
            rgba(94,183,232,.105) 0%,
            rgba(255,255,255,0) 52%
        ),
        #fff;
    box-shadow: var(--nc-writer-shadow);
    transform: translateY(-5px);
}

.nc-writer-card__link:hover::before {
    transform: scaleX(1);
}

.nc-writer-card__link:hover::after {
    opacity: .8;
    transform: scale(1);
}

.nc-writer-card__body {
    position: relative;
    z-index: 1;
    flex: 1;
}

.nc-writer-card__name {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    margin: 0;
    color: var(--nc-writer-text-strong);
    font-size: clamp(23px, 2.15vw, 30px);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: .025em;
    text-decoration: none;
}

.nc-writer-card__name-text {
    color: var(--nc-writer-text-strong);
    text-decoration: none;
}

.nc-writer-card__name-arrow {
    display: inline-block;
    color: var(--nc-writer-accent-dark);
    text-decoration: none;
    transform: translateX(0);
    transition: transform .3s var(--nc-writer-ease);
}

.nc-writer-card__link:hover .nc-writer-card__name-arrow {
    transform: translateX(5px);
}

.nc-writer-card__meta {
    margin: 12px 0 0;
    color: var(--nc-writer-muted);
    font-size: 14px;
    line-height: 1.75;
}

/* Article writer block ---------------------------------------------------- */
.nc-article-writer {
    padding: 0 24px clamp(72px, 8vw, 104px);
}

.nc-article-writer__inner {
    width: min(100%, 1000px);
    margin: 0 auto;
    padding: clamp(34px, 4vw, 46px) 0 0;
    border-top: 1px solid var(--nc-writer-text);
}

.nc-article-writer__heading {
    position: relative;
    margin: 0 0 28px;
    padding-left: 16px;
    font-size: clamp(21px, 2.7vw, 27px);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .02em;
}

.nc-article-writer__heading::before {
    position: absolute;
    top: .3em;
    bottom: .3em;
    left: 0;
    width: 3px;
    background: linear-gradient(
        180deg,
        var(--nc-writer-accent),
        var(--nc-writer-accent-dark)
    );
    content: "";
}

.nc-article-writer__list {
    overflow: hidden;
    border: 1px solid var(--nc-writer-line);
    border-radius: 9px;
    background:
        linear-gradient(135deg, rgba(94,183,232,.035), transparent 36%),
        #fff;
}

.nc-article-writer__row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 30px;
    padding: 12px 22px;
    border-bottom: 1px solid var(--nc-writer-line);
    transition: background .25s ease;
}

.nc-article-writer__row:last-child {
    border-bottom: 0;
}

.nc-article-writer__row:hover {
    background: rgba(94,183,232,.04);
}

.nc-article-writer__name {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    color: var(--nc-writer-accent-dark);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

/* Motion ------------------------------------------------------------------ */
@keyframes nc-writer-card-in {
    from {
        opacity: 0;
        transform: translate3d(0, 22px, 0) scale(.985);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes nc-writer-heading-in {
    from {
        opacity: 0;
        transform: translate3d(0, 16px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes nc-writer-section-in {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes nc-writer-row-in {
    from {
        opacity: 0;
        transform: translate3d(12px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes nc-writer-line-in {
    to {
        transform: scaleY(1);
    }
}

@keyframes nc-writer-scan-in {
    to {
        transform: scaleX(1);
    }
}


@media (min-width: 768px) {
    .nc-writer-breadcrumb {
        font-size: 14px;
    }

    .nc-writer-header__eyebrow {
        font-size: 22px;
    }

    .nc-writer-section-title {
        font-size: clamp(25px, 2.7vw, 32px);
    }
}

/* Tablet ------------------------------------------------------------------ */
@media (max-width: 1023px) {
    .nc-writer-archive__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .nc-writer-card__name {
        font-size: clamp(22px, 3vw, 27px);
    }
}

/* Mobile ------------------------------------------------------------------ */
@media (max-width: 767px) {
    .nc-writer-page {
        padding-right: 0;
        padding-bottom: 72px;
        padding-left: 0;
    }

    .nc-writer-content {
        padding: 20px 20px 0;
    }

    .nc-writer-breadcrumb {
        margin-bottom: 38px;
        font-size: 11px;
    }

    .nc-writer-header {
        margin-bottom: 48px;
        padding-left: 16px;
    }

    .nc-writer-header__title {
        font-size: 30px;
    }

    .nc-writer-profile,
    .nc-writer-columns {
        padding-top: 28px;
    }

    .nc-writer-columns {
        margin-top: 58px;
    }

    .nc-writer-profile__row,
    .nc-article-writer__row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .nc-writer-profile__row {
        padding: 18px;
    }

    .nc-article-writer__row {
        padding: 12px 18px;
    }

    .nc-writer-profile__row dt,
    .nc-article-writer__row dt {
        font-size: 12px;
    }

    .nc-writer-profile__row dd,
    .nc-article-writer__row dd {
        font-size: 14px;
        line-height: 1.85;
    }

    .nc-writer-column {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 18px 6px;
    }

    .nc-writer-column:hover {
        padding-right: 10px;
        padding-left: 10px;
    }

    .nc-writer-archive__list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .nc-writer-card__link {
        padding: 22px 24px;
        border-radius: 8px;
    }

    .nc-writer-card__name {
        font-size: 23px;
    }

    .nc-writer-card__meta {
        font-size: 13px;
    }

    .nc-writer-archive__lead {
        font-size: 14px;
        line-height: 1.9;
    }

    .nc-article-writer {
        padding: 0 20px 64px;
    }

    .nc-article-writer__inner {
        padding-top: 30px;
    }
}

/* Accessibility: respect reduced motion ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .nc-writer-header,
    .nc-writer-profile,
    .nc-writer-columns,
    .nc-writer-profile__row,
    .nc-writer-card,
    .nc-writer-header::before,
    .nc-writer-profile__list::before {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .nc-writer-breadcrumb a,
    .nc-writer-column,
    .nc-writer-column::before,
    .nc-writer-column__title a,
    .nc-writer-column__arrow,
    .nc-writer-card__link,
    .nc-writer-card__link::before,
    .nc-writer-card__link::after,
    .nc-writer-card__name-arrow,
    .nc-writer-tags li,
    .nc-article-writer__row,
    .nc-article-writer__arrow,
    .nc-writer-pagination a {
        transition: none;
    }
}


/* Article writer: compact expandable profile/expertise -------------------- */
.nc-article-writer__collapse {
    position: relative;
}

.nc-writer-js .nc-article-writer__collapse.is-collapsible {
    overflow: hidden;
    max-height: var(--nc-collapse-height);
    transition:
        max-height .42s var(--nc-writer-ease);
}

.nc-writer-js .nc-article-writer__collapse.is-collapsible.is-expanded {
    max-height: var(--nc-expand-height);
}

.nc-article-writer__toggle {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin: 9px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--nc-writer-accent-dark);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: .02em;
    transition: color .25s ease;
}

.nc-article-writer__toggle[hidden] {
    display: none;
}

.nc-article-writer__toggle:hover,
.nc-article-writer__toggle:focus-visible {
    color: var(--nc-writer-text-strong);
}

.nc-article-writer__toggle:focus-visible {
    outline: 2px solid var(--nc-writer-accent);
    outline-offset: 4px;
}

.nc-article-writer__toggle-icon {
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    transform: translateY(-1px);
    transition: transform .32s var(--nc-writer-ease);
}

.nc-article-writer__toggle[aria-expanded="true"]
.nc-article-writer__toggle-icon {
    transform: translateY(1px) rotate(180deg);
}

.nc-article-writer__collapse--expertise .nc-writer-tags {
    align-content: flex-start;
}

@media (prefers-reduced-motion: reduce) {
    .nc-writer-js .nc-article-writer__collapse.is-collapsible,
    .nc-article-writer__toggle-icon {
        transition: none;
    }
}
