/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Mincho ProN', '游明朝', 'Yu Mincho', '游明朝体', 'YuMincho', 'ヒラギノ明朝 ProN W3', 'Hiragino Mincho Pro', 'HGS明朝E', 'ＭＳ Ｐ明朝', 'MS PMincho', serif;
    line-height: 1.6;
    color: #333;
    background-color: #F9F9F9;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    font-size: 16px; /* ベースフォントサイズ */
}

/* レスポンシブフォントサイズ */
@media (max-width: 600px) {
    body { font-size: 14px; }
}

@media (min-width: 601px) and (max-width: 900px) {
    body { font-size: 15px; }
}

@media (min-width: 901px) {
    body { font-size: 16px; }
}

/* ヘッダー */
header {
    background-color: #fff;
    padding: 20px 0px 12px 20px;
}

/* ヘッダー直下の黒帯ナビ */
.nav-band {
    background: #23282D;
    color: #fff;
}
.nav-band .nav-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 8px 20px;
}
.nav-band .back-home {
    color: #fff;
    text-decoration: underline;
    font-size: 16px;
}
.nav-band .back-home i {
    margin-right: 6px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
}

.back-link {
    margin-left: 20px;
}

.back-btn {
    background-color: #f5f5f5;
    color: #666;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid #ddd;
}

.back-btn:hover {
    background-color: #e9e9e9;
}

/* メインコンテンツ */
main {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

.main-content-summary {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 40px 20px;
}

.main-title {
    margin-top: 120px;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2px;
    color: #333;
}
.sub-title {
    font-size: 1.875rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}
.category-description {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.main-title.quickview {
    font-size: 1.75rem;
    color: #D18B00;
    margin-bottom: 0px;
}
.sub-title.quickview {
    font-size: 1.75rem;
    font-weight: bold;
    text-align: center;
    margin-top: -5px;
    margin-bottom: 7px;
}
.category-description.quickview {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}
/* カテゴリ4列グリッド */
.category-grid {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 20px;
    row-gap: 20px;
}
.category-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding-bottom: 20px;
}
.category-card .card-thumb {
    height: auto;
    overflow: visible;
    padding-top: 30px;
    text-align: center;
}
.category-card .card-thumb img {
    display: block;
    width: 75%;                  /* 400pxカード幅に対して左右60pxずつ → 実効幅280px */
    height: auto;
    margin: 0 auto;
    object-fit: contain;          /* 画像はトリミングせず比率保持 */
    border-radius: 0;             /* 角丸なし */
}
.category-card .card-body {
    padding: 16px 16px 24px 16px;
}
.category-card .card-title {
    font-size: 1.5rem;
    text-align: center;
    font-weight: 700;
    margin-bottom: 12px;
}
.category-card .card-desc {
    width: 75%;
    margin: 0 auto;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
}

/* カテゴリグリッド レスポンシブ */
@media (max-width: 900px) {
    .category-grid { 
        grid-template-columns: repeat(2, 1fr);
        column-gap: 15px;
        row-gap: 15px;
    }
}
@media (max-width: 600px) {
    .category-grid { 
        grid-template-columns: 1fr;
        column-gap: 10px;
        row-gap: 10px;
    }
}

/* セクション */
.article-section {
    margin-bottom: 60px;
    border-radius: 8px;
}

.section-header {
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 11px #136ad0 solid;
    padding: 0 20px;
}
h3.section-title.orange-line {
    border-color: #f2a001;
}
.data-info {
    margin-bottom: 20px;
}

.data-date {
    font-size: 0.9rem;
    color: #000;
    border-radius: 4px;
}

.article-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.article-image {
    flex-shrink: 0;
}

.image-placeholder {
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden; /* はみ出し防止 */
}
.image-placeholder img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}
.image-icon {
    font-size: 48px;
    color: #999;
}

.article-text {
    flex: 1;
}

.article-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}

.article-description {
    font-size: 1rem;
    color: #2C2C2C;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: #004CC7;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.25rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* HOMEボタン */
.home-button-container {
    text-align: center;
    margin: 60px 0;
}

.home-button {
    width: 45%;
    min-width: 260px;
    background-color: #F2A000;
    color: #333;
    padding: 12px 60px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.home-button:hover {
    background-color: #f6b805;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* CATEGORY_BACKボタン */
.category-back-button-container {
    text-align: center;
    margin: 60px 0;
}

.category-back-button {
    background-color: #ffb601;
    color: #333;
    padding: 15px 60px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.category-back-button:hover {
    background-color: #f6b805;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
/* フッター */
footer {
    background-color: #660066;
    color: #fff;
    padding: 30px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ====== 記事詳細 ====== */
.hero-banner {
    width: 100%;
    background: url('../img/background.png') center/cover no-repeat;
    height: 360px; /* 最大高さ */
    display: flex;
    align-items: center; /* 縦中央 */
}
.hero-banner .hero-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}
.hero-title {
    font-size: 3rem;
    color: #ffffff;
    text-align: center;
    letter-spacing: 2px;
}

.detail-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 90px 20px 60px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    column-gap: 20px;
}

.side-menu {
    width: 300px;
}
.side-menu .side-menu-inner { width: 100%; }
.side-menu.w90 .side-menu-inner { width: 90%; margin: 0 auto; }
.side-menu.w80 .side-menu-inner { width: 80%; margin: 0 auto; }
.side-menu.w70 .side-menu-inner { width: 70%; margin: 0 auto; }
.side-title {
    font-weight: bold;
    font-size: 1.25rem;
    border-left: 25px solid #FFB600;
    padding: 10px 0 10px 30px;
    margin-bottom: 27px;
}
.cat-list { list-style: none; }
.cat-list li { margin-bottom: 20px; }
.cat-link {
    display: block;
    background: #eee;
    border: 1px solid #ddd;
    border-radius: 0px;
    padding: 17px 15px;
    color: #333;
    text-decoration: none;
    text-align: center;
    font-size: 1rem;
}
.cat-link.active { background: #FFB600; border-color: #FFB600; color: #333; font-weight: 700; }
.side-footer { margin-top: 15px; }
.cat-all-link {
    display: block;
    background: #eee;
    border: 1px solid #ddd;
    border-radius: 0px;
    padding: 17px 15px;
    color: #333;
    text-decoration: none;
    text-align: center;
    font-size: 1rem;
 }
 .cat-all-link.active { background: #FFB600; border-color: #FFB600; color: #333; font-weight: 700; }

.detail-main { width: 100%; max-width: 100%; }
.detail-main .detail-main-inner { width: 100%; }
/* 必要に応じてパーセンテージで可変 */
.detail-main.w80 .detail-main-inner { width: 80%; margin: 0 auto; }
.detail-main.w70 .detail-main-inner { width: 70%; margin: 0 auto; }
.detail-main.w60 .detail-main-inner { width: 60%; margin: 0 auto; }
.detail-title { font-size: 2rem; font-weight: 700; margin-bottom: 5px; line-height: 1.4; }
.category-title { font-size: 2rem; font-weight: 700; margin-bottom: 60px; line-height: 1.4; }
.detail-category { color: #666; margin-bottom: 2px; font-weight: bold; }
.detail-summary { margin-top: 25px;font-size: 1.25rem; font-weight: 700; line-height: 1.8; white-space: pre-wrap; }
.category-article-list { margin-bottom: 20px;font-size: 1.25rem; }
.cat-item { margin-bottom: 12px; }
.cat-date { color: #828282; font-size: 1.25rem; margin-bottom: 2px; padding-left: 10px;}
.cat-title { border: 1px solid #000; padding: 15px 20px; font-size: 1.25rem; margin-bottom: 25px; }
.cat-title a{ text-decoration: none; color: #000; }
.detail-links { margin-top: 20px; }

/* カテゴリ一覧（category_all.php） */
.cat-block { margin-bottom: 40px; }
.cat-block-title { font-weight: bold; font-size: 1.25rem; margin: 0 0 10px 0; }
.cat-more{width: 100%;text-align: right;}
.cat-more a { text-decoration: underline; color: #F2A000; font-size: 1.25rem;}

/* ページング（< 1 2 >） */
.pager.number ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; justify-content: center; }
.pager.number ul li a {
    display: inline-block;
    border: 1px solid #959595;
    color: #000;
    text-decoration: none;
    padding: 6px 6px;
    min-width: 40px;
    text-align: center;
}
.pager.number ul li a.now {
    background-color: #000;
    color: #fff;
    border-color: #000;
}
.pager.number ul li .dots {
    display: inline-block;
    padding: 6px 6px;
    min-width: 40px;
    text-align: center;
    color: #666;
}

/* カテゴリカード内のリンクスタイル */
.category-card {
    text-decoration: none;
    color: inherit;
}
.category-card .card-title a,
.category-card .card-desc a {
    text-decoration: none;
    color: inherit;
}

/* --- レスポンシブ: 記事詳細 --- */
@media (max-width: 900px) {
    .hero-banner { height: 260px; }
    .hero-title { font-size: 2.75rem; }
    .detail-layout { 
        display: flex; 
        flex-direction: column; 
        row-gap: 20px; 
    }
    .side-menu { width: 100%; }
    .cat-link { padding: 12px 16px; }
    .detail-main { order: 1; }
    .side-menu { order: 2; }
    .detail-title { font-size: 2rem; }
    .category-title { font-size: 2rem; }
    .detail-summary { font-size: 1.25rem; }
    .cat-date { font-size: 1.25rem; }
    .cat-title { font-size: 1.25rem; }
    .cat-block-title { font-size: 1.25rem; }
    .cat-more a { font-size: 1.25rem; }
}
@media (max-width: 600px) {
    .hero-banner { height: 200px; }
    .hero-title { font-size: 2rem; }
    .detail-title { font-size: 1.5rem; }
    .category-title { font-size: 1.5rem; }
    .detail-summary { font-size: 1rem; }
    .cat-date { font-size: 1rem; }
    .cat-title { font-size: 1rem; }
    .cat-block-title { font-size: 1rem; }
    .cat-more a { font-size: 1rem; }
    .main-title { font-size: 1.25rem; }
    .sub-title { font-size: 1.75rem; }
    .category-description { font-size: 1rem; }
    .main-title.quickview { font-size: 1.5rem; }
    .sub-title.quickview { font-size: 1.5rem; }
    .category-description.quickview { font-size: 1rem; }
    .section-title { font-size: 1.5rem; }
    .article-title { font-size: 1.5rem; }
    .article-description { font-size: 1rem; }
    .read-more { font-size: 1.25rem; }
    .home-button { font-size: 0.9rem; padding: 12px 40px; }
    .category-back-button { font-size: 1.25rem; padding: 12px 40px; }
    /* summary.php モバイルで画像とタイトルが重ならないように調整 */
    .article-wrapper { flex-direction: column; gap: 16px; align-items: stretch; }
    .article-image { width: 100%; }
    .image-placeholder { width: 100%; height: auto; }
    .image-placeholder img { width: 100%; height: auto; display: block; }
    .article-text { width: 100%; }
    .article-title { margin-top: 0; position: static; }
}

.copyright {
    font-size: 14px;
    color: #fff;
}

/* トップに戻るボタン - 固定位置 */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 3px;
    color: #ffb600;
    font-weight: 700;
    font-size: 16px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    border: none;
}
.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* レスポンシブデザイン */
@media (max-width: 900px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .article-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .image-placeholder {
        width: 100%;
        height: 200px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    /* summary.php モバイル最終上書き（900px指定より後に置き、重なり防止） */
    .article-wrapper { flex-direction: column; gap: 16px; align-items: stretch; }
    .article-image { width: 100%; margin-bottom: 12px; }
    .image-placeholder { width: 100%; height: auto !important; }
    .image-placeholder img { width: 100%; height: auto; display: block; }
    .article-text { width: 100%; margin-top: 0; }
    .article-title { position: static; margin-top: 0; }
}
* {
	margin:0;
	padding:0;
}

.white-popup ul {
	text-align:center;
	margin:100px 0 100px -20px;
}
.white-popup ul li {
	list-style:none;
	display:inline-block;
	width:300px;
	margin-left:20px;
	text-align:center;
}
.white-popup ul li a {
	display:block;
	text-decoration:none;
	color:#fff;
	background:#242b39;
	padding:20px 0;
}
.white-popup {
        position: relative;
        background: #FFF;
        padding: 20px;
        width: auto;
        margin: 20px auto;
    }
	

h1 {
	font-size:30px;
	text-align:center;
 }
/*#sortArea {
	width: 988px;
	margin: 0 auto 30px;
}
#sort {
	width: 988px;
	margin-bottom: 20px;
	overflow: hidden;
}
#sort:after {
  display : table;
  clear : both;
  content : '';
}
#sort ul {
	width: 1008px;
	margin-right: -20px;
}
#sort li {
	border-radius: 2px 2px 0 0;
	background:#242b39;
	border: 1px solid #fff;
	display: inline-block;
	float: left;
	margin-right: 20px;
	width: 230px;
	margin-bottom: -1px;
	text-align: center;
	padding: 6px 0;
	cursor: pointer;
	color: #151819;
	font-size: 14px;
	font-weight:bold;
	-webkit-transition: .1s linear;
	-moz-transition: .1s linear;
	-o-transition: .1s linear;
	margin-left:0;
}
#sort li a {
	display:block;
	width:230px;
	text-align:center;
	color:#fff;
	text-decoration:none;
}
#sort li:hover {
	background-color: #f4f4f4;
	color:#242b39;
}
#sort li:hover a {
	color:#242b39;
}
#itemList .item {
    width: 252px;
    height: 200px;
    color: #ffffff;
    text-align: center;
    line-height: 200px;
}
.job,.html { background-color: #ea5e60; }
.univ,.css { background-color: #26dafa;}
.exam,.javascript { background-color: #ca70da; }
.learn { background-color: #2bcdba; }
.expart { background-color: #ffcc00;}
.life { background-color: #fa8a20; }
.topics { background-color: #2b9ce0; }
#itemList .item a {
	color:#fff;
	text-decoration:none;
} */

#sort ul {
    display: flex;
    justify-content: center;
    /* gap: 20px; */
    margin-bottom: 30px;
    list-style: none;
    border-bottom: 3px #ffb601 solid;
}
#sort li {
    padding: 10px;
    color: #444;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

#sort li.active {
    background: #f6b706;
}

#itemList {
display: grid;
grid-template-columns: repeat(4,1fr);
}

.item {
    display: none;
}

.item.show {
    display: block;
}

.project-img-container {
position: relative;
overflow: hidden;
line-height: 0;
}

.project-img-container img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-item-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item-info-content {
    color: #fff;
    text-align: center;
    padding: 20px;
    line-height: 1.5;
}

.project-img-container:hover img {
    transform: scale(1.1);
}

.project-img-container:hover .project-item-info {
    opacity: 1;
}