/*
Theme Name: flblog
Theme URI: https://www.faleco.co.jp/shop/blog/
Author: FLC (based on the original flblog theme)
Description: Fashion leace スタッフブログ用。WordPress 7.1.3 / PHP 8.3 対応版。従来のデザイン・URL・ショートコードを考慮し、レスポンシブ構成へ再構築。
Version: 2.0.1
Requires at least: 7.1
Requires PHP: 8.3
Text Domain: flblog
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --fl-bg: #f8f8f8;
  --fl-paper: #fff;
  --fl-text: #333a40;
  --fl-muted: #737a7e;
  --fl-border: #e6e4e1;
  --fl-accent: #d35134;
  --fl-accent-dark: #b9412a;
  --fl-soft: #f5f5f5;
  --fl-header: #fff;
  --fl-footer: #34383a;
  --fl-radius: 4px;
  --fl-max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--fl-bg); color: var(--fl-text); font-family: 'Noto Sans JP','Yu Gothic','Hiragino Kaku Gothic ProN',Meiryo,Arial,sans-serif; font-size: 15px; line-height: 1.85; -webkit-text-size-adjust: 100%; }
body.flblog-scheme-dark { --fl-bg: #242729; --fl-paper: #303437; --fl-text: #f1f1f1; --fl-muted: #c8c9cb; --fl-border: #4a4d50; --fl-soft: #3a3d40; --fl-header: #292d30; --fl-footer: #1c1e20; }
body.flblog-scheme-custom { --fl-accent: #d35134; }
a { color: var(--fl-text); text-decoration: none; transition: color .2s ease, background-color .2s ease; }
a:hover { color: var(--fl-accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--fl-accent); outline-offset: 3px; }
img { max-width: 100%; height: auto; vertical-align: middle; }
iframe, video { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1.4em; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .8em; line-height: 1.45; font-weight: 700; }
figure { margin: 0 0 1.5em; }
ul, ol { padding-left: 1.5em; }
.clearfix::after { content: ''; display: table; clear: both; }
.container { max-width: var(--fl-max); margin-left: auto; margin-right: auto; padding-left: 22px; padding-right: 22px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip: rect(1px,1px,1px,1px); white-space: nowrap; overflow: hidden; }
.screen-reader-text:focus { position: fixed !important; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; padding: 12px; clip: auto; background: #fff; color: #222; }

/* Header — preserves original left logo / right menu composition. */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--fl-header); border-bottom: 1px solid var(--fl-border); box-shadow: 0 2px 9px rgba(0,0,0,.04); }
body.admin-bar .site-header { top: 32px; }
.site-header__inner { min-height: 91px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.site-branding { display: flex; flex: 0 0 auto; align-items: center; min-width: 0; }
.site-branding .custom-logo { display: block; width: auto; height: auto; max-width: 210px; max-height: 72px; }
.site-branding__logo { max-width: 215px; max-height: 76px; width: auto; height: auto; }
.site-branding__text { display: inline-flex; flex-direction: column; font-size: 27px; font-style: italic; font-weight: 800; color: var(--fl-text); letter-spacing: -.05em; line-height: 1.3; white-space: nowrap; }
.site-branding__text span { margin-top: 2px; font-size: 9px; font-style: normal; letter-spacing: .35em; color: var(--fl-accent); text-align: center; }
.site-nav { flex: 0 1 auto; }
.site-nav__list, .site-nav__list ul { list-style: none; padding: 0; margin: 0; }
.site-nav__list { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.site-nav__list > li { position: relative; margin: 0; }
.site-nav__list a { display: block; padding: 16px 12px; color: var(--fl-text); font-size: 13px; font-weight: 700; white-space: nowrap; }
.site-nav__list > li > a:hover, .site-nav__list > li.current-menu-item > a { color: var(--fl-accent); }
.site-nav__list .sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 5; min-width: 185px; padding: 6px 0; border: 1px solid var(--fl-border); background: var(--fl-header); box-shadow: 0 8px 20px rgba(0,0,0,.11); }
.site-nav__list li:hover > .sub-menu, .site-nav__list li:focus-within > .sub-menu { display: block; }
.site-nav__list .sub-menu a { padding: 10px 14px; white-space: normal; }
.site-nav-toggle { display: none; padding: 7px 10px; align-items: center; flex-direction: column; gap: 6px; background: transparent; color: var(--fl-text); border: 1px solid var(--fl-border); border-radius: 3px; font-size: 11px; }
.site-nav-toggle__bars { display: flex; flex-direction: column; justify-content: space-between; width: 22px; height: 16px; }
.site-nav-toggle__bars span { display: block; width: 100%; height: 2px; background: currentColor; }

/* Shared page area and breadcrumb. */
.blog-shell { padding-top: 26px; padding-bottom: 72px; }
.breadcrumb { padding: 0 0 24px; font-size: 12px; color: var(--fl-muted); }
.breadcrumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { min-width: 0; overflow-wrap: anywhere; }
.breadcrumb li:not(:last-child)::after { content: '›'; display: inline-block; margin-left: 10px; color: #bbb; }
.breadcrumb a { color: var(--fl-muted); }
.breadcrumb a:hover { color: var(--fl-accent); }
.blog-layout { display: block; }
.blog-layout--sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; align-items: start; }
.site-main { min-width: 0; width: 100%; }
.page-body { padding: 32px 38px 44px; background: var(--fl-paper); border: 1px solid var(--fl-border); border-radius: var(--fl-radius); box-shadow: 0 2px 14px rgba(0,0,0,.025); }
.blog-hero { text-align: center; }
.blog-hero__eyebrow { margin: 0 0 5px; color: var(--fl-accent); font-size: 10px; font-weight: 700; letter-spacing: .28em; }
.blog-hero__title { margin-bottom: 19px; font-size: clamp(26px, 4vw, 36px); color: var(--fl-text); }
.blog-hero__image { display: block; margin: 0 auto 23px; max-width: 100%; width: auto; height: auto; }

/* Original blog search and quick keyword controls. */
.blog-search { margin: 15px auto 35px; padding: 20px 12px 25px; background: var(--fl-soft); border-radius: 4px; text-align: center; }
.blog-search-form { display: flex; max-width: 510px; margin: 0 auto; }
.blog-search-form input[type="search"] { display: block; flex: 1 1 auto; width: 1%; min-width: 0; padding: 11px 14px; border: 1px solid var(--fl-border); border-radius: 3px 0 0 3px; background: var(--fl-paper); color: var(--fl-text); font-size: 14px; }
.blog-search-form button { flex: 0 0 auto; padding: 10px 20px; border: 1px solid var(--fl-accent); border-radius: 0 3px 3px 0; background: var(--fl-accent); color: #fff; font-size: 14px; font-weight: 700; }
.blog-search-form button:hover { background: var(--fl-accent-dark); }
.blog-search__heading { margin: 18px 0 11px; font-size: 13px; font-weight: 700; }
.blog-search__keywords { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.blog-search .ca-button { display: inline-block; padding: 5px 17px; border: 1px solid var(--fl-border); border-radius: 3px; background: var(--fl-paper); font-size: 12px; }
.blog-search .ca-button:hover { background: var(--fl-accent); border-color: var(--fl-accent); color: #fff; }

/* List cards retain the thumbnail left / grey headline / paper aesthetic. */
.blog-list { width: 100%; }
.post-card { display: flex; gap: 23px; padding: 25px 1px 26px; border-bottom: 1px dashed var(--fl-border); }
.post-card:first-child { padding-top: 5px; }
.post-card:last-child { border-bottom: 0; }
.post-card__media { align-self: flex-start; flex: 0 0 165px; display: block; max-width: 35%; border: 1px solid var(--fl-border); padding: 5px; background: var(--fl-paper); }
.post-card__image { display: block; width: 100%; height: 128px; object-fit: cover; transition: opacity .2s; }
.post-card__media:hover .post-card__image { opacity: .8; }
.post-card__body { min-width: 0; flex: 1 1 auto; }
.post-card__title { margin: 0; padding: 12px 16px; background: var(--fl-soft); border-left: 3px solid var(--fl-accent); font-size: 18px; line-height: 1.6; overflow-wrap: anywhere; }
.post-card__title a { color: var(--fl-text); }
.post-card__title a:hover { color: var(--fl-accent); }
.wdates, .post-card__date { display: block; margin: 6px 0 13px; text-align: right; color: var(--fl-muted); font-size: 12px; font-weight: 600; }
.post-card__excerpt { font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.post-card__excerpt p { margin-bottom: 12px; }
.link-next, .post-card__read { margin: 5px 0 0; text-align: right; }
.link-next a { display: inline-block; padding: 6px 14px; background: #3a3535; color: #fff; font-size: 12px; }
.link-next a:hover { background: var(--fl-accent); color: #fff; }

/* Pagination uses native WordPress navigation (no WP-PageNavi dependency). */
.navigation.pagination { margin-top: 35px; }
.navigation.pagination .nav-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; }
.navigation.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 4px 10px; border: 1px solid var(--fl-border); color: var(--fl-text); background: var(--fl-paper); border-radius: 3px; font-size: 13px; }
.navigation.pagination a.page-numbers:hover, .navigation.pagination .page-numbers.current { color: #fff; background: var(--fl-accent); border-color: var(--fl-accent); }

/* Single article uses a subtle version of the original white paper/shadow box. */
.blog-single { padding: 36px 42px 50px; }
.blog-single__header { padding-bottom: 18px; margin-bottom: 25px; border-bottom: 1px solid var(--fl-border); }
.blog-single__title { font-size: clamp(23px, 3.3vw, 31px); line-height: 1.55; overflow-wrap: anywhere; }
.blog-single__date { display: block; color: var(--fl-muted); font-size: 13px; }
.paper { padding: 24px 25px; margin-bottom: 40px; border: 1px solid var(--fl-border); background: var(--fl-paper); box-shadow: 11px 10px 0 -6px var(--fl-soft), 11px 10px 1px -5px var(--fl-border); }
.blog-content { min-width: 0; font-size: 15px; line-height: 1.95; overflow-wrap: anywhere; }
.blog-content > *:last-child { margin-bottom: 0; }
.blog-content h2 { margin-top: 1.8em; padding: 12px 16px; background: var(--fl-soft); border-left: 4px solid var(--fl-accent); font-size: 22px; }
.blog-content h3 { margin-top: 1.6em; padding-bottom: 7px; border-bottom: 1px solid var(--fl-border); font-size: 19px; }
.blog-content h4 { margin-top: 1.4em; font-size: 17px; }
.blog-content a { color: var(--fl-accent); text-decoration: underline; text-underline-offset: 2px; }
.blog-content ul, .blog-content ol { margin-top: 1em; margin-bottom: 1.6em; }
.blog-content li { margin-bottom: .4em; }
.blog-content blockquote { margin: 24px 0; padding: 12px 16px; background: var(--fl-soft); border-left: 4px solid var(--fl-accent); }
.blog-content blockquote > p:last-child { margin-bottom: 0; }
.blog-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin-bottom: 1.6em; }
.blog-content table th, .blog-content table td { border: 1px solid var(--fl-border); padding: 8px 12px; }
.blog-content figure, .blog-content img { max-width: 100%; height: auto; }
.blog-content .aligncenter, .aligncenter { display: block; margin: 18px auto; text-align: center; }
.blog-content .alignleft, .alignleft { float: left; max-width: 48%; margin: 0 20px 14px 0; }
.blog-content .alignright, .alignright { float: right; max-width: 48%; margin: 0 0 14px 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption, figcaption { margin: 6px 0 14px; color: var(--fl-muted); font-size: 12px; line-height: 1.7; text-align: center; }
.wp-block-image img, .wp-block-cover img { height: auto; }
.wp-block-embed iframe { max-width: 100%; }
.wp-block-column { min-width: 0; }
.blog-content .wp-block-button__link { color: #fff; text-decoration: none; }
.post-page-links { margin: 20px 0; }
.blog-related-gallery { margin: 25px 0; }
.page-featured-image { margin-bottom: 24px; }
.post-navigation { margin: 30px 0; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.post-navigation .nav-previous, .post-navigation .nav-next { flex: 1 1 220px; min-width: 0; }
.post-navigation .nav-next { text-align: right; }
.post-navigation a { display: block; padding: 10px 14px; background: var(--fl-soft); font-size: 13px; overflow-wrap: anywhere; }
.post-navigation a span { display: block; color: var(--fl-muted); font-size: 11px; }

/* Widget styling. */
.blog-sidebar { min-width: 0; }
.blog-sidebar .widget { margin-bottom: 22px; padding: 20px; border: 1px solid var(--fl-border); border-radius: 3px; background: var(--fl-paper); }
.blog-sidebar .widget-title { margin: 0 0 12px; padding: 0 0 10px; border-bottom: 2px solid var(--fl-accent); font-size: 16px; }
.blog-sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.blog-sidebar .widget li { padding: 6px 0; border-bottom: 1px dashed var(--fl-border); font-size: 13px; }
.blog-sidebar input, .blog-sidebar select { max-width: 100%; }

/* Comments respect WordPress' own comment settings and required fields. */
.comments-area { margin-top: 35px; padding-top: 22px; border-top: 1px solid var(--fl-border); }
.comments-title, .comment-reply-title { font-size: 19px; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { margin-bottom: 18px; padding: 15px; border: 1px solid var(--fl-border); border-radius: 3px; }
.comment-list .children { margin-top: 14px; }
.comment-form label { display: block; margin-bottom: 4px; }
.comment-form input:not([type="checkbox"]), .comment-form textarea { width: 100%; max-width: 100%; padding: 10px; border: 1px solid var(--fl-border); background: var(--fl-paper); color: var(--fl-text); border-radius: 3px; }
.comment-form .form-submit input { max-width: 240px; padding: 11px; border: 0; background: var(--fl-accent); color: #fff; font-weight: bold; }
.comment-form .form-submit input:hover { background: var(--fl-accent-dark); }

/* Zero-results, 404. */
.blog-empty { padding: 32px 14px; text-align: center; }
.blog-empty h2 { font-size: 22px; }
.blog-404 { max-width: 800px; margin: 0 auto; }
.blog-404__number { margin: 0; color: var(--fl-accent); font-size: 90px; font-weight: 800; line-height: 1.3; }
.button-link { display: inline-block; padding: 10px 18px; background: var(--fl-accent); color: #fff; font-size: 13px; border-radius: 3px; }
.button-link:hover { color: #fff; background: var(--fl-accent-dark); }

/* Footer replaces the out-of-date physical-shop details from the old template. */
.site-footer { padding: 45px 0 16px; background: var(--fl-footer); color: #eee; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr); gap: 50px; padding-bottom: 28px; }
.site-footer__brand-name { margin: 0 0 16px; color: #fff; font-size: 26px; font-weight: 800; font-style: italic; }
.site-footer__brand-name span { margin-left: 7px; font-style: normal; font-size: 9px; font-weight: 400; letter-spacing: .14em; }
.site-footer__description { max-width: 570px; color: #e2e2e2; font-size: 13px; }
.site-footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 18px; padding: 0; margin: 0; list-style: none; }
.site-footer__links li { font-size: 12px; }
.site-footer a { color: #e8e8e8; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom { display: flex; gap: 15px; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.15); color: #bbb; font-size: 12px; }
.site-footer__social { display: flex; gap: 15px; }
.back-to-top { display: none; position: fixed; z-index: 90; right: 21px; bottom: 25px; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #393a3c; color: #fff; font-size: 24px; box-shadow: 0 3px 11px rgba(0,0,0,.22); }
.back-to-top.is-visible { display: flex; }
.back-to-top:hover { background: var(--fl-accent); }

/* WP theme check / classic content helpers. */
.sticky { border-left: 3px solid var(--fl-accent); }
.bypostauthor, .gallery-caption { display: initial; }
.wp-block-cover p { color: inherit; }
.entry-content::after { content: ''; display: table; clear: both; }

@media (max-width: 1000px) {
  .blog-layout--sidebar { grid-template-columns: minmax(0, 1fr) 220px; gap: 19px; }
  .page-body { padding: 28px 24px 38px; }
  .site-nav__list a { padding: 13px 9px; font-size: 12px; }
  .site-branding__text { font-size: 23px; }
}
@media (max-width: 800px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header__inner { min-height: 73px; flex-wrap: wrap; gap: 12px; }
  .site-branding__logo { max-height: 57px; max-width: 190px; }
  .site-nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav { display: none; flex: 1 0 100%; width: 100%; }
  .site-nav.is-open { display: block; }
  .site-nav__list { display: block; padding-bottom: 16px; }
  .site-nav__list > li { border-top: 1px solid var(--fl-border); }
  .site-nav__list a { padding: 11px 8px; font-size: 14px; }
  .site-nav__list .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 0 16px; border: 0; box-shadow: none; }
  .blog-layout--sidebar { display: block; }
  .blog-sidebar { margin-top: 30px; }
  .blog-shell { padding-top: 19px; padding-bottom: 45px; }
}
@media (max-width: 600px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .page-body, .blog-single { padding: 24px 15px 32px; }
  .breadcrumb { padding-bottom: 15px; }
  .blog-hero__title { font-size: 27px; }
  .post-card { display: block; padding: 22px 0 24px; }
  .post-card__media { width: 165px; max-width: 100%; float: left; margin: 4px 14px 10px 0; }
  .post-card__image { height: 118px; }
  .post-card__title { font-size: 16px; padding: 9px 11px; }
  .post-card__excerpt { font-size: 13px; }
  .post-card__read { clear: both; }
  .paper { padding: 15px 13px; }
  .blog-content { font-size: 14px; }
  .blog-content h2 { font-size: 19px; }
  .site-footer__top { display: block; }
  .site-footer__nav { margin-top: 24px; }
  .site-footer__bottom { display: block; }
  .site-footer__social { padding-top: 10px; }
  .back-to-top { width: 39px; height: 39px; right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, .post-card__image { transition: none; }
}
@media print {
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .site-nav-toggle, .blog-search, .back-to-top { display: none !important; }
  .page-body { box-shadow: none; border: 0; }
  .blog-layout--sidebar { display: block; }
  .blog-sidebar { display: none; }
}

/* Legacy 'responsive = no' theme option: keep the desktop layout intentionally. */
body.flblog-nonresponsive { min-width: 1024px; }
body.flblog-nonresponsive .container { min-width: 1024px; }
@media (max-width: 1000px) {
  body.flblog-nonresponsive .blog-layout--sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 250px; }
  body.flblog-nonresponsive .site-header__inner { flex-wrap: nowrap; }
  body.flblog-nonresponsive .site-nav-toggle { display: none; }
  body.flblog-nonresponsive .site-nav { display: block; flex: 0 1 auto; width: auto; }
  body.flblog-nonresponsive .site-nav__list { display: flex; padding-bottom: 0; }
  body.flblog-nonresponsive .site-nav__list > li { border-top: 0; }
  body.flblog-nonresponsive .site-nav__list a { padding: 16px 12px; font-size: 13px; }
  body.flblog-nonresponsive .post-card { display: flex; }
  body.flblog-nonresponsive .post-card__media { float: none; margin: 0; }
  body.flblog-nonresponsive .site-footer__top { display: grid; }
}
