@charset "utf-8";

.atom-top-indicator {
    position: fixed;
    right: 2%;
    bottom: 2%;
    z-index: 5;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}

.atom-top-indicator--visible {
    opacity: 1;
    pointer-events: auto;
}

/* ============
paper - publications Page
============ */
.section-publications .l-container {
    width: auto;
    height: auto;
    padding-inline: 0;
}

.publications__heading {
    margin-top: 48px;
    color: var(--electron-blue);
    font-family: "Roboto", sans-serif;
    text-align: center;
    font-size: 2rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 1px;
}

.publications__container {
    background: rgba(256, 256, 256, 0.7);
    margin: 0;
    margin-top: 24px;
    padding: 0 var(--contentPadding) 40px;
}

.breadcrumb ol {
    display: flex;
    justify-content: center;
    font-size: 0.86rem;
    margin-top: 32px;
    padding-top: 32px;
    color: var(--electron-blue);
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li+li::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 4px;
    background-image: url("../images/right.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* === タブ分け === */
.pub-tabs {
    width: var(--contentWidth);
    margin: 24px auto 32px;
}

.pub-tabs__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pub-tabs__item {
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    background: transparent;
}

.pub-tabs__link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    width: 100%;
    padding: 8px 12px;
    border-radius: 24px;
    border: 1px solid var(--electron-blue);
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--electron-blue);
    font-size: 0.94rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 24px;
    -webkit-tap-highlight-color: transparent;
}

.pub-tabs__link:hover {
    background-color: rgba(1, 91, 181, 0.06);
}

.pub-tabs__item--active .pub-tabs__link {
    background-color: var(--electron-blue);
    color: var(--spectral-white);
    border-radius: 24px;
    border-color: transparent;
}

/* 日本語ラベル・英語ラベル */
.pub-tabs__ja {
    font-size: 0.94rem;
    font-weight: 600;
}

.pub-tabs__en {
    font-size: 0.8rem;
    font-weight: 300;
    font-family: "Roboto", sans-serif;
    white-space: nowrap;
}

.pub-tabs__item--active {
    background-color: var(--electron-blue);
    color: var(--spectral-white);
    border-color: transparent;
    border-radius: 24px;
}

.pub-tabs__item:hover,
.pub-tabs__item:active {
    background-color: #E5EFFA;
    border-radius: 24px;
}

.pub-tabs__item--active:hover {
    background-color: var(--electron-blue);
}

.pub-tabs__item--active:hover {
    background-color: var(--electron-blue);
}

.pub-tabs__link--dropdown {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16%;
    justify-content: center;
    height: 100%;
}

/* ====▼ 受賞・講演グループ==== */
.pub-tabs__item--group {
    position: relative;
    height: 100%;
}

.pub-tabs__dropdown-group {
    position: relative;
    width: 100%;
    height: 100%;
}

.pub-tabs__label {
    display: flex;
    flex-direction: column;
}

/* ▼ドロップダウン caret */
.pub-tabs__caret {
    display: inline-block;
    margin-top: 2px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid currentColor;
    transition: transform .2s ease;
}

/* 開いたときに三角を反転させたい場合用 */
.pub-tabs__item--dropdown.open .pub-tabs__caret {
    transform: rotate(180deg);
}

/* ドロップダウン中身（とりあえず縦並び） */
.pub-tabs__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    /* 親ボタンのすぐ下に */
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 10;
}

/* hiddenついてるときは非表示 */
.pub-tabs__dropdown[hidden] {
    display: none;
}

/* ▼ ドロップダウンの各項目（四角いボタン） */
.pub-tabs__dropdown-item {
    display: block;
    width: 90%;
    margin: 0 auto;
    padding: 10px 12px;
    background: #fff;
    color: var(--electron-blue);
    text-align: center;
    border: 1px solid var(--electron-blue);
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
}

.pub-tabs__dropdown-item span {
    font-family: "Roboto", sans-serif;
    margin-left: 4%;
    font-size: 0.8rem;
    font-weight: 300;
}

/* ▼ 受賞・講演ボタンの中で、文字＆三角を横並び */
.pub-tabs__item--dropdown {
    justify-content: center;
}

.pub-tabs__item--dropdown .pub-tabs__content {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.pub-tabs__item--dropdown .pub-tabs__caret {
    margin-left: 6px;
}

.pub-tabs__item--dropdown:hover,
.pub-tabs__item--dropdown:active {
    background-color: #E5EFFA;
    border-radius: 24px;
}

.pub-tabs__dropdown-item:hover,
.pub-tabs__dropdown-item:active {
    background-color: #E5EFFA;
}

/* タブ　END */

.pub-list__item {
    position: relative;
    padding: 24px 0;
}

.pub-list__item::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--gray-low);
}

.pub-list__item:last-of-type:before {
    display: none;
}

.pub-item__date {
    width: fit-content;
    color: var(--photon-blue);
    font-family: "Roboto", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
}

.paper__link {
    width: 100%;
    text-decoration: none;
}

.paper__link h2 {
    color: var(--electron-blue);
    transition: color .2s ease;
}

.pub-item__title {
    font-size: 1.02rem;
    font-weight: 600;
    text-align: left;
    margin-top: 6px;
}

.paper__link h2:hover,
.paper__link h2:active,
.pub-item__titleBook:hover,
.pub-item__titleBook:active {
    color: #c6742d;
}

.pub-item__authors {
    font-size: 0.96rem;
    font-weight: 400;
    text-align: left;
    margin-top: 6px;
}

.pub-item__author-strong {
    font-weight: 500;
}

.pub-item__journal {
    font-size: 0.96rem;
    font-weight: 300;
    text-align: left;
    margin-top: 6px;
}


@media (min-width: 1024px) {
    .section-publications .l-container {
        max-width: none;
        margin-top: 0;
        padding-bottom: 0;
    }

    .publications__container {
        padding-bottom: 48px;
        margin: 48px auto 0;
    }

    .publications__heading {
        margin-top: 126px;
        font-size: 3rem;
    }

    .publications__container {
        margin-top: 48px;
        padding: 0 var(--contentPadding) 48px;
    }

    .breadcrumb ol {
        font-size: 0.96rem;
        margin-top: 48px;
        padding-top: 48px;
    }

    .breadcrumb li {
        display: flex;
        align-items: center;
    }

    .breadcrumb li+li::before {
        width: 24px;
        height: 24px;
        margin: 0 8px;
    }

    /* === タブ分け === */
    .pub-tabs {
        width: 100%;
        max-width: 1200px;
        margin: 48px auto 48px;
    }

    .pub-tabs__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px 24px;
    }

    .pub-tabs__link {
        gap: 4px;
    }

    .pub-tabs__ja {
        font-size: 1.1rem;
    }

    .pub-tabs__en {
        font-size: 0.9rem;
    }

    .pub-tabs__link--dropdown {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8%;
        justify-content: center;
    }

    .pub-tabs__label {
        display: flex;
        flex-direction: column;
    }

    .pub-tabs__caret {
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-top: 12px solid currentColor;
    }

    /* ドロップダウン中身（とりあえず縦並び） */
    .pub-tabs__dropdown {
        top: calc(100% + 4px);
        gap: 3px;
    }

    .pub-tabs__dropdown-item {
        width: 90%;
        margin: 0 auto;
        padding: 12px;
        border: 1px solid var(--electron-blue);
        background-color: rgba(255, 255, 255, 0.9);
        color: var(--electron-blue);
        font-size: 1.1rem;
        text-align: center;
        cursor: pointer;
    }


    /* タブ　END */
    .pub-list {
        max-width: 1440px;
        margin: 0 auto;
    }

    .pub-list__item {
        padding: 32px 0;
    }

    .pub-item__date {
        font-size: 1.2rem;
    }

    .pub-item__title {
        font-size: 1.1rem;
        margin-top: 8px;
    }

    .pub-item__authors {
        font-size: 1rem;
        margin-top: 8px;
    }

    .pub-item__journal {
        font-size: 1rem;
        margin-top: 8px;
    }
}

/* ============
Books - publications Page
============ */
.pub-list--books {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px 12px;
    list-style: none;
    padding-top: 0;
    padding-bottom: 32px;
    margin: 0;
}

.pub-list__itemBook {
    margin: 0 auto;
}

.pub-item--books {
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: start;
}

.books__link {
    max-width: 400px;
    width: 72%;
    margin: 0 auto;
}

.books__link img {
    display: block;
    height: auto;
    margin: 0 auto;
}

.pub-item--books .pub-item__date {
    margin: 6px auto 0px;
}

.pub-item__titleBook {
    font-size: 1.1rem;
}

.pub-description {
    font-size: 1rem;
}

.pub-item__description li {
    display: flex;
    align-items: center;
    margin-top: 16px;
}

.pub-description__title {
    flex: 0 0 82px;
    padding: 6px;
    text-align: center;
    background-color: var(--blue-light);
    margin-right: 10px;
    box-sizing: border-box;
}

.pub-description__value {
    flex: 1 1 auto;
    min-width: 0;
}

.pub-list__itemBook::before {
    bottom: -10px;
}


@media (min-width: 1024px) {
    .pub-list--books {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 64px auto 0;
    }

    .pub-list__itemBook::before {
        display: none;
    }

    .pub-item__titleBook {
        font-size: 1.1rem;
    }

    .pub-description {
        font-size: 1rem;
    }

    .pub-description__title {
        flex: 0 0 96px;
        padding: 6px 8px;
        margin-right: 12px;
    }
}

/* ============
Patents - publications Page
============ */
.pub-item--patent .pub-description__valueBlue {
    color: var(--photon-blue);
    font-weight: 700;
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
}

.pub-item__titlePatent {
    font-size: 1rem;
}

@media (min-width: 1024px) {
    .pub-item--patent .pub-description__valueBlue {
        font-size: 1rem;
    }

    .pub-item__titlePatent {
        font-size: 1.1rem;
    }

    .pub-item--patent .pub-item__description {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============
Awards&Talks - publications Page
============ */
/* Awards / Talks / Commentary へのページ内リンク用オフセット */
.panel-awardsTalks {
  scroll-margin-top: 80px; 
}

.pub-title {
    font-size: 1.4rem;
    margin: 60px auto 24px;
}

.pub-item--awards .pub-item__description {
    display: flex;
    align-items: center;
    margin-top: 16px;
}

.pub-item--awards .pub-description__title {
    line-height: normal;
    flex: 0 0 54px;
}

@media (min-width: 1024px) {
    .pub-title {
        font-size: 1.8rem;
    }

    .pub-item--awards .pub-description__title {
        flex: 0 0 96px;
        padding: 6px 8px;
        margin-right: 12px;
    }
}