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

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

/* --- h2 --- */
.single-post .entry-content h2,
body:not(.home) .page .entry-content h2 {
    display: block !important;
    width: 100% !important;
    background-color: #f4f0eb !important;
    border: none !important;
    padding: 0.8em 1.2em !important;
    margin: 2.5em 0 1.2em 0 !important;
    font-size: 1.35rem !important;
    font-weight: 500 !important;
    color: #222222 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.05em !important;
    text-align: left !important;
    border-left: 3px solid #a8a29e !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important; 
}

.single-post .entry-content h2::before,
.single-post .entry-content h2::after,
body:not(.home) .page .entry-content h2::before,
body:not(.home) .page .entry-content h2::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* --- h3 --- */
.single-post .entry-content h3,
body:not(.home) .page .entry-content h3 {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-left: 3px solid #f4f0eb !important;
    padding: 0 0 0.7em 14px !important;
    margin: 2.8em 0 1.4em 0 !important;
    font-size: 1.22rem !important;
    font-weight: 500 !important;
    color: #222222 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.05em !important;
    text-align: left !important;
}

.single-post .entry-content h3::after,
body:not(.home) .page .entry-content h3::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background-color: #f4f0eb !important;
    border-radius: 1px !important;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.06) !important;
}

.single-post .entry-content h3::before,
body:not(.home) .page .entry-content h3::before {
    content: none !important;
    display: none !important;
}

/* --- 目次 --- */
.single-post #toc,
body:not(.home) .page #toc {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    border-top: 1px solid #f4f0eb !important;
    border-bottom: 1px solid #f4f0eb !important;
    box-shadow: none !important;
}

.single-post #toc .toc-title,
body:not(.home) .page #toc .toc-title {
    color: #222222 !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.12em !important;
}

.skin-grayish .tnt-number .toc-list > li > a::before,
.single-post #toc .toc-content .toc-list > li > a::before,
body:not(.home) .page #toc .toc-content .toc-list > li > a::before {
    background-color: rgba(194, 181, 168, 0.85) !important;
    color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.skin-grayish .tnt-number .toc-list ol li a::before,
.single-post #toc .toc-content .toc-list ol li a::before,
body:not(.home) .page #toc .toc-content .toc-list ol li a::before {
    content: "•" !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #c2b5a8 !important;
    font-size: 14px !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

.skin-grayish .tnt-number .toc-list ol li a,
.single-post #toc .toc-content .toc-list ol li a,
body:not(.home) .page #toc .toc-content .toc-list ol li a {
    position: relative !important;
    padding-left: 16px !important;
}

.single-post #toc .toc-content a,
body:not(.home) .page #toc .toc-content a {
    color: #333333 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.single-post #toc .toc-content a:hover,
body:not(.home) .page #toc .toc-content a:hover {
    color: #a8a29e !important;
    transition: color 0.3s ease !important;
}

/* 記事本文内の単体画像だけに前後の余白を付与 */
.article .entry-content > figure.wp-block-image {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* 画像のキャプションを中央揃えにする */
.wp-block-image figcaption {
	text-align: center;
	margin: 0.8em 0 0 0;
}

/* -----------------------------------------
 * Phone Link Control
 * ----------------------------------------- */
/* PC（768px以上）では電話リンクを無効化し、見た目もテキストにする */
@media(min-width: 768px) {
    #access a[href^="tel:"] {
        pointer-events: none; /* クリック不可 */
        color: inherit;       /* リンク色にしない */
        text-decoration: none; /* 下線を消す */
        cursor: default;      /* カーソルを矢印のままに */
    }
}

/* スマホ（767px以下）ではタップしやすいように調整（任意） */
@media(max-width: 767px) {
    #access a[href^="tel:"] {
        font-weight: bold;
        color: #007aff; /* iPhoneの標準的なリンク色や、サイトのアクセントカラーに */
    }
}

#access h2 {
    margin-top: 0;
}

/* 駐車場セクション専用の画像制御 */
.parking img {
    margin: 10px 0 !important;
    border-radius: 4px;
    border: 1px solid #555;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    height: auto;
    display: block;
}

/* 駐車場セクション専用のアコーディオン制御 */
.parking details {
    margin: 10px 0;
}

.parking summary {
    font-size: 0.9em;
    cursor: pointer;
    white-space: nowrap;
}

.parking summary::before {
    content: "📍";
}

/* マップコンテナ */
.map-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 10px 0 20px;
    border-radius: 8px;
    border: 1px solid #555;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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