/** 汎用スタイル **/

body {
    color: #666;
    line-height: 1.6rem;
}

.ls {
    letter-spacing: 0.2rem;
}

.bw-2 {
    border-width: 2px !important;
}

.bw-3 {
    border-width: 3px !important;
}


/** 見出し円 **/

.circle {
    width: 215px;
    height: 215px;
    text-align: center;
    border-radius: 50%;
    border: solid 3px #6c757d;
    padding: 3rem;
    margin: 0 auto;
}


/** 既存スタイルの疑似上書き **/


/** olカウンターを丸囲いに **/

ol.num-list {
    counter-reset: my-counter;
    list-style: none;
    padding: 0;
}

.num-list li {
    margin-bottom: 10px;
    position: relative;
    font-weight: bold;
    font-size: 1.2rem;
}

.num-list li:before {
    content: counter(my-counter);
    counter-increment: my-counter;
    border: 2px solid #666;
    color: #666;
    float: left;
    text-align: center;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    margin-right: 5px;
    margin-top: -2px;
    font-family: 'Big Shoulders Display', cursive;
}


/** jumbotronの背景に指定画像 **/

.jumbotron {
    background: url('../img/top-background.jpg') center no-repeat;
    background-size: cover;
    height: 100%;
    min-height: 500px;
}


/** パンくずリストのセパレータ変更 **/

li.breadcrumb-item.wf-breadcrumb-separator::before {
    margin-left: 6px;
    font-family: 'Font Awesome 5 Free';
    content: '\f105';
    font-weight: bold;
}


/** customized css **/


/** size-{単位}: 正方サイズ指定 **/

.wf-square-xs {
    width: 20px;
    height: 20px;
}

.wf-square-lg {
    width: 260px;
    height: 260px;
}


/** 傾けられた文字 **/

.wf-slope-text {
    transform: rotate(-4deg) translateY(-20px);
}


/** 正円＋テキスト **/

.wf-circle {
    transform: translateY(-50%);
}

.wf-circle>span {
    position: absolute;
    display: inline-block;
    font-size: 1.3rem;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    text-align: center;
}


/** 下側のみが突き出した五角形 **/

.wf-penta {
    clip-path: polygon(0% 0%, 100% 0%, 100% 70%, 50% 100%, 0% 70%);
}


/** 声のテキスト **/

.comment-box {
    position: relative;
    display: inline-block;
    padding: 2rem;
    font-size: 16px;
    background: #f8f9fa;
}


/** 下側のみが突き出した吹き出し **/

.down-balloon:after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: 20%;
    margin-left: -2.5rem;
    border: 5rem solid transparent;
    border-top: 3rem solid #f8f9fa;
    z-index: 999;
}

.down-balloon p {
    margin: 0;
    padding: 0;
}


/** 上側のみが突き出した吹き出し **/

.up-balloon:before {
    content: "";
    position: absolute;
    top: -130px;
    left: 20%;
    margin-left: -2.5rem;
    border: 5rem solid transparent;
    border-bottom: 3rem solid #f8f9fa;
    z-index: 999;
}

.up-balloon p {
    margin: 0;
    padding: 0;
}


/** 吹き出し **/

.wf-balloon {
    position: relative;
    padding: 20px;
    border: 2px solid rgba(75, 75, 75, 0.85);
    border-radius: 12px;
}

.wf-balloon-left::before,
.wf-balloon-left::after,
.wf-balloon-right::before,
.wf-balloon-right::after {
    content: '';
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    top: 50px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.wf-balloon-left::before {
    left: -15px;
    border-right: 15px solid rgba(75, 75, 75, 0.85);
}

.wf-balloon-left::after {
    left: -12px;
    border-right: 15px solid white;
}

.wf-balloon-right::before {
    right: -15px;
    border-left: 15px solid rgba(75, 75, 75, 0.85);
}

.wf-balloon-right::after {
    right: -12px;
    border-left: 15px solid white;
}


/** トップへ戻るボタン **/

.wf-gotta-top {
    width: 100px;
    height: 74px;
    right: 0;
    bottom: 0;
    background: #4f4f4f;
    opacity: 0.6;
}


/** ステップフロー **/

.step-bar {
    display: flex;
    position: relative;
    margin: 20px auto;
    text-align: center;
    padding: 0;
}

.step-bar li {
    font-size: 12px;
    list-style: none;
    position: relative;
    width: 33.333%;
}

.step-bar li:after {
    background: #D0E1F9;
    content: "";
    width: calc(100% - 50px);
    height: 5px;
    position: absolute;
    left: calc(-50% + 32px);
    top: 50px;
}

.step-bar li:first-child:after {
    display: none;
}

.step-bar li span {
    background: #D0E1F9;
    color: #ffffff;
    display: inline-block;
    margin-bottom: 5px;
    padding: 20px;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    z-index: 999;
}

.step-bar .visited:after {
    background: #4D648D;
}

.step-bar .visited span {
    background: #4D648D;
}


/* ADD */

.frame img {
    width: 100%;
}

.card-text {
    color: #6c757d
}

.main-img img {
    max-width: 100%;
}


/* ADD HEADER */

#header {
    display: flex;
    max-width: 1100px;
    margin: 0px auto;
    padding: 10px 0px;
    justify-content: space-between;
    align-items: center;
}

.head-left {
    display: flex;
    justify-content: space-between;
}

.head-left .logo {
    margin: 0px;
}

.head-left .logo img {
    width: 130px;
}

.head-left form {
    display: flex;
    border: 1px solid #dee1e3;
    border-radius: 3px;
    margin: auto 0px auto 5px;
}

.head-left input {
    border: none;
    width: 210px;
    font-size: 14px;
    padding: 5px 10px;
}

.head-left button {
    background-color: #fff;
    border: 0;
    border-left: 1px solid #dee1e3;
    padding: 5px 15px;
}

.head-left img {
    width: 17px;
    height: auto;
    vertical-align: text-bottom;
}

.head_right {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.head_right ul {
    display: flex;
}

.head_right .nav-rink li {
    padding: 5px;
    font-size: 14px;
    font-weight: 100;
    color: #73797e;
}


/* auth認証 */

.auth {
    margin-left: 0;
}

.auth ul li {
    display: block;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .header-title {
        font-size: 1em;
    }
    .sp_hidden {
        display: none !important;
    }
}

.head-btn_yellow {
    color: white;
    background-color: #f7c600;
    border-radius: 3px;
    text-align: center;
    padding: 0;
    margin: 0;
}

.head-btn_border {
    color: #f7c600;
    border-radius: 3px;
    border: 1px solid #f7c600;
    margin: 0;
    text-align: center;
}

.navbar-toggler {
    position: fixed;
    top: 20px;
    right: 20px;
}

/* Top page stabilization */

#head_right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

#head_right ul,
.nav-rink,
.auth ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#head_right .nav-rink li {
    padding: 5px;
    font-size: 14px;
    font-weight: 400;
    color: #73797e;
}

#head_right .auth ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

.head-btn_yellow,
.head-btn_border {
    min-width: 104px;
}

.head-btn_yellow a,
.head-btn_border a {
    display: block;
    padding: 6px 12px;
    text-decoration: none;
}

/* ナビバー「お題を投稿」ワンポイント */
.nav-item-post-cta .nav-link::before {
    content: "●";
    color: #dc3545;
    font-size: 0.6em;
    vertical-align: middle;
    margin-right: 4px;
}
.nav-item-post-cta .nav-link {
    font-weight: 600;
}

.head-btn_yellow a {
    color: #fff;
}

.head-btn_border a {
    color: #f7c600;
}

.card a {
    display: block;
    height: 100%;
}

.card-title {
    line-height: 1.4;
    min-height: 2.8em;
}

.frame {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frame img {
    max-height: 220px;
    object-fit: contain;
}

footer a i {
    font-size: 18px;
}

/* Top page tuning */

.top-home-section {
    padding-top: 1.9rem !important;
    padding-bottom: 1.6rem !important;
}

.top-home-container {
    max-width: 1080px;
}

.top-home-search .top-home-container {
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
}

.top-home-heading {
    max-width: 720px;
    margin-bottom: 0.9rem !important;
}

.top-home-filters .btn {
    margin-bottom: 6px;
}

.top-home-actions .btn {
    min-width: 116px;
}

.top-home-actions .btn + .btn {
    margin-left: 8px !important;
}

.top-item-card {
    border: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.top-item-card .card-body {
    border-radius: 6px;
}

.top-item-card .card-subtitle {
    font-size: 0.84rem;
}

.top-item-card .card-title {
    font-size: 1rem;
    min-height: 2.9em;
}

.top-item-frame {
    min-height: 150px;
}

/* Item detail page */

.item-detail-section {
    padding-top: 2.2rem !important;
    padding-bottom: 2.4rem !important;
    background: linear-gradient(180deg, #fff8f4 0%, #ffffff 18%, #f8fbff 100%);
}

.item-detail-container {
    max-width: 1080px;
}

.item-detail-head {
    padding: 1.4rem 1.5rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #fff7f1 100%);
    box-shadow: 0 14px 34px rgba(39, 61, 95, 0.08);
    border: 1px solid rgba(255, 140, 66, 0.14);
}

.item-detail-title {
    font-size: 2rem;
    line-height: 1.35;
    margin-bottom: 0.6rem;
    color: #2d3748;
}

.item-detail-meta {
    color: #6c757d;
    font-size: 0.94rem;
    line-height: 1.8;
}

.item-detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.6rem;
}

.item-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.item-meta-pill-type {
    background: #eef6ff;
    color: #1f5fa6;
}

.item-meta-pill-status {
    background: #fff1e8;
    color: #b55418;
}

.item-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.item-detail-visual,
.item-detail-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.item-main-img {
    border: 1px solid #f1d8c9;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-shadow: 0 14px 32px rgba(49, 64, 91, 0.08);
}

.item-main-img img {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.item-sub-imgs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.item-sub-img-block {
    min-height: 96px;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 10px 20px rgba(49, 64, 91, 0.05);
}

.item-sub-img-block img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.item-sub-placeholder {
    color: #999;
    font-size: 0.85rem;
}

.item-info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(49, 64, 91, 0.08);
}

.item-info-table th,
.item-info-table td {
    border: 0;
    border-bottom: 1px solid #edf1f5;
    padding: 14px 14px;
    vertical-align: top;
}

.item-info-table th {
    width: 110px;
    background: #f7f9fc;
    color: #445066;
    font-weight: 700;
}

.item-info-table tr:last-child th,
.item-info-table tr:last-child td {
    border-bottom: none;
}

.item-detail-text h4 {
    font-size: 1.12rem;
    margin-bottom: 10px;
    color: #25324a;
}

.item-detail-text p {
    margin-bottom: 0;
    line-height: 1.88;
}

.item-detail-text {
    padding: 1.15rem 1.2rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #edf1f5;
    box-shadow: 0 12px 28px rgba(49, 64, 91, 0.06);
}

.item-adopted-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #eefaf2 0%, #ffffff 100%);
    border: 1px solid #cfe9d5;
    box-shadow: 0 10px 24px rgba(62, 140, 82, 0.08);
}

.item-adopted-name {
    font-size: 1.05rem;
    color: #25633a;
}

.item-leading-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff9ed 0%, #ffffff 100%);
    border: 1px solid #f3d8b0;
    box-shadow: 0 10px 24px rgba(181, 119, 37, 0.08);
}

.item-leading-name {
    font-size: 1rem;
    color: #7f4a12;
}

.item-leading-vote {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff1dc;
    color: #a05c16;
    font-size: 0.78rem;
    font-weight: 700;
}

.item-external-link {
    color: #0056b3;
    font-weight: 600;
    text-decoration: underline;
}

.item-external-link:hover {
    color: #003f84;
}

.item-panel {
    border: 1px solid #edf1f5;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(49, 64, 91, 0.06);
}

.item-panel h4 {
    font-size: 1.12rem;
    margin-bottom: 12px;
    color: #25324a;
}

.item-panel-sub h5 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.item-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.item-action-col {
    border: 1px solid #e8edf5;
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.item-action-col h5 {
    font-size: 0.92rem;
    margin-bottom: 10px;
    color: #445066;
}

.item-action-col .btn,
.item-candidate-action .btn,
.item-panel-sub .btn {
    border-radius: 999px;
    font-weight: 700;
}

.item-candidate-card {
    border: 1px solid #e9eef6;
    border-left: 4px solid #ff8c42;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
    box-shadow: 0 8px 18px rgba(49, 64, 91, 0.05);
}

.item-candidate-card h5 {
    font-size: 1.04rem;
    margin-bottom: 6px;
    color: #27344d;
}

.item-candidate-card p {
    margin-bottom: 8px;
    line-height: 1.72;
}

.item-candidate-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.item-vote-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: #004085;
    font-size: 0.8rem;
    font-weight: 700;
}

.item-candidate-date {
    color: #777;
    font-size: 0.8rem;
}

.item-notice {
    padding: 12px 14px;
    border-radius: 10px;
    background: #f7f7f7;
    color: #555;
}

.item-notice-warn {
    background: #fff8e6;
    color: #7a5c00;
}

.item-candidate-login-note {
    color: #6f6f6f;
    font-size: 0.86rem;
}

.item-inline-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1f5fa6;
    background: #eef6ff;
    border: 1px solid #cfe2ff;
}

.item-inline-hint i {
    font-size: 0.78rem;
}

.item-inline-hint-muted {
    color: #6b778d;
    background: #f4f6f9;
    border-color: #e2e7ef;
}

.item-comment-reaction-hint {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.item-reaction-count {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.76rem;
    color: #586074;
    background: #f2f5fa;
}

.item-inline-form .form-control {
    font-size: 0.9rem;
}

.item-comment-card {
    border: 1px solid #e9eef6;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(49, 64, 91, 0.05);
}

.item-comment-head {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #2b3952;
}

.item-comment-reaction .btn {
    border-radius: 999px;
    font-weight: 700;
    min-width: 74px;
}

.item-comment-head span {
    font-weight: 400;
    color: #777;
    font-size: 0.82rem;
    margin-left: 6px;
}

.item-comment-body {
    margin-bottom: 8px;
    line-height: 1.68;
}

.item-replies summary {
    cursor: pointer;
    color: #0056b3;
    font-size: 0.86rem;
    margin-bottom: 6px;
}

.item-replies-body {
    border-left: 3px solid #d8e6f7;
    padding-left: 12px;
}

.item-comment-reply {
    margin-bottom: 8px;
}

@media screen and (max-width: 768px) {
    .top-home-section {
        padding-top: 1.1rem !important;
        padding-bottom: 1rem !important;
    }

    .top-home-search .top-home-container {
        padding-top: 0.3rem !important;
        padding-bottom: 0.5rem !important;
    }

    .top-home-heading {
        margin-bottom: 0.6rem !important;
    }

    .top-home-actions .btn {
        margin-top: 6px;
    }

    .top-home-actions .btn + .btn {
        margin-left: 0 !important;
    }

    .top-item-card .card-body {
        padding: 0.9rem !important;
    }

    .top-item-frame {
        min-height: 132px;
    }

    .item-detail-section {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .item-detail-head {
        padding: 1rem;
        border-radius: 14px;
    }

    .item-detail-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .item-detail-title {
        font-size: 1.45rem;
    }

    .item-main-img {
        min-height: 220px;
    }

    .item-sub-imgs {
        grid-template-columns: repeat(2, 1fr);
    }

    .item-info-table th {
        width: 90px;
    }

    .item-candidate-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .item-action-row {
        grid-template-columns: 1fr;
    }

    .item-panel,
    .item-detail-text {
        padding: 0.95rem;
    }
}

@media screen and (max-width: 768px) {
    #header {
        display: block;
        padding-right: 54px;
    }

    .head-left {
        justify-content: flex-start;
    }

    .head-left .logo img {
        width: 110px;
    }

    .navbar-toggler {
        top: 12px;
        right: 12px;
        z-index: 1000;
    }
}

/* ======== column pages ======== */

#column-inner {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 20px;
}

.top-image {
    margin-bottom: 40px;
}

.top-image img {
    margin: 0 auto;
    display: block;
    max-width: 630px;
}

.news-blog {
    background-color: #fff;
    margin: 0 auto 20px;
    padding: 20px 0 50px;
}

.news-blog h1 {
    border-bottom: 1px solid #c4c4c4;
    margin-bottom: 6px;
    padding: 0 5px 6px;
    font-size: 1.7rem;
}

.news-blog .content {
    max-width: 700px;
    margin: 0 auto;
}

.news-blog .content a {
    color: #1a59b7;
}

.news-blog .content label {
    background: linear-gradient(transparent 75%, #f7c600 25%);
    padding-top: 0.5em;
    padding-bottom: 0.2em;
}

.news-blog .category-list {
    color: #fff;
    display: flex;
    margin-bottom: 25px;
}

.category-list p {
    border-radius: 20px;
    padding: 0 11px;
    margin: 0 5px;
    font-size: 10px;
    letter-spacing: 1px;
}

.category-list p:nth-child(3n+1) {
    background-color: #e65d64;
}

.category-list p:nth-child(3n+2) {
    background-color: #00818a;
}

.category-list p:nth-child(3n) {
    background-color: #f7c600;
}

.news-blog p {
    margin: 0 5px;
    font-size: 14px;
    line-height: 2;
    letter-spacing: 0.5px;
}

.col-index {
    margin: 10px 0 30px;
    border-radius: 3px;
    background-color: #f2f2f2;
}

.col-index div {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    background-color: #00818a;
    color: #fff;
    font-weight: 600;
}

.col-index div::before {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 5px;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23fff%22%3E%3Cpath%20d%3D%22M3.8%2017.2h-3c-.5%200-.8.4-.8.8v3c0%20.4.3.8.8.8h3c.4%200%20.8-.3.8-.8v-3c-.1-.4-.4-.8-.8-.8zm0-15h-3c-.5%200-.8.4-.8.8v3c0%20.4.3.8.8.8h3c.4%200%20.8-.3.8-.8V3c-.1-.4-.4-.8-.8-.8zm0%207.6h-3c-.5%200-.8.3-.8.7v3c0%20.4.3.8.8.8h3c.4%200%20.8-.3.8-.8v-3c-.1-.4-.4-.7-.8-.7zM23.2%2018h-15c-.4%200-.8.3-.8.8v1.5c0%20.4.3.8.8.8h15c.4%200%20.8-.3.8-.8v-1.5c0-.5-.3-.8-.8-.8zm0-15h-15c-.4%200-.7.3-.7.8v1.5c0%20.4.3.7.7.7h15c.5%200%20.8-.3.8-.8V3.8c0-.5-.3-.8-.8-.8zm0%207.5h-15c-.4%200-.8.3-.8.8v1.5c0%20.4.3.8.8.8h15c.4%200%20.8-.3.8-.8v-1.5c0-.5-.3-.8-.8-.8z%22%2F%3E%3C%2Fsvg%3E');
    content: '';
}

.col-index ol {
    list-style-type: disc;
    margin: 0;
    overflow: hidden;
    padding: 0.3em 2.5em;
}

.col-index li {
    padding: 5px 0;
    font-weight: 600;
}

.col-index a {
    color: #333;
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .news-blog {
        padding: 20px 0 28px;
    }

    .news-blog h1 {
        font-size: 1.35rem;
    }

    .news-blog p {
        font-size: 13px;
    }

    .col-index ol {
        padding: 0.3em 1.7em;
    }
}