@charset "UTF-8";

*,
*:after,
*:before {
    -webkit-box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    box-sizing: border-box;
    outline: none
}

body {
    color: rgb(34, 34, 34);
    cursor: auto;
    font-family: "Lucida Grande", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, メイリオ, sans-serif !important;
    font-style: normal;
    font-weight: 300;
    line-height: 1.5;
    font-size: 15px;
    margin: 0;
}
button,input,select,textarea {
    font-family: inherit;
    font-style: inherit;
    font-weight: 500;
}
body a:hover{
    opacity: 0.6 !important;
}

/* ===== 記事ページ用ベーススタイル ===== */
header {
    background-color: #36987A;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
}
header img {
    height: 28px;
    width: auto;
    display: block;
}
@media (min-width: 768px) {
    header img {
        height: 40px;
    }
}
header .logo{
	height: 22px;
	background-size: 100px auto;
    display: inline-block;
    width: 100px;
    background-repeat: no-repeat;
    display: none;
}
.topbar {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.brand {
    font-weight: 800;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
}
.badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}
footer{
	background-color: #fff;
	box-sizing: border-box;
   color: #666;
   padding: 10px;
    text-align: center;
    font-family: 'Noto Sans JP';
}
.top{
	text-decoration: none;
    color: #eee;
    font-size: 1.5em;
}
main{
	box-sizing: border-box;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    background: #fff;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    margin-top: 24px;
}
.back{
    display: inline-block;
    padding: 0px 28px 0 0;
    margin-right: 30px;
    color: #fff;
    text-decoration: none;
}
.lists a{
	text-decoration: none;
    color: #444;
    text-align: left;
	display: table;
    width: 100%;
}
.lists a+a{
	border-top: solid 1px #ccc;
	margin-top: 7px;
}
.lists a>div{
	display: table-cell;
    vertical-align: top;
}
.lists a .imgs{
	width: 100px;
	background: #fff;
}
.lists a .imgs .cut{
	display: block;
    background: #eee;
    margin: 10px;
    margin-top: 5px;
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    font-size: 60px;
    text-align: center;
}
.lists a .imgs .cut:empty{
	display: none;
}
.lists a .imgs .cut img{
	width: 80px;
	height: auto;
}
a .texts{
	padding: 5px;
}
a .tags p{
display: inline-block;
    background-color: rgb(6, 16, 26);
    box-sizing: border-box;
    color: #eee;
    padding: 2px 5px;
    text-align: center;
    border-radius: 5px;
    font-size: 0.9em;
}
a .tags p+p{
	margin-left: 5px;
}
a .afoot{
	display: table;
	width: 100%;
}
a .date,a .tags{
	display: table-cell;
}
a .date{
    text-align: right;
    color: #aaa;
}
.footerNav li{
    list-style: none;
    display: inline-block;
    margin: 5px;
}
.footerNav li a{
    color: #aaa !important;
}


/* =========================================================
   index.html 専用スタイル（.content スコープ）
   ========================================================= */

.content {
    background: #f5f5f5;
}

/* --- Header --- */
.content header {
    background: #36987A;
    height: 56px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.content .logo-link {
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.content .logo-link img {
    height: 28px;
    width: auto;
}

.content .search-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.8);
    min-width: 0;
}

.content .search-pill svg {
    flex-shrink: 0;
}

.content .search-pill input {
    background: none;
    border: none;
    color: #fff;
    font-size: 13px;
    padding: 0;
    width: 120px;
    min-width: 0;
}

.content .search-pill input::placeholder {
    color: rgba(255, 255, 255, 0.73);
}

/* --- Tagline --- */
.content .tagline {
    background: #fff;
    padding: 24px 16px 20px;
    text-align: center;
    border-bottom: 1px solid #EEEEEE;
}

.content .tagline h1 {
    font-size: 17px;
    font-weight: 700;
    color: #2D5A27;
    margin: 0 0 10px;
    line-height: 1.5;
}

.content .tagline p {
    font-size: 12px;
    color: #446644;
    line-height: 1.7;
    margin: 0;
}

/* --- Filter Bar --- */
.content .filter-bar {
    background: #fff;
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #E8E8E8;
    position: relative;
    z-index: 10;
}

.content .filter-dropdown {
    position: relative;
    flex: 1;
}

.content .filter-btn {
    width: 100%;
    background: #36987A;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    border: none;
    border-radius: 6px;
    height: 40px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.content .filter-btn:hover {
    opacity: 0.85;
}

.content .filter-btn svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.content .filter-dropdown.open .filter-btn svg {
    transform: rotate(180deg);
}

.content .dropdown-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 185px;
    width: max-content;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    padding: 4px 0;
}

.content .filter-dropdown.open .dropdown-panel {
    display: block;
}

.content .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    color: #444;
    user-select: none;
}

.content .dropdown-item:hover {
    background: #f5f5f5;
}

.content .dropdown-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #36987A;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

/* --- ローディング: 描画完了までカード・ページネーションを非表示 --- */
.content .article-section,
.content .pagination {
    opacity: 0;
    transition: opacity 0.45s ease;
}
.content.page-ready .article-section,
.content.page-ready .pagination {
    opacity: 1;
}

/* --- Article Section --- */
.content .article-section {
    background: #FAFAFA;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- 検索結果なし --- */
.content .no-results {
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: 48px 16px;
    margin: 0;
}

/* --- Card Row (mobile: vertical stack) --- */
.content .card-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- Card (mobile: image left) --- */
.content .card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 1px solid #E8E8E8;
    text-decoration: none;
    color: #222;
    transition: opacity 0.2s;
    overflow: hidden;
}

.content .card:hover {
    opacity: 0.8;
}

.content .card-img-wrap {
    position: relative;
    flex: 0 0 100px;
    width: 100px;
    height: 120px;
    overflow: hidden;
    background: #eee;
}

.content .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Triangle badge */
.content .badge-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 52px;
    height: 52px;
    pointer-events: none;
    overflow: hidden;
}

.content .badge-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
}

.content .badge-new::before {
    border-width: 52px 52px 0 0;
    border-color: #e97b6c transparent transparent transparent;
}

.content .badge-pr::before {
    border-width: 52px 52px 0 0;
    border-color: #606060 transparent transparent transparent;
}

.content .badge-label {
    position: absolute;
    top: 7px;
    left: 2px;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    transform: rotate(-45deg) translateX(-1px);
    letter-spacing: 0.5px;
}

/* Card body */
.content .card-body {
    flex: 1;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    min-width: 0;
}

.content .card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: #222;
}

.content .card-bottom {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.content .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.content .tag {
    background: #555555;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

.content .date {
    font-size: 11px;
    color: #AAAAAA;
    text-align: right;
    width: 100%;
}

/* --- Pagination --- */
.content .pagination {
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 16px 0 24px;
}

.content .page-btn {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #CCCCCC;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    text-decoration: none;
    font-weight: normal;
    transition: opacity 0.15s;
}

.content .page-btn:hover {
    opacity: 0.7 !important;
}

.content .page-btn.active {
    background: #36987A;
    color: #fff;
    border-color: #36987A;
    font-weight: 700;
}

.content .page-btn-next {
    width: auto;
    padding: 0 16px;
}

/* --- Footer --- */
.content footer {
    background: #fff;
    color: #666;
    padding: 16px;
    text-align: center;
    font-size: 11px;
    border-top: 1px solid #E0E0E0;
}

.content .footerNav {
    padding: 0;
    margin: 0 0 8px;
}

.content .footerNav li {
    list-style: none;
    display: inline-block;
    margin: 2px 4px;
}

.content .footerNav li a {
    color: #aaa !important;
    text-decoration: none;
}


/* =========================================================
   PC レイアウト（768px以上）
   ========================================================= */

@media (min-width: 768px) {

    .content header {
        height: 72px;
        padding: 0 48px;
    }

    .content .logo-link img {
        height: 40px;
        width: auto;
    }

    .content .search-pill {
        padding: 10px 18px;
    }

    .content .search-pill input {
        width: 180px;
    }

    /* Tagline */
    .content .tagline {
        padding: 36px 48px;
    }

    .content .tagline h1 {
        font-size: 22px;
    }

    .content .tagline p {
        font-size: 13px;
    }

    /* Filter */
    .content .filter-bar {
        padding: 16px 48px;
        gap: 16px;
    }

    .content .filter-dropdown {
        flex: 0 0 280px;
    }

    .content .filter-btn {
        height: 46px;
        font-size: 13px;
        padding: 0 16px;
    }

    .content .dropdown-panel {
        min-width: 280px;
    }

    /* Article section */
    .content .article-section {
        padding: 28px 48px;
        gap: 20px;
    }

    /* Card row: 3-column grid */
    .content .card-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* PC card: image on top */
    .content .card {
        flex-direction: column;
        border-radius: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
        border: 1px solid #E8E8E8;
        height: 100%;
    }

    .content .card-img-wrap {
        flex: none;
        width: 100%;
        height: 200px;
        border-radius: 0;
    }

    .content .card-body {
        flex: 1;
        min-height: 140px;
        padding: 12px 16px 14px;
        justify-content: space-between;
    }

    .content .card-title {
        font-size: 14px;
        line-height: 1.5;
    }

    .content .card-bottom {
        margin-top: 10px;
    }

    .content .tag {
        font-size: 11px;
        padding: 2px 7px;
    }

    .content .date {
        font-size: 12px;
    }

    /* Pagination */
    .content .pagination {
        padding: 20px 0 32px;
    }

    /* Footer */
    .content footer {
        padding: 24px 48px;
    }

    .content .footerNav li+li::before {
        content: "|";
        color: #ddd;
        margin-right: 8px;
    }
}

/* =========================================================
   広い画面でカード幅を1280px以内に固定（背景は全幅）
   ========================================================= */

@media (min-width: 1280px) {
    /* 1280px超えたらpadding を広げて内側コンテンツを1184px固定 */
    /* 1184px = 1280px - 左右48pxずつ */
    .content .tagline {
        padding-left: calc((100% - 1184px) / 2);
        padding-right: calc((100% - 1184px) / 2);
    }

    .content .filter-bar {
        padding-left: calc((100% - 1184px) / 2);
        padding-right: calc((100% - 1184px) / 2);
    }

    .content .article-section {
        padding-left: calc((100% - 1184px) / 2);
        padding-right: calc((100% - 1184px) / 2);
    }
}
