/*
Theme Name: Sachi Style C
Template: twentyseventeen
Description: twentyseventeen の子テーマ。ヘッダー・フッター・色・文字をトップページ C案（タイの文化・セレクトショップ型）にそろえる。共通の部品と色の変数は mu-plugin cc-front-c-20261121.php（cc-front-c/front.css）。
Version: 1.1.0
Text Domain: sachistyle
*/

/* ---- 地・文字（親の html[lang="ja"] の指定より強く） ---- */
html[lang] body.cc-theme,
html[lang] body.cc-theme button,
html[lang] body.cc-theme input,
html[lang] body.cc-theme select,
html[lang] body.cc-theme textarea {
	font-family: var(--cc-sans);
	color: var(--cc-ink);
}
/* 親は日本語のとき字間を 0 !important にするので、ロゴだけ戻す */
html[lang="ja"] body.cc-theme .cc-logo__sub { letter-spacing: 0.2em !important; }
html[lang="ja"] body.cc-theme .cc-logo__main { letter-spacing: 0.06em !important; }
body.cc-theme { background: var(--cc-paper); font-size: 16px; line-height: 1.8; }
body.cc-theme .site-content-contain { background-color: var(--cc-paper); }
body.cc-theme .site-content { padding-top: 3.5em; padding-bottom: 4em; }

/* ---- 見出し ---- */
body.cc-theme .site-content h1,
body.cc-theme .site-content h2,
body.cc-theme .site-content h3,
body.cc-theme .site-content h4 {
	font-family: var(--cc-serif);
	font-weight: 700;
	color: var(--cc-ink);
	letter-spacing: 0.02em;
	line-height: 1.5;
	text-transform: none;
}
body.cc-theme .page-title,
body.cc-theme .entry-title,
body.cc-theme.page:not(.twentyseventeen-front-page) .entry-title {
	font-family: var(--cc-serif);
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.5;
	text-transform: none;
	color: var(--cc-ink);
}
body.cc-theme .entry-title a { color: var(--cc-ink); }
body.cc-theme .entry-content h2 { font-size: clamp(22px, 2.2vw, 26px); margin-top: 2em; }
body.cc-theme .entry-content h3 { font-size: 20px; }

/* ---- 投稿の日付・カテゴリ ---- */
body.cc-theme .entry-meta,
body.cc-theme .entry-footer,
body.cc-theme .cat-links,
body.cc-theme .tags-links {
	color: var(--cc-muted);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: none;
}
body.cc-theme .entry-meta a { color: var(--cc-muted); }

/* ---- リンク ---- */
body.cc-theme .entry-content a,
body.cc-theme .entry-summary a,
body.cc-theme .comment-content a,
body.cc-theme .widget a,
body.cc-theme .post-navigation a {
	color: var(--cc-accent);
	box-shadow: inset 0 -1px 0 rgba(154, 74, 42, 0.5);
}
body.cc-theme .entry-content a:hover,
body.cc-theme .entry-content a:focus,
body.cc-theme .entry-summary a:hover,
body.cc-theme .widget a:hover {
	color: var(--cc-accent-dark);
	box-shadow: inset 0 -2px 0 var(--cc-accent-dark);
}
body.cc-theme .entry-content a.wp-block-button__link,
body.cc-theme .entry-content a.wp-block-button__link:hover,
body.cc-theme .entry-content a img { box-shadow: none; }
/* 写真に重ねた文字（カバー）と、文字色を指定したリンクは元の色のまま */
body.cc-theme .entry-content .wp-block-cover a,
body.cc-theme .entry-content .has-text-color a,
body.cc-theme .entry-content a.has-text-color { color: inherit; box-shadow: none; }
body.cc-theme .entry-content .wp-block-cover a:hover,
body.cc-theme .entry-content .wp-block-cover a:focus { color: inherit; box-shadow: inset 0 -1px 0 currentColor; }

/* ---- ボタン ---- */
body.cc-theme button,
body.cc-theme input[type="button"],
body.cc-theme input[type="submit"] {
	background-color: var(--cc-accent);
	color: #fffdf8;
	border-radius: 999px;
	font-weight: 700;
	letter-spacing: 0.02em;
}
body.cc-theme button:hover,
body.cc-theme button:focus,
body.cc-theme input[type="button"]:hover,
body.cc-theme input[type="submit"]:hover { background-color: var(--cc-accent-dark); }
body.cc-theme .cc-header button { background: none; }
/* 本文の文字組み・ブロック・色合わせは mu-plugin の front.css（トップと共用） */

/* ---- 表・引用 ---- */
body.cc-theme blockquote { color: var(--cc-muted); border-left: 0; }
body.cc-theme table { border-color: var(--cc-rule); }

/* ---- アイキャッチの大きな画像（親は画面いっぱいの高さで出す）を抑える ---- */
body.cc-theme .single-featured-image-header { background: var(--cc-band); border-bottom: 0; }
body.cc-theme .single-featured-image-header img { display: block; width: 100%; max-width: none; height: clamp(220px, 36vw, 460px); object-fit: cover; }

/* ---- ページの見出しまわり・一覧 ---- */
body.cc-theme .entry-header,
body.cc-theme .page-header { margin-bottom: 2em; padding-bottom: 0; }
body.cc-theme.archive .site-main > article,
body.cc-theme.search .site-main > article,
body.cc-theme.blog .site-main > article { padding-bottom: 2.6em; margin-bottom: 2.6em; border-bottom: 1px solid var(--cc-rule); }
body.cc-theme.archive .post-thumbnail img,
body.cc-theme.search .post-thumbnail img,
body.cc-theme.blog .post-thumbnail img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 4px; }
body.cc-theme .post-navigation { border-top: 1px solid var(--cc-rule); border-bottom: 1px solid var(--cc-rule); }
body.cc-theme .pagination,
body.cc-theme .comments-pagination { border-top: 1px solid var(--cc-rule); }

/* ---- 404・検索欄 ---- */
.cc-404__links { list-style: none; padding: 0; margin: 1.5em 0 2em; display: flex; flex-wrap: wrap; gap: 10px; }
body.cc-theme .cc-404__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.2em; border: 1px solid var(--cc-rule); border-radius: 999px; background: var(--cc-card); color: var(--cc-ink); text-decoration: none; box-shadow: none; }
body.cc-theme .cc-404__links a:hover { border-color: var(--cc-accent); color: var(--cc-accent); }
body.cc-theme .search-form .search-field { background: #fffdf8; border: 1px solid var(--cc-rule); border-radius: 999px; padding: 0.75em 3.4em 0.75em 1.2em; }
body.cc-theme .search-form .search-submit { border-radius: 999px; }

@media screen and (max-width: 47.9875em) {
	body.cc-theme .wrap { padding-left: 20px; padding-right: 20px; }
	body.cc-theme .site-content { padding-top: 2.4em; }
}

/* =========================================
   WooCommerce 販売ページ（11-21 まで追加 CSS にあったものを移し、黒いボタンを C案の赤茶にした）
   商品・カート・購入手続きは白背景
   ========================================= */
body.cc-theme.woocommerce,
body.cc-theme.woocommerce-page { background: #ffffff !important; }
body.cc-theme.woocommerce .site-content,
body.cc-theme.woocommerce-page .site-content,
body.cc-theme.woocommerce .site-content-contain,
body.cc-theme.woocommerce-page .site-content-contain { background: #ffffff !important; color: #222222 !important; }
body.cc-theme.woocommerce .site-content,
body.cc-theme.woocommerce-page .site-content,
body.cc-theme.woocommerce .site-content p,
body.cc-theme.woocommerce-page .site-content p,
body.cc-theme.woocommerce .site-content h1,
body.cc-theme.woocommerce .site-content h2,
body.cc-theme.woocommerce .site-content h3,
body.cc-theme.woocommerce-page .site-content h1,
body.cc-theme.woocommerce-page .site-content h2,
body.cc-theme.woocommerce-page .site-content h3,
body.cc-theme.woocommerce .site-content label,
body.cc-theme.woocommerce-page .site-content label { color: #222222 !important; }
body.cc-theme.woocommerce .site-content a,
body.cc-theme.woocommerce-page .site-content a { color: var(--cc-accent); }
body.cc-theme.single-product .product,
body.cc-theme.single-product .woocommerce-tabs,
body.cc-theme.single-product .woocommerce-tabs .panel { background: #ffffff !important; color: #222222 !important; }
body.cc-theme.woocommerce .price,
body.cc-theme.woocommerce-page .price { color: #222222 !important; }
body.cc-theme .wc-block-cart,
body.cc-theme .wc-block-checkout { background: #ffffff !important; color: #222222 !important; }
body.cc-theme .wc-block-components-sidebar { background: #f7f7f7 !important; color: #222222 !important; }
body.cc-theme .wc-block-cart p,
body.cc-theme .wc-block-cart span,
body.cc-theme .wc-block-cart div,
body.cc-theme .wc-block-cart label,
body.cc-theme .wc-block-checkout p,
body.cc-theme .wc-block-checkout span,
body.cc-theme .wc-block-checkout div,
body.cc-theme .wc-block-checkout label { color: #222222; }
body.cc-theme.woocommerce input,
body.cc-theme.woocommerce select,
body.cc-theme.woocommerce textarea,
body.cc-theme.woocommerce-page input,
body.cc-theme.woocommerce-page select,
body.cc-theme.woocommerce-page textarea { background: #ffffff !important; color: #222222 !important; border: 1px solid #666666 !important; }
body.cc-theme.woocommerce input::placeholder,
body.cc-theme.woocommerce textarea::placeholder,
body.cc-theme.woocommerce-page input::placeholder,
body.cc-theme.woocommerce-page textarea::placeholder { color: #777777 !important; opacity: 1; }
body.cc-theme.woocommerce .site-content button,
body.cc-theme.woocommerce .site-content .button,
body.cc-theme.woocommerce-page .site-content button,
body.cc-theme.woocommerce-page .site-content .button { background: var(--cc-accent) !important; color: #fffdf8 !important; border-radius: 999px; }
body.cc-theme.woocommerce ul.products li.product .button { font-size: 13px; line-height: 1.4; padding: 0.7em 1.1em; white-space: normal; text-align: center; }
body.cc-theme.woocommerce .site-content button span,
body.cc-theme.woocommerce .site-content .button span,
body.cc-theme.woocommerce-page .site-content button span,
body.cc-theme.woocommerce-page .site-content .button span { color: #fffdf8 !important; }
body.cc-theme .wc-block-cart__submit-button,
body.cc-theme .wc-block-cart__submit-button span,
body.cc-theme .wc-block-cart__submit-button .wc-block-components-button__text { background: var(--cc-accent) !important; color: #fffdf8 !important; }
body.cc-theme .wc-block-cart__submit-button:disabled,
body.cc-theme .wc-block-components-button:disabled { background: #666666 !important; color: #ffffff !important; opacity: 1 !important; }
body.cc-theme .woocommerce-error,
body.cc-theme .woocommerce-message,
body.cc-theme .woocommerce-info { color: #ffffff !important; }
body.cc-theme .woocommerce-error li,
body.cc-theme .woocommerce-error span,
body.cc-theme .woocommerce-message span,
body.cc-theme .woocommerce-info span { color: #ffffff !important; }
body.cc-theme .woocommerce-error a.button,
body.cc-theme .woocommerce-message a.button,
body.cc-theme .woocommerce-info a.button { background: #ffffff !important; color: #222222 !important; border: 1px solid #222222 !important; padding: 6px 12px !important; }
body.cc-theme .woocommerce-error a.button *,
body.cc-theme .woocommerce-message a.button *,
body.cc-theme .woocommerce-info a.button * { color: #222222 !important; }
body.cc-theme.woocommerce-cart .entry-title,
body.cc-theme.woocommerce-cart h1,
body.cc-theme.woocommerce-checkout .entry-title,
body.cc-theme.woocommerce-checkout h1 { color: #222222 !important; }
body.cc-theme.woocommerce table,
body.cc-theme.woocommerce-page table { background: #ffffff !important; color: #222222 !important; }
body.cc-theme .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button,
body.cc-theme .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button span,
body.cc-theme .wc-block-components-checkout-place-order-button,
body.cc-theme .wc-block-components-checkout-place-order-button span { background: var(--cc-accent) !important; color: #fffdf8 !important; }
body.cc-theme .wc-block-components-checkout-place-order-button * { color: #fffdf8 !important; font-weight: 700 !important; }
