/* はみ出しチェック用 */
* {
	outline: 0px solid magenta;
}


/* --- 基本スタイル & フォント設定 --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fcfcfd;
    margin: 0;
}
a {
    color: #2654c6;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}



/* 「もっとみる→」リンクのスタイル */
.more-link-wrapper {
    text-align: right;
    margin: 10px 15px 5px 0;
}

.more-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
}

.more-link:hover {
    text-decoration: underline;
}


/* カテゴリ別一覧ページのスタイル */
.category-page {
    padding-top: 2em;
    padding-bottom: 2em;
}

.category-title {
    font-size: 2em;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

.category-title i {
    margin-right: 0.5em;
    color: #555;
}

.category-card-full {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1.5em;
}

.back-link {
    display: inline-block;
    margin-top: 2em;
    color: #007bff;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}


/* --- ヘッダー（ヒーローセクション） --- */
.hero-header {
    background-color: #f0f2f9;
    padding: 2em 0 1em 0;
    text-align: center;
    border-bottom: 1px solid #e0e4f0;
}
.hero-content h1 {
    font-size: 2em;
    color: #2a2a2a;
    margin-top: 0;
    margin-bottom: 0em;
}

.hero-content h2 {
    font-size: 1.2em;
    color: #2a2a2a;
    margin: 0;
}

/* --- 検索バー --- */
.search-bar {
    max-width: 30vw;
    margin: 0 auto;
    position: relative;
}
.search-bar .search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #888;
}
.search-bar input[type="search"] {
    width: 100%;
    padding: 1em 1em 1em 45px; /* 左側にアイコン分のスペース */
    font-size: 1em;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar input[type="search"]:focus {
    outline: none;
    border-color: #2654c6;
    box-shadow: 0 0 0 3px rgba(38, 84, 198, 0.2);
}

/* --- メインコンテンツ --- */
.container {
    max-width: 80vw;
    min-width: 960px;
    margin: 0 auto;
    padding: 2em 2em;
}

/* --- カテゴリグリッド --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* レスポンシブなグリッド */
    gap: 2em;
}

/* --- カテゴリカード --- */
.category-card {
    background: #fff;
    border: 1px solid #e0e4f0;
    border-radius: 8px;
    padding: 1em;
}
.card-header {
    display: flex;
    align-items: center;
    gap: 0.8em;
    margin-bottom: 1.0em;
}
.card-header i {
    font-size: 1.5em;
    color: #2654c6;
}
.card-header h2 {
    margin: 0;
    font-size: 1.2em;
}
.faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.faq-list li {
    padding: 0.5em 0;
    border-bottom: 1px solid #f0f2f9;
    line-height:1.1em;
}
.faq-list li:first-child {
    padding-top: 0;
}
.faq-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.view-all-link {
    display: inline-block;
    margin-top: 1.5em;
    font-weight: bold;
}

/* --- 個別記事ページ用 --- */
.single-post {
    max-width: 800px;
}
h1.post-title {
    font-size: 2.2em;
    margin-bottom: 1em;
    color: #364e96;/*文字色*/
  border: solid 3px #364e96;/*線色*/
  padding: 0.5em;/*文字周りの余白*/
  border-radius: 0.5em;/*角丸*/
}


.post-content {
    font-size: 1.1em;
}

.post-content h3 {
    font-size: 1.2em;
    padding-bottom: 0.5em;
    margin-top: 0em;
    
    color: #333;/*文字色*/
  /*線の種類（点線）2px 線色*/
  border-bottom: dashed 2px #6594e0;
}


.post-content h3:before {
  content:'\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  
  margin-right:1rem;
  color: #364e96;
}

.post-content img, .post-content .user-table {
    max-width: 100%;
    height: auto;
    margin: 1.5em 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.back-link {
    display: inline-block;
    margin-top: 2em;
    font-weight: bold;
}

/* --- フッター --- */
.site-footer {
    text-align: center;
    padding: 2em;
    margin-top: 2em;
    border-top: 1px solid #e0e4f0;
    font-size: 0.9em;
    color: #6c757d;
}

/* --- スマホ用調整 --- */
@media (max-width: 768px) {
    .hero-header {
        padding: 3em 1em;
    }
    .hero-content h1 {
        font-size: 1.5em;
    }
    .container {
        padding: 2em 1em;
    }
    .post-title {
        font-size: 1.8em;
    }
}