/*
Theme Name: seogilag2
Theme URI: https://seogilog.com
Author: seogilang
Author URI: https://seogilog.com
Description: A brief description of your theme.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 서기록
*/

/* 기본 스타일 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;}
ul, ol {list-style: none;}
a {
  text-decoration: none;
  color: #000;
  border-radius: 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block; /* 너비와 높이, 패딩/마진 적용 가능 */
  padding: 5px 7px; /* 상하 10px, 좌우 15px 패딩 추가 */
}

a:hover {
  color: #91dffd; /* 호버 시 텍스트 색상: 스카이 블루 (채도가 낮은 하늘색) */
  background-color: #535c63; /* 호버 시 배경색: 다크 블루 그레이 (진하게) */
}

#single-post ol {
  list-style: lower-alpha;
  padding-left: 25px;}
#single-post ul {
  list-style: initial;
  padding-left: 25px;}
#single-post li::marker {font-weight: bold;}

.list-note {
  font-style: italic; /* 이탤릭체로 표시 */
  font-size: 0.9em; /* 본문보다 작게 표시 */
  display: block;
  margin-bottom: 10px;}

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;}

article p {margin-bottom:10px;}

body {
  font-family: Arial, sans-serif;
  line-height: 1.7;
  background-color: #f8f9fa;
  overflow-x: hidden;
  word-break: break-all;
  max-width: 1000px;
  margin: 0 auto;}
header {position: relative;}

.contents {
  padding: 10px;
  margin-bottom: 15px;
  background-color: #fff;
  border: 1px solid #cccccc;
  border-radius: 5px;
  width: 100%;}

#single-title-warp, #adsense, footer {
  text-align: center;
  width: 100%;}

#site-title-warp{margin: 10px;}
.site-title {
  font-weight: bold;
  font-size: 28px;
  line-height: 1.4;
  color: #333;}

/* 타이포그래피 */
h1 {
  font-size: 28px;
  font-weight: bold;}
#single-post-warp h2 {
  border-top: 2px solid #333;
  border-bottom: 1px solid #555;
  margin: 10px 0;}
#single-post-warp h3 {margin: 5px 0;}
.number {
  color: #fff;
  background-color: #333;
  padding: 4px 8px;
  border-radius: 5px;}
#single-post-warp h4:before {
  content: '';
  border-left: 10px solid #777;
  padding-right: 5px;}

/* 목차 */
#toc {
  border: 1px solid #cccccc;
  background-color: #f2f4f7;
  padding: 10px;}
#toc ul {padding-left: 10px;}
#toc>ul>li>a {font-weight: bold;}
#toc ul li ul {padding: 0px 15px 10px;}

.screen-reader-text {display: none;}

.article-box {
  background-color:#666;
  color:#ffffff;
  padding: 5px;
  margin: 5px 0;
  width: 100%;
  border-radius:5px;
  line-height:1.5;
}

/*관련 글*/
#related-post ul li {border-bottom: 1px solid #ddd;}

/* 댓글 영역 */
#related-post-title, #comment-title, #reply-title{
  margin-bottom: 5px;
  font-size: 1.3em;
  font-weight: bold;
  border-bottom: 1px solid #333;}
#single-comments ol li {margin-bottom: 20px;}
#single-comments ol li ol{
  margin-top: 3px;
  padding: 0 0 0 40px;}
#single-comments ol li ol li{margin-bottom: 3px;}
#comment-list{
  background-color: #e6e6e6;
  border-radius: 20px;}
.comment-author {font-weight: bold;}

.comment-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px;
  border-radius: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
}
#respond{
  margin-top:3px;
  padding:10px;
  background-color: #fff;
  border-radius: 20px;
}
.comment-body .comment-meta.commentmetadata {margin:0 0 0 5px;}
.comment-body > p {
  flex-basis: 100%;
  margin:10px 0;}
.children li .comment-body {margin: 0;}
.comment-reply-link, #cancel-comment-reply-link {
  margin: 0;
  color: #0a1aff;}

.comment-form input[type="text"],
.comment-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;}

.form-submit {
  margin: 0 0 20px 0;
  text-align: center;}

.comment-form input[type="submit"] {
  padding: 0.5rem 1.5rem;
  background-color: #000;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;}

.comment-form input[type="submit"]:hover {
  background-color: #444;}
  
/* 광고 영역 */
section#adsense {height: 250px;}
section#adsense .adsbygoogle {
    width: 100%;
    height: 250px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;}

/* 내비게이션 컨테이너 */
.nav-warp {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 10px;}
/* 메뉴 토글 */
.menu-toggle {display: none;}
.menu-toggle-label {
  display: none;
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  z-index: 999;
  width: 40px;
  height: 40px;
  padding: 10px;
  box-sizing: border-box;}

/* 햄버거 아이콘 */
.hamburger {
  width: 30px;
  height: 3px;
  background-color: #333;
  position: relative;
  transition: all 0.3s ease-in-out;
  margin: 0 auto;
  top: 8px;}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 3px;
  background-color: #333;
  transition: all 0.3s ease-in-out;
  left: 0;}

.hamburger::before {transform: translateY(-10px);}
.hamburger::after {transform: translateY(10px);}
/* 메뉴 컨테이너 */
.menu-warp {
  display: flex;
  align-items: center;
  justify-content: space-between;}
/* 카테고리 스타일 */
.categories-menu {
  display: flex;
  margin: 0;
  padding: 0;}

.categories-menu li {
  margin-right: 20px;
  padding: 20px 0;}
/* 검색 폼 스타일 */
.search-form {
  display: flex;
  align-items: center;}

.search-form input[type="search"] {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 200px;}
.search-form #searchsubmit {display: none;}

@media screen and (max-width: 768px) {
  .menu-toggle-label, .hamburger{display: block;}
  .menu-warp {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 20px 0;}
    /* 체크박스가 체크되면 메뉴 표시 */
  .menu-toggle:checked ~ .menu-warp {display: flex;}
  /* 햄버거 아이콘 애니메이션 */
  .menu-toggle:checked ~ .menu-toggle-label .hamburger {
    background-color: transparent;}

  .menu-toggle:checked ~ .menu-toggle-label .hamburger::before {
    transform: rotate(45deg);}

  .menu-toggle:checked ~ .menu-toggle-label .hamburger::after {
    transform: rotate(-45deg);}

  .categories-menu {
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;}

  .categories-menu li {
    margin-right: 0;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    width: 100%;}

  .search-form {
    flex-direction: column;
    width: 100%;}

  .search-form input[type="search"] {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;}
	
    section#adsense {height: 90px;}
	section#adsense .adsbygoogle {height: 90px;}
}