@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* サイト全体の背景を白に設定 */
body {
    background-color: #ffffff !important;
	font-family: 'Noto Sans JP', sans-serif;
}

html {
    background-color: #ffffff !important;
}

/* メインコンテナの背景も白に設定 */
#main {
    background-color: #ffffff !important;
}

#header-container-in{
	width: auto;
}

.single .main{
	width:760px;
	z-index: 10;
}

.single .sidebar {
    position: absolute;
    left: 0;
    width: 250px;
    padding: 10px;
}

.sidebar-left .content-in {
	justify-content: center;
}

#header-container{
	border-bottom: 1px solid #e0e0e0;
}

.article h2 {
    padding: 20px 30px;
}

.entry-content>*, .demo .entry-content p {
    line-height: 2.25rem;
}

header.article-header{
	display: flex;
	flex-direction: column;
}
header.article-header .eye-catch-wrap{
	order: -1;
}
header.article-header h1{
	font-size: 2rem;
}

.container {
    background-color: #ffffff !important;
}

/* 追加の背景色設定 */
.wrap {
    background-color: #ffffff !important;
}

.content {
    background-color: #ffffff !important;
}

.site-content {
    background-color: #ffffff !important;
}

/* サイドバーとメインコンテンツの背景も白に */

.sidebar h2, .sidebar h3 {
    background-color: white;
    padding: 0px;
    margin: 16px 0;
    font-size: 18px;
}
.widget-sidebar p{
	font-size:14px;
	line-height:1.6;
}
.related-entry-card-title, .entry-card-title {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: .05em;
}
.ect-vertical-card .entry-card-wrap .entry-card-thumb {
	border-radius: 8px;
    overflow: hidden;
}
.related-entry-card-snippet, .entry-card-snippet {
    line-height: 1.5;
    font-size: 13px;
}
.entry-card .admin-pv {
	display:none;
}
.main {
	padding: 0 29px;
}

.main-content {
    background-color: #ffffff !important;
}

/* ヒーローセクション */
.custom-hero-section {
    width: 100%;
    height: 20vh;
    min-height: 260px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    margin-top: 0;
}

/* 重複したヒーローセクションを非表示 */
.custom-hero-section + .custom-hero-section {
    display: none !important;
}

.hero-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-title-image {
    max-width: 80%;
    max-height: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-text {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.hero-text h2 {
    font-size: 1.5rem;
    font-weight: normal;
    margin: 0;
    opacity: 0.9;
}

/* ヘッダーのカスタマイズ */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.site-header .site-branding {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.site-header .site-title {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.site-header .site-title .logo {
    width: 40px;
    height: 40px;
    background: #ff4444;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    margin-right: 15px;
}

.site-header .site-title .company-name {
    display: flex;
    flex-direction: column;
}

.site-header .site-title .company-name .main-name {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

.site-header .site-title .company-name .sub-name {
    font-size: 0.8rem;
    opacity: 0.7;
    line-height: 1;
}

/* ナビゲーション */
.main-navigation {
    margin-left: auto;
}

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

.main-navigation li {
    margin-left: 30px;
}

.main-navigation a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #ff4444;
}

/* サイドバーのカスタマイズ */
.sidebar .widget {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sidebar .widget-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: bold;
}

.sidebar .widget-title .logo {
    width: 30px;
    height: 30px;
    background: #ff4444;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    margin-right: 10px;
}

/* メインコンテンツの調整 */
.main-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 記事カードのスタイル */
.entry-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.entry-card .entry-thumb {
    position: relative;
    overflow: hidden;
}

.entry-card .entry-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.entry-card .entry-content {
    padding: 15px;
}

.entry-card .entry-title {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 10px;
}

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

.entry-card .entry-title a:hover {
    color: #ff4444;
}

.entry-card .entry-snippet {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.entry-card .entry-meta {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.entry-card .entry-meta .author {
    font-weight: 500;
}

.entry-card .entry-meta .date {
    margin-left: 10px;
}

.entry-card .entry-meta .likes {
    color: #ff4444;
    font-weight: bold;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
@media screen and (max-width: 1220px){
	.single .sidebar{
		display: none;
	}
}
/*1023px以下*/
@media screen and (max-width: 1023px){
	.content-in{
		display: flex;
	}
	.single .sidebar {
		display:none;
	}
  .custom-hero-section {
    height: 50vh;
    min-height: 300px;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-text h2 {
    font-size: 1.2rem;
  }
  
  .site-header .site-title .company-name .main-name {
    font-size: 1.1rem;
  }
  
  .main-navigation li {
    margin-left: 20px;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  .custom-hero-section {
    height: 40vh;
    min-height: 250px;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text h2 {
    font-size: 1rem;
  }
  
  .hero-title-image {
    max-width: 90%;
    max-height: 150px;
  }
  
  .site-header {
    padding: 0 15px;
  }
  
  .site-header .site-title .logo {
    width: 35px;
    height: 35px;
  }
  
  .site-header .site-title .company-name .main-name {
    font-size: 1rem;
  }
  
  .site-header .site-title .company-name .sub-name {
    font-size: 0.7rem;
  }
  
  .main-navigation li {
    margin-left: 15px;
  }
  
  .main-navigation a {
    font-size: 0.9rem;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .custom-hero-section {
    height: 35vh;
    min-height: 200px;
  }
  
  .hero-text h1 {
    font-size: 1.5rem;
  }
  
  .hero-text h2 {
    font-size: 0.9rem;
  }
  
  .hero-title-image {
    max-width: 95%;
    max-height: 120px;
  }
  
  .site-header {
    padding: 0 10px;
  }
  
  .site-header .site-title .logo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
  }
  
  .site-header .site-title .company-name .main-name {
    font-size: 0.9rem;
  }
  
  .site-header .site-title .company-name .sub-name {
    font-size: 0.6rem;
  }
  
  .main-navigation {
    display: none; /* モバイルではハンバーガーメニューに変更 */
  }
  
  .sidebar .widget {
    padding: 15px;
  }
  
  .main-content {
    padding: 15px;
  }
  
  .entry-card .entry-thumb img {
    height: 150px;
  }
  
  .entry-card .entry-content {
    padding: 12px;
  }
  
  .entry-card .entry-title {
    font-size: 0.9rem;
  }
  
  .entry-card .entry-snippet {
    font-size: 0.8rem;
  }
}
