


/*----------------------------------
 front-page.css おしゃれなヘッダーデザイン
----------------------------------*/


header {
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 軽い影で浮き上がらせる */
  position: sticky;
  top: 0;
  z-index: 1000;
}


/*------------------------------
ヘッダーサイトタイトル中央表示・大型化
------------------------------*/
header .site-title {
    text-align: center;          /* 中央揃え */
    font-size: 2.5rem;           /* 大きめサイズ。必要に応じて調整 */
    font-weight: bold;            /* 太字 */
    margin: 16px 0;               /* 上下の余白 */
    color: #0073aa;               /* お好みの色 */
    font-family: 'Helvetica Neue', 'Noto Sans JP', sans-serif;
}

/* スマホ表示では少し小さく調整 */
@media (max-width: 768px) {
    header .site-title {
        font-size: 2rem;
        margin: 12px 0;
    }
}

/*-------ヘッダーリストを横並びにする---------*/
header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

header nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav li {
  margin: 0 12px;
}

header nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-family: 'Noto Sans JP', sans-serif;
  padding: 8px 12px;
  transition: all 0.3s ease;
  border-radius: 6px;
}

header nav a:hover {
  background-color: #f0f0f0;
  color: #0073aa;
}

/* スマホ表示対応 */
@media (max-width: 768px) {
  header nav ul {
    flex-direction: column;
    gap: 12px;
  }
}


/*-------トップページの画像---------*/
#hero img{
    width: 100%;
}

/*-------トップページの文章---------*/
#about{
    background-color: antiquewhite;
}

/*-------wp投稿ループ文---------*/
.articles_container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.grid-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}


@media (max-width: 900px) {
  .grid-articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-articles {
    grid-template-columns: 1fr;
  }
}



/* カードデザイン */
.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);

}

/* サムネイル画像 */
.card figure {
  margin: 0;
  height: 180px;
  overflow: hidden;
}

.card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 日付 */
.post-date {
  font-size: 0.85rem;
  color: #888;
  margin: 0.5rem 1rem 0;
}

/* タイトル */
.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.5rem 1rem;
  color: #333;
  line-height: 1.4;
  font-family: 'Helvetica Neue', sans-serif;
}

/* 詳細リンク（ボタン風） */
.read-more {
  display: inline-block;
  margin: 1rem;
  padding: 0.4rem 1rem;
  background-color: #007acc;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.8rem;
  transition: background-color 0.2s ease;
}

.read-more:hover {
  background-color: #005fa3;
}


/* 共通のfigure設定 */
figure {
  margin: 0;
  padding: 0;
  width: 100%;
  aspect-ratio: 16 / 9; /* お好みで調整可（例：4/3, 1/1など） */
  overflow: hidden;
  border-radius: 8px;
}

/* 投稿画像の調整 */
figure img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像が枠にフィットするように切り抜かれる */
  display: block;
}




.add{/*page.php固定ページ用*/
    border: 1px solid black;
    padding: 100px 0;

}

@media (max-width: 600px) {
    .add {
        padding: 50px 0;
    }
}


p.nothing img{/*サムネイル画像がないときの表示(index.phpのif判定)用*/
     width: 400px;
     height: 200px;
     object-fit: cover;
}



/* プロフィールページ専用の調整 */
.profile-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-family: 'Noto Sans JP', sans-serif;
}

.profile-section h2 {
  font-size: 1.4rem;
  margin-top: 1.8em;
  margin-bottom: 1em;
  border-left: 4px solid #0073aa;
  padding-left: 12px;
  color: #333;
}

.profile-section p {
  margin-bottom: 1.2em;
  line-height: 1.8;
}





/* 投稿本文の読みやすさを改善するCSS */
/* PCでは1000pxに広げる */
/* 投稿本文とタイトルの共通幅 */
.post-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  font-family: 'Noto Sans JP', sans-serif;
}


/* スマホは狭い画面なので自動で100%幅 */
@media (max-width: 768px) {
  .post-content {
    max-width: 100%;
  }
}


/* 投稿日 */
.post-date {
  font-size: 14px;
  color: #777;
  margin-bottom: 8px;
}

/* 投稿タイトル */
.entry-title {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 1.5em;
}


.post-content p {
  margin-bottom: 1.2em;       /* 段落ごとの余白 */
}

.post-content h2,
.post-content h3 {
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.4;
}



/*2025-05-22サイドバー*/
/* sidebar全体のスタイル */
.custom-sidebar {
  padding: 20px;
  background-color: #f8f9fa;
  border-left: 4px solid #0073aa;
  font-family: "Helvetica Neue", sans-serif;
}

/* 各セクションの余白 */
.sidebar-section {
  margin-bottom: 30px;
}

/* セクションタイトル */
.sidebar-title {
  font-size: 18px;
  margin-bottom: 10px;
  color: #0073aa;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 5px;
}

/* リストの全体スタイル */
.sidebar-list {
  list-style-type: none;
  padding-left: 0;
}

/* リストの個別項目 */
.sidebar-list li {
  margin-bottom: 8px;
}

.sidebar-list li a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.sidebar-list li a:hover {
  color: #0073aa;
}


/*----------------------------------
  フッター全体のデザイン
----------------------------------*/
.site-footer {
  background-color: #f2f2f2;
  padding: 40px 20px;
  font-family: 'Noto Sans JP', sans-serif;
  color: #555;
  text-align: center;
  border-top: 1px solid #ddd;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* フッターナビ */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-nav li a {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-nav li a:hover {
  color: #0073aa;
}

/* コピーライト */
.copyright small {
  font-size: 0.8rem;
  color: #888;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .footer-nav ul {
    flex-direction: column;
    gap: 10px;
  }
}



/* CTAセクション */
.cta-section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 24px;
  background: #f9f9f9;
  border: 2px dashed #ccc;
  border-radius: 10px;
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
}

.cta-note {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 16px;
}

.cta-banner {
  margin-top: 10px;
}

.cta-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0073aa;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #005f87;
}


/* お問い合わせページ専用 */
.page-template-contact-page .post-content {
  background: #fff;
  border: 1px solid #eee;
  padding: 24px;
  border-radius: 8px;
}




/* アーカイブページの記事ごとのデザイン */
.archive-item {
  font-size: 14px;   /* 投稿本文と同じに揃える */
  line-height: 1.8;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.archive-title {
  font-size: 1.5em;
  margin: 0 0 5px;
}

.archive-title a {
  text-decoration: none;
  color: #333;
}

.archive-title a:hover {
  color: #0073aa; /* WP標準っぽいリンクカラー */
}

.archive-meta {
  font-size: 0.9em;
  color: #666;
}

/* アーカイブページの本文幅を揃える */
.archive-items-wrapper {
  max-width: 1000px;   /* 投稿ページと同じ幅 */
  margin: 0 auto;
  padding: 0 16px;
}

