@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
/*
Theme Name: Cocoon Child
Template: cocoon-master
Author: Your Name
Description: A child theme for Cocoon to mimic Yamatomichi design.
Version: 1.0
*/

/* Import parent theme styles */
@import url("../cocoon-master/style.css");

/* Add your custom styles below */

/* General Styles */
body {
    background-color: #ffffff;
    color: #333333;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
	line-height: 1.8; /* 行間を1.8に設定 */
}

a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    color: #0c47a1;
}

/* Header */
.header-container {
    background-color: #f8f8f8;
    border-bottom: 1px solid #eaeaea;
    padding: 10px 0;
    text-align: center;
}

.header-title {
    font-size: 2em;
    font-weight: bold;
    color: #333333;
    margin: 0;
    padding: 10px;
}

/* Navigation */
.nav-menu {
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    text-align: center;
}

.nav-menu a {
    padding: 10px 20px;
    display: inline-block;
    color: #333333;
    font-weight: bold;
}

/* Main Content */
.content {
    margin: 0 auto;
    max-width: 800px;
    padding: 20px;
}

.content h1, .content h2, .content h3 {
    color: #333333;
    font-weight: bold;
}

.content p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.content img {
    max-width: 100%;
    height: auto;
}

/* Footer */
.footer {
    background-color: #f8f8f8;
    border-top: 1px solid #eaeaea;
    padding: 20px;
    text-align: center;
    color: #666666;
}

/* Buttons */
button, .button {
    background-color: #1a73e8;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    text-align: center;
    display: inline-block;
    margin: 10px 0;
    cursor: pointer;
}

button:hover, .button:hover {
    background-color: #0c47a1;
}
}
/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
Theme Name: Cocoon Child
Template: cocoon-master
Author: Your Name
Description: A child theme for Cocoon to mimic Yamatomichi design.
Version: 1.0
*/

/* Import parent theme styles */
@import url("../cocoon-master/style.css");

/* Add your custom styles below */

/* General Styles */
body {
    background-color: #ffffff;
    color: #333333;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
	line-height: 1.8; /* 行間を1.8に設定 */
}

a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    color: #0c47a1;
}

/* Header */
.header-container {
    background-color: #000000;
    border-bottom: 1px solid #eaeaea;
    padding: 10px 0;
    text-align: center;
}

.header-title {
    font-size: 2em;
    font-weight: bold;
    color: #333333;
    margin: 0;
    padding: 10px;
}

/* Navigation */
.nav-menu {
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    text-align: center;
}

.nav-menu a {
    padding: 10px 20px;
    display: inline-block;
    color: #333333;
    font-weight: bold;
}

/* Main Content */
.content {
    margin: 0 auto;
/*    max-width: 800px; */
      max-width: 100%;
    padding: 0;
}

.content h1, .content h2, .content h3 {
    color: #333333;
    font-weight: bold;
}

.content p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.content img {
    max-width: 100%;
    height: auto;
}

/* Footer */
.footer {
    background-color: #f8f8f8;
    border-top: 1px solid #eaeaea;
    padding: 20px;
    text-align: center;
    color: #666666;
}

/* Buttons */
button, .button {
    background-color: #1a73e8;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    text-align: center;
    display: inline-block;
    margin: 10px 0;
    cursor: pointer;
}

button:hover, .button:hover {
    background-color: #0c47a1;
}
}

/*480px以下*/
/*480px以下*/
@media screen and (max-width: 480px) {
    /*必要ならばここにコードを書く*/

    body {
        background-color: #ffffff;
        color: #333333;
        font-family: 'Verdana', Helvetica, Arial, sans-serif;
        margin: 0;
        padding: 0;
		line-height: 1.8; /* 行間を1.8に設定 */
    }

    a {
        color: #1a73e8;
        text-decoration: none;
    }

    a:hover {
        color: #0c47a1;
    }

    /* Header */
    .header-container {
        background-color: #000000;
        border-bottom: 1px solid #eaeaea;
        padding: 10px 0;
        text-align: center;
    }

    .header-title {
        font-size: 2em;
        font-weight: bold;
        color: #333333;
        margin: 0;
        padding: 10px;
    }

    /* Navigation */
    .nav-menu {
        background-color: #ffffff;
        border-top: 1px solid #eaeaea;
        border-bottom: 1px solid #eaeaea;
        text-align: center;
    }

    .nav-menu a {
        padding: 10px 20px;
        display: inline-block;
        color: #333333;
        font-weight: bold;
    }

    /* Main Content */
    .content {
        margin: 0 auto;
        max-width: 100%; /* 文章部分の横幅余白を広げる */
        padding: 0; /* 左右のパディングをリセット */
    }

    .content h1,
    .content h2 {
        font-size: 1.0em; /* スマートフォン用に文字サイズを調整 */
    }
    .content h3 {
        color: #333333;
        font-weight: bold;
    }

    .content p {
        line-height: 3.0;
        margin-bottom: 20px;
    }

    .content img {
        max-width: 100%;
        height: auto;
    }

    /* Footer */
    .footer {
        background-color: #f8f8f8;
        border-top: 1px solid #eaeaea;
        padding: 20px;
        text-align: center;
        color: #666666;
    }

    /* Buttons */
    button,
    .button {
        background-color: #1a73e8;
        color: #ffffff;
        border: none;
        padding: 10px 20px;
        text-align: center;
        display: inline-block;
        margin: 10px 0;
        cursor: pointer;
    }

    button:hover,
    .button:hover {
        background-color: #0c47a1;
    }

    /* モバイル表示時のサイドバー */
    .mobile-sidebar {
        background-color: #000; /* 背景を黒に */
        color: #fff; /* 文字を白に */
    }

    .mobile-sidebar a {
        color: #fff; /* リンク文字を白に */
    }

    .mobile-sidebar .widget {
        border-color: #fff; /* ウィジェットのボーダーを調整（必要に応じて） */
    }

    .max-img {
        margin: 0em -20px;
    }

    /* 見出しh3のスタイル */
    .entry-content h3 {
    padding: 1rem 0rem;
    background: #ffffff;
    border: none; /* 追加: 囲みを消す */
    border-left: none; /* 追加: 左側の線を消す */
    }
}


/*480ここまで*/


/* 見出しh2のスタイル */
.entry-content h2 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 1.55em; /* 少し小さくする */
    text-align: center;
    color: #333333;
    background-color: #ffffff;
    position: relative;
    padding-bottom: 15px; /* 下線と文字の間隔を広げる */
    margin-top: 30px;
    margin-bottom: 20px;
}

.entry-content h2::after {
    content: '';
    display: block;
    width: 5em; /* 下線を5文字分の長さにする */
    height: 3px; /* 下線を太くする */
    background-color: #000000;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}



/* 見出しh3のスタイル */
.entry-content h3 {
    padding: 1rem 0rem;
    background: #ffffff;
    border: none; /* 追加: 囲みを消す */
    border-left: none; /* 追加: 左側の線を消す */
}


/* 目次のスタイル */
.toc {
    background-color: #f8f8f8;
    border: 1px solid #eaeaea;
    padding: 20px;
    margin-bottom: 30px;
    width: 90%; /* ボックスの幅を少し狭くする */
    max-width: 600px; /* 必要に応じて最大幅を設定 */
}

.toc-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #1a73e8; /* 文字の色を青にする */
    margin-bottom: 10px;
    border-bottom: 2px solid #1a73e8;
    padding-bottom: 5px;
    text-align: left; /* 左寄せ */
}

.toc ul {
    list-style-type: none; /* 番号を消す */
    padding: 0;
}

.toc ul li {
    margin-bottom: 10px;
}

.toc ul li a {
    color: #1a73e8; /* 青色にする */
    text-decoration: none;
    font-weight: bold; /* 太字にする */
    font-size: 0.9em; /* 文字を少し小さくする */
}

.toc ul li a:hover {
    text-decoration: underline;
}

/* リストのスタイル */
.entry-content ul, .entry-content ol {
    list-style-type: none; /* 番号を消す */
    padding-left: 0; /* 左のパディングをリセット */
}

.entry-content ul li, .entry-content ol li {
    margin-bottom: 10px;
    padding-left: 20px; /* インデントを適用 */
    position: relative;
}

.entry-content ul li::before, .entry-content ol li::before {
    position: absolute;
    left: 0;
    color: #1a73e8; /* 青色にする */
}

figure {
    text-align: center; /* 画像とキャプションをセンター寄せ */
}

figcaption {
    margin-top: -10px; /* キャプションを画像に近づけるためのマージンを追加 */
    font-size: 15px; /* キャプションのフォントサイズを調整（必要に応じて） */
	line-height: 1.3;
	text-align: left;
}

.wp-element-caption {
    line-height: 0.5; /* 行間を詰める */
    word-break: break-word; /* 単語の途中で改行 */
	margin-top: 0; /* 下の余白をなくす */
    margin-bottom: -1.0; /* 下の余白をなくす */
}
.wp-caption-text {
  line-height: 1.2;
  margin-top: 0.3em;
  margin-bottom: 0;
}

.wp-caption img {
	margin: 0;
	vertical-align: middle;
}