/*
Theme Name: Ex-IT Blog Simple
Theme URI: https://www.ex-it-blog.com/
Author: Yoichi Inoue
Author URI: https://www.ex-it-blog.com/
Description: シンプル・ミニマルな2カラム構成のブログ専用オリジナルテーマ。
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: exit-blog-simple
*/

/* ==========================================================================
   変数定義
   ========================================================================== */
:root {
  --color-bg: #ffffff;
  --color-text: #2b2b2b;
  --color-text-light: #6b6b6b;
  --color-border: #e5e5e5;
  --color-accent: #b94047;
  --color-accent-light: #f7e6e7;
  --color-bg-alt: #fafafa;
  --max-width: 1080px;
  --content-width: 700px;
  --sidebar-width: 300px;
  --gap: 40px;
  --font-base: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", serif;
}

/* ==========================================================================
   リセット・基本
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.4em;
}

figure {
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

th, td {
  border: 1px solid var(--color-border);
  padding: 0.6em 0.8em;
  text-align: left;
}

blockquote {
  margin: 1.5em 0;
  padding: 0.8em 1.2em;
  border-left: 4px solid var(--color-accent);
  background: var(--color-bg-alt);
  color: var(--color-text-light);
}

code, pre {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  background: var(--color-bg-alt);
  border-radius: 4px;
}

code {
  padding: 0.15em 0.4em;
  font-size: 0.9em;
}

pre {
  padding: 1em;
  overflow-x: auto;
  line-height: 1.6;
}

pre code {
  padding: 0;
  background: none;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5em 0;
}

/* ==========================================================================
   レイアウト
   ========================================================================== */
.site-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-content-wrapper {
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
  padding: 40px 0 60px;
}

.site-main {
  flex: 1 1 auto;
  min-width: 0;
  max-width: var(--content-width);
}

.site-sidebar {
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
}

@media (max-width: 860px) {
  .site-content-wrapper {
    flex-direction: column;
  }

  .site-sidebar {
    width: 100%;
    flex: 1 1 auto;
  }
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-branding {
  display: flex;
  flex-direction: column;
}

/* ロゴを小さく表示 */
.custom-logo-link {
  display: inline-block;
}

.custom-logo-link img {
  max-height: 18px;
  width: auto;
  display: block;
}

/* ロゴがあるためサイトタイトル(テキスト)は非表示 */
.site-title {
  display: none;
}

.site-description {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ナビゲーション */
.main-navigation {
  display: flex;
  align-self: flex-start;
  margin-top: -4px;
}

.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.main-navigation a {
  display: inline-block;
  color: #ffffff;
  background: var(--color-accent);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 500;
}

.main-navigation a:hover {
  opacity: 0.85;
  color: #ffffff;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
}

@media (max-width: 700px) {
  .menu-toggle {
    display: inline-block;
  }

  .main-navigation {
    width: 100%;
    display: none;
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 8px;
    padding: 12px 0 0;
  }
}

/* ==========================================================================
   パンくずリスト
   ========================================================================== */
.breadcrumbs {
  font-size: 0.8rem;
  color: var(--color-text-light);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs a {
  color: var(--color-text-light);
}

.breadcrumbs span {
  color: var(--color-text);
}

/* ==========================================================================
   ページヘッダー(アーカイブ・検索・404)
   ========================================================================== */
.page-header {
  margin-bottom: 30px;
}

.page-header .page-title {
  font-size: 1.6rem;
  margin: 0 0 8px;
}

.archive-description {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ==========================================================================
   記事一覧 / カード
   ========================================================================== */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-card {
  margin: 0 0 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--color-border);
}

.post-card:last-child {
  border-bottom: none;
}

.post-card .post-thumbnail {
  position: relative;
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
}

.post-card .post-thumbnail img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card .post-thumbnail a:hover img {
  transform: scale(1.04);
}

/* サムネイルに重ねる記事タイトル */
.post-thumbnail-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 50px 24px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0) 100%);
}

.post-thumbnail-overlay .entry-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.5;
  color: #ffffff;
  text-shadow:
    0 0 4px rgba(80, 80, 80, 0.9),
    1px 1px 2px rgba(80, 80, 80, 0.9),
    -1px -1px 2px rgba(80, 80, 80, 0.9),
    1px -1px 2px rgba(80, 80, 80, 0.9),
    -1px 1px 2px rgba(80, 80, 80, 0.9);
}

.post-card .entry-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.5;
}

.post-card .entry-title a {
  color: var(--color-text);
}

.post-card .entry-title a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.entry-meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.entry-meta a {
  color: var(--color-text-light);
}

.entry-meta .cat-links a {
  color: var(--color-accent);
}

.entry-summary p {
  margin: 0;
  color: var(--color-text);
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* ==========================================================================
   本文用ユーティリティ(関連記事ボックス・強調枠など)
   ========================================================================== */

/* 関連記事ボックス */
.entry-content .link {
  border: 3px solid var(--color-accent);
  border-radius: 4px;
  margin: 30px 0;
  padding: 30px;
  position: relative;
}

.entry-content .link::before {
  background-color: #ffffff;
  color: var(--color-accent);
  content: "【関連記事】";
  font-weight: bold;
  top: -15px;
  left: 5px;
  padding: 0;
  position: absolute;
}

/* サービスメニュー枠 */
.entry-content .servicemenu {
  border: 2px solid var(--color-accent);
  border-radius: 4px;
  margin: 2em 0;
  padding: 2em;
  position: relative;
}

.entry-content .servicemenu::before {
  background-color: #fff;
  color: var(--color-accent);
  content: "サービスメニュー";
  font-weight: bold;
  left: 1em;
  padding: 0 .5em;
  position: absolute;
  top: -1em;
}

/* ボタン風強調 */
.entry-content .bt {
  color: #ffffff;
  background: var(--color-accent);
  padding: 0.2em 0.6em;
  border-radius: 4px;
}

/* 緑のボックス(お知らせ等) */
.entry-content .box {
  padding: 0.5em 1em;
  color: #fff;
  background: #006400;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  border-radius: 9px;
  text-align: center;
}

/* 必須ラベル */
.entry-content .required {
  font-size: 0.95rem;
  padding: 5px;
  background: #de8686;
  color: #fff;
  border-radius: 3px;
  margin-right: 3px;
}

/* テキストカラー */
.entry-content .topmessege {
  color: var(--color-accent);
}

/* 余白調整用 */
.entry-content .mar {
  margin: 100px 5px;
}

.entry-content .mar2 {
  margin: 100px 5px 0;
}

/* 画像の枠線 */
.entry-content img.bor {
  border: 2px solid #dddddd;
}

/* 区切り線(二重線) */
.entry-content hr {
  border-top: 3px double #bbb;
}

/* ==========================================================================
   記事詳細
   ========================================================================== */
.entry-header {
  margin-bottom: 24px;
}

.entry-header .entry-title {
  font-size: 1.5rem;
  line-height: 1.5;
  margin: 20px 0 5px;
  padding: 20px 5px;
  color: var(--color-accent);
  border-top: 5px double var(--color-accent);
  border-bottom: 5px double var(--color-accent);
}

.single .post-thumbnail {
  margin: 20px 0 30px;
  border-radius: 6px;
  overflow: hidden;
}

.entry-content {
  font-size: 1.02rem;
}

.entry-content h2 {
  color: #ffffff;
  background: var(--color-accent);
  font-size: 1.3rem;
  margin: 2.4em 0 0.8em;
  padding: 14px 16px;
  box-shadow: 0 4px 2px 2px #666666;
  border-radius: 10px;
  border-bottom: none;
}

.entry-content h3 {
  color: var(--color-accent);
  font-size: 1.15rem;
  margin: 1.8em 0 0.6em;
  padding: 10px 5px;
  border-top: 1px solid var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
}

.entry-content h4 {
  font-size: 1.05rem;
  margin: 1.6em 0 0.6em;
}

.entry-content p {
  margin: 0 0 1.4em;
}

.entry-content figure {
  margin: 1.8em 0;
}

.entry-content figcaption {
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 6px;
}

.entry-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.entry-footer .tags-links a {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.entry-footer .tags-links a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

/* 投稿ナビゲーション(前後の記事) */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1 1 0;
}

.post-navigation .nav-next {
  text-align: right;
}

/* ==========================================================================
   サイドバー
   ========================================================================== */
.widget {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.widget:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.widget-title {
  font-size: 0.7rem;
  font-weight: 700;
  margin: 0 0 16px;
  padding: 8px 10px;
  color: #ffffff;
  background: var(--color-accent);
  box-shadow: 0 4px 2px 2px #666666;
  border-radius: 10px;
  border-bottom: none;
  display: block;
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget ul li {
  margin-bottom: 10px;
  font-size: 0.59rem;
  line-height: 1.5;
}

.widget ul li a {
  color: var(--color-text);
}

.widget ul li a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* プロフィールウィジェット */
.profile-widget {
  text-align: center;
}

.profile-widget .profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 14px;
  overflow: hidden;
}

.profile-widget .profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-widget .profile-name {
  font-weight: 700;
  margin: 0 0 8px;
}

.profile-widget .profile-desc {
  font-size: 0.57rem;
  color: var(--color-text-light);
  line-height: 1.7;
  text-align: left;
}

/* 検索ボックス */
.search-form {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.search-form input[type="search"] {
  flex: 1;
  border: none;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: var(--font-base);
}

.search-form input[type="search"]:focus {
  outline: none;
}

.search-form button {
  border: none;
  background: var(--color-accent);
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  font-size: 0.9rem;
}

.search-form button:hover {
  opacity: 0.85;
}

/* ==========================================================================
   Contact Form 7
   ========================================================================== */
.wpcf7 input[type="submit"] {
  width: 100%;
  margin-top: 50px;
  padding: 15px;
  border-radius: 10px;
  border: none;
  box-shadow: 0 3px 0 #ddd;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.wpcf7 input[type="submit"]:hover {
  opacity: 0.85;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-base);
  font-size: 0.95rem;
}

span.wpcf7-list-item,
.entry-content span.wpcf7-list-item {
  display: block;
}

/* ==========================================================================
   サイト説明(タグライン)は非表示
   ========================================================================== */
.site-description {
  display: none;
}

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 30px 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.footer-navigation ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  gap: 20px;
}

.footer-navigation a {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ==========================================================================
   ページネーション
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--color-text);
}

.pagination a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

.pagination .current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ==========================================================================
   アクセシビリティ
   ========================================================================== */
.screen-reader-text {
  position: absolute;
  left: -9999px;
}

/* ==========================================================================
   コメント
   ========================================================================== */
.comments-area {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list .comment-body {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.comment-author {
  font-weight: 700;
  font-size: 0.9rem;
}

.comment-metadata {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-base);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.comment-form .form-submit input {
  width: auto;
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 10px 24px;
  cursor: pointer;
}

.comment-form .form-submit input:hover {
  opacity: 0.85;
}
