/*
Theme Name: Au Fil du Rêve / Lightning
Description: 旧サイト（Good Space）の幅・余白・文字・色を再現するLightning子テーマ。
Template: lightning
Version: 2.0.0
Requires PHP: 8.3
*/

/*
 * The values below come from the original site: Good Space's style.css, the Skeleton grid,
 * and the compiled style-custom.php that held the owner's saved options.
 * Page width 940px, 20px gutters, text 12px/18.5px, headings 16/16/15/16/16/15px.
 * Styles for the plugin's own blocks are in the plugin's content.css.
 */
:root {
	--afdr-text: #555;
	--afdr-heading: #383838;
	--afdr-link: #272727;
	--afdr-link-hover: #a1a1a1;
	--afdr-rule: #ececec;
	--afdr-gold: #a29152;
	--afdr-font: "HelveticaNeue", "Helvetica Neue", Arial, sans-serif;
	--afdr-serif: "Droid Serif", Georgia, serif;
	/* The 2×2 dot of the original title and callout bands, drawn without the theme's image. */
	--afdr-dots: conic-gradient(from 270deg at 1px 1px, rgb(0 0 0 / .16) 25%, transparent 0) 0 0 / 2px 2px;
	--vk-color-primary: #666;
	--vk-color-primary-dark: #444;
	--vk-color-primary-vivid: #666;
	--vk-color-text-body: var(--afdr-text);
	--vk-color-text-link: var(--afdr-link);
	--vk-color-text-link-hover: var(--afdr-link-hover);
	--vk-color-border-hr: #ddd;
}

/* Base ------------------------------------------------------------------- */
html { background: #fff; }
body.afdr-site {
	margin: 0;
	background: #fff;
	color: var(--afdr-text);
	font-family: var(--afdr-font);
	font-size: 12px;
	line-height: 18.5px;
	-webkit-text-size-adjust: 100%;
	overflow-wrap: anywhere;
}
.afdr-site a { color: var(--afdr-link); text-decoration: none; }
.afdr-site a:hover { color: var(--afdr-link-hover); text-decoration: none; }
.afdr-site a:focus-visible,
.afdr-site button:focus-visible { outline: 2px solid #888; outline-offset: 2px; }
.afdr-site img { max-width: 100%; height: auto; }
.afdr-site em { font-style: italic; }
.afdr-site strong { font-weight: bold; }

.afdr-site .container,
.afdr-site .site-body-container.container {
	width: 940px !important;
	max-width: calc(100% - 40px) !important;
	margin-right: auto;
	margin-left: auto;
	padding: 0 !important;
}
.afdr-site .site-body { padding: 20px 0 10px !important; }
.afdr-site .main-section { flex-basis: 100% !important; width: 100% !important; max-width: none !important; margin: 0 !important; }
.afdr-site .entry,
.afdr-site .entry-body { margin: 0; padding: 0; }
.afdr-site .entry-body::after { content: ""; display: block; clear: both; }
.afdr-site .entry-body > * { margin-top: 0; }

/* Header ----------------------------------------------------------------- */
.afdr-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: 940px;
	max-width: calc(100% - 40px);
	min-height: 160px;
	margin: 0 auto;
}
.afdr-brand { display: block; flex: 0 0 300px; margin-top: 20px; }
.afdr-site .afdr-brand img { display: block; width: 300px; height: auto; }
.afdr-navigation { margin: 82px -10px 0 0; font-size: 13px; text-align: center; }
.afdr-menu { display: flex; margin: 0; padding: 0; list-style: none; }
.afdr-menu > li { position: relative; margin: 0; padding: 0 0 19px; }
.afdr-site .afdr-menu a { display: block; padding: 0 18px; color: #7d7d7d; line-height: 24px; white-space: nowrap; }
.afdr-site .afdr-menu a:hover,
.afdr-site .afdr-menu .current-menu-item > a,
.afdr-site .afdr-menu .current-menu-ancestor > a { color: #343434; }
.afdr-site .afdr-menu .current-menu-item > a,
.afdr-site .afdr-menu .current-menu-ancestor > a { font-weight: bold; }
.afdr-menu .sub-menu {
	display: none;
	position: absolute;
	top: 43px;
	left: 0;
	z-index: 101;
	min-width: 188px;
	margin: 0;
	padding: 0;
	border: 1px solid #ececec;
	list-style: none;
	text-align: left;
}
.afdr-menu li:hover > .sub-menu,
.afdr-menu li:focus-within > .sub-menu { display: block; }
.afdr-menu .sub-menu li { margin: 0; padding: 8px 0 7px; background: #fdfdfd; }
.afdr-site .afdr-menu .sub-menu a { padding: 0 15px; font-weight: normal; }
.afdr-menu-toggle { display: none; }
.vk-mobile-nav-menu-btn,
.page_top_btn { display: none !important; }

/* Text ------------------------------------------------------------------- */
.afdr-site .site-body h1,
.afdr-site .site-body h2,
.afdr-site .site-body h3,
.afdr-site .site-body h4,
.afdr-site .site-body h5,
.afdr-site .site-body h6 {
	position: static;
	margin: 0 0 15px;
	padding: 0;
	overflow: visible;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: none;
	box-shadow: none;
	color: var(--afdr-heading);
	font-family: var(--afdr-font);
	font-weight: normal;
	line-height: inherit;
}
.afdr-site .site-body h1 { font-size: 16px; }
.afdr-site .site-body h2 { font-size: 16px; }
.afdr-site .site-body h3 { font-size: 15px; }
.afdr-site .site-body h4 { font-size: 16px; }
.afdr-site .site-body h5 { font-size: 16px; }
.afdr-site .site-body h6 { font-size: 15px; }
.afdr-site .site-body h1::before,
.afdr-site .site-body h1::after,
.afdr-site .site-body h2::before,
.afdr-site .site-body h2::after,
.afdr-site .site-body h3::before,
.afdr-site .site-body h3::after,
.afdr-site .site-body h4::before,
.afdr-site .site-body h4::after,
.afdr-site .site-body h5::before,
.afdr-site .site-body h5::after,
.afdr-site .site-body h6::before,
.afdr-site .site-body h6::after { display: none; }
.afdr-site .site-body p,
.afdr-site .site-body .entry-body p { margin: 0 0 20px; font-size: inherit; line-height: inherit; }
.afdr-site .site-body hr { clear: both; height: 0; margin: 10px 0 30px; border: solid #ddd; border-width: 1px 0 0; }

/* flow-root keeps margins inside each block, like the floated columns of the original grid. */
.afdr-legacy-copy { display: flow-root; }
.afdr-site .entry-body > .afdr-legacy-copy { margin-bottom: 20px; } /* A full-width column on the original grid. */
.afdr-legacy-copy img { display: block; max-width: 100%; height: auto; margin: 0; }
.afdr-legacy-copy img.emoji,
.afdr-legacy-copy img.wp-smiley { display: inline; }
.afdr-legacy-copy .alignleft { float: left; margin: 0 10px 10px 0; }
.afdr-legacy-copy .alignright { float: right; margin: 0 0 10px 10px; }
.afdr-legacy-copy .aligncenter { display: block; margin: 0 auto; }
.afdr-legacy-copy ul,
.afdr-legacy-copy ol { margin: 0 0 0 30px; padding: 0; }
.afdr-legacy-copy ul ul,
.afdr-legacy-copy ol ol { margin: 4px 0 5px 30px; }
.afdr-legacy-copy li { line-height: 18px; }
.afdr-legacy-copy li p { line-height: 21px; }
.afdr-legacy-copy blockquote { margin: 0 0 20px; padding: 9px 20px 0 19px; border-left: 1px solid #ddd; background: none; color: #777; font-size: 17px; font-style: italic; line-height: 24px; }
.afdr-legacy-copy table { width: 100%; margin: 0 0 20px; border: 1px solid #e5e5e5; border-spacing: 0; }
.afdr-legacy-copy th,
.afdr-legacy-copy td { padding: 9px 20px; border: 0; border-right: 1px solid #e5e5e5; }
.afdr-legacy-copy th { border-bottom: 1px solid #e5e5e5; background: #f7f7f7; color: #666; font-weight: bold; text-align: left; }
.afdr-legacy-copy th:last-child,
.afdr-legacy-copy td:last-child { border-right: 0; }
.afdr-legacy-copy iframe { display: block; max-width: 100%; }
.afdr-legacy-copy .wp-caption { max-width: 100% !important; margin: 0; }
.afdr-legacy-copy .wp-caption-text { margin: 5px 0 0; font-size: 11px; }

/* The owner's own additions to the old theme (AFDR STYLES), unchanged. */
.afdr-encadre-blanc { display: table; margin: 0 auto; padding: 10px 20px; border: 2px solid #c0c0c0; color: #000; font-size: 1.3em; line-height: 1.8em; text-align: center; }
.afdr-encadre-horaires { display: table; margin: 0 auto; padding: 10px 20px; border: 2px solid #c0c0c0; font-size: 1.5em; line-height: 1.5em; text-align: center; }
.afdr-title-1 { display: inline-block; margin-bottom: 1em; }
.afdr-title-1 span { padding: .5em 1em; background-color: #f0f0f0; color: #414141; font-size: 1.3em; font-weight: 300; line-height: 2.5em; }
.afdr-title-1 .size-small { font-size: 1.2em; }
.align-left { text-align: left; }
.font-100pc { font-size: 100%; }
.oneday { width: 80%; margin: 0 auto; }
.afdr-site .site-body .oneday p { color: #000; font-size: 1.15em; line-height: 1.6em; }
.afdr_calendar { width: 100%; }
.afdr_calendar a { text-decoration: underline; }
.afdr_calendar tr th { padding: .3em 0; border-bottom: 1px solid #ccc; color: #666; font-weight: 600; text-align: center; }
.afdr_calendar tr td { width: 14%; padding: .3em 0; border-bottom: 1px solid #ccc; color: #aaa; text-align: center; }
.afdr_calendar tr td.afdr_table_legend { padding: .5em; text-align: left; }
.afdr_calendar tr td .maru { font-size: 1.5em; }
.afdr_calendar tr .afdr_cal_year_month { padding: .5em; color: #666; }
.afdr_calendar tr .afdr_cal_hour_h1 { color: #b0b18b; }
.afdr_calendar tr .afdr_cal_hour_h2 { color: #83b19c; }
.afdr_calendar tr .afdr_cal_hour_h3 { color: #a985b1; }
.afdr_calendar tr .afdr_cal_hour_h4 { color: #8f8cb1; }
.afdr_calendar tr .afdr_cal_hour_h5 { color: #b19d8c; }
.afdr_calendar tr .afdr_cal_hour_h6 { color: #8cb1aa; }
.afdr_calendar tr .afdr_cal_hour_h7 { color: #b18ca2; }
.afdr_calendar tr .afdr_cal_hour_h8 { color: #b19d8c; }
.highlight { margin-right: 2em; color: var(--afdr-gold); font-family: "Zapfino", "Petit Formal Script", serif; }
.afdr-site .site-body h1.afdr,
.afdr-site .site-body h2.afdr,
.afdr-site .site-body h3.afdr { padding-bottom: .3em; border-bottom: 1px solid #999; color: #666; font-size: 1.7em; }

/* Column blocks use the original 940px grid: 300/620, 460/460, 220/220/460. */
.afdr-site .entry-body .wp-block-columns { flex-wrap: nowrap !important; gap: 0; margin: 0 -10px; }
.afdr-site .entry-body .wp-block-column { box-sizing: border-box; flex-grow: 0; flex-shrink: 0; min-width: 0; margin: 0 0 20px; padding: 0 10px; word-break: normal; }

/* Page furniture --------------------------------------------------------- */
.afdr-site .entry-body > .afdr-slideshow { margin: -20px 0 20px; }

.afdr-callout {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	margin: 0 0 20px;
	padding: 15px;
	border-bottom: 1px solid #f0f0f0;
	background: #fff var(--afdr-dots);
}
.afdr-callout::before,
.afdr-callout::after { content: ""; position: absolute; width: 11px; height: 11px; }
.afdr-callout::before { top: 0; left: 0; background: linear-gradient(135deg, #aaa 50%, transparent 50%); }
.afdr-callout::after { right: 0; bottom: 0; background: linear-gradient(315deg, #aaa 50%, transparent 50%); }
.afdr-callout > div { display: flex; flex-wrap: wrap; align-items: baseline; }
.afdr-site .site-body .afdr-callout h1,
.afdr-callout h1 { margin: 1px 20px 0 10px; color: #333; font-size: 20px; font-weight: bold; line-height: 30px; }
.afdr-site .site-body .afdr-callout p,
.afdr-callout p { margin: 0; color: #8c8c8c; font-size: 17px; }
.afdr-site .afdr-button,
.afdr-button { display: block; flex: none; padding: 7px 14px; background: #666; color: #fff; font-size: 13px; font-weight: bold; white-space: pre; transition: color .3s, background-color .3s; }
.afdr-site .afdr-button:hover { background: #000; color: #efefef; }

.afdr-divider,
.afdr-site .site-body hr.afdr-divider { clear: both; margin: 8px 0 20px; border: 0; border-bottom: 1px solid var(--afdr-rule); }
.afdr-site .entry-body .wp-block-spacer { clear: both; margin: 0; }

.afdr-title-bar {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 10px;
	margin: -20px 0 20px;
	padding: 11px 17px;
	background: var(--afdr-dots);
}
.afdr-title-bar::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: #e3e3e3; }
.afdr-site .site-body .afdr-title-bar h1 { margin: 0; color: var(--afdr-heading); font-size: 15px; font-weight: bold; line-height: 18px; }
.afdr-title-bar__caption { color: #7d7d7d; font-size: 13px; line-height: 18px; }

/* Contact has an empty right sidebar on the original site. */
.afdr-site.page-id-20 .entry-body > :not(.afdr-slideshow) { max-width: 640px; }
.afdr-site.page-id-20 .entry-body > .afdr-slideshow + .afdr-legacy-copy { padding-top: 5px; }

/* Work detail ------------------------------------------------------------ */
.afdr-work-layout { display: flex; gap: 20px; align-items: flex-start; margin: 0 0 20px; }
.afdr-work-image { flex: 0 1 580px; min-width: 0; }
.afdr-work-image img { display: block; width: 100%; height: auto; aspect-ratio: 580 / 482; object-fit: cover; }
.afdr-work-context { flex: 1 1 340px; min-width: 0; }
.afdr-work-description { margin: 0 0 20px; }
.afdr-little-bar { width: 16px; margin: 0 0 21px; padding-top: 6px; border-bottom: 1px solid #b4b4b4; }
.afdr-work-info { margin: 0 0 20px; color: #9e9e9e; font-size: 11px; }
.afdr-work-info .afdr-meta-label { margin-right: 5px; }
.afdr-work-nav { display: flex; gap: 1px; }
.afdr-site .afdr-work-nav a { position: relative; display: block; width: 23px; height: 25px; overflow: hidden; background: #333; text-indent: -1000px; white-space: nowrap; }
.afdr-work-nav a::after { content: ""; position: absolute; top: 8px; border: solid transparent; }
.afdr-work-nav__prev a::after { left: 8px; border-width: 5px 6px 5px 0; border-right-color: #fff; }
.afdr-work-nav__next a::after { right: 8px; border-width: 5px 0 5px 6px; border-left-color: #fff; }
.afdr-site .afdr-work-nav a:hover { background: #555; }

/* Blog post -------------------------------------------------------------- */
.afdr-single-info { display: flex; flex-wrap: wrap; margin: 0 0 20px; border-bottom: 1px dashed #ccc; color: #9e9e9e; font-family: var(--afdr-serif); font-size: 11px; }
.afdr-single-info > div { margin: 0 20px 7px 0; }
.afdr-single-info a { color: #9e9e9e; }
.afdr-post-body::after { content: ""; display: block; clear: both; }
.afdr-site .afdr-post-body a { text-decoration: underline; }
.afdr-post-closing { padding-top: 20px; }
.afdr-post-closing::before { content: ""; display: block; height: 0; margin-bottom: 20px; border-bottom: 1px dashed #ccc; }
.afdr-post-closing img { float: left; margin-right: 10px; }
.afdr-post-closing span { line-height: 20px; }
.afdr-post-closing .afdr-footer-widget::after { content: ""; display: block; clear: both; }

.comments-area { margin-top: 40px; }
.afdr-site .site-body .comments-title,
.afdr-site .site-body .comment-reply-title { color: var(--afdr-link); font-size: 18px; }
.afdr-site .comment-list { margin: 0; padding: 0; border: 0; list-style: none; }
.afdr-site .comment-list .children { margin: 0 0 0 30px; padding: 0; list-style: none; }
.afdr-site .comment-list li { margin: 0; padding: 0; border: 0; }
.afdr-site .no-comments { display: none; }
.comment-list .comment-body { margin-top: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--afdr-rule); }
.comment-list .comment-author { font-size: 13px; }
.comment-list .comment-metadata { font-family: var(--afdr-serif); font-size: 11px; font-style: italic; }
.comment-respond { margin-top: 30px; }
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea { max-width: 100%; border: 1px solid #cfcfcf; background: #fff; color: #888; font: 13px/20px var(--afdr-font); }

/* Footer ----------------------------------------------------------------- */
.afdr-footer { margin: 0; background: #f0f0f0; color: #888; font-size: 12px; line-height: 18.5px; }
.afdr-footer .container { display: block; }
.afdr-footer-columns { display: grid; grid-template-columns: 220px 220px minmax(0, 460px); gap: 20px; box-sizing: border-box; min-height: 196px; padding: 35px 0 20px; }
.afdr-footer-widget { margin: 0 0 35px; }
.afdr-footer p { margin: 0 0 20px; }
.afdr-site .afdr-footer a { color: #000; }
.afdr-site .afdr-footer a:hover { color: #a8a8a8; }
.afdr-copyright { padding: 12px 0; background: #e6e6e6; box-shadow: inset 0 3px 6px -3px #b0b0b0; color: #808080; font-size: 11px; font-weight: bold; text-align: center; }
.afdr-copyright .afdr-footer-widget { margin: 0; }

/* Tablet ----------------------------------------------------------------- */
@media (min-width: 782px) and (max-width: 979px) {
	.afdr-brand { flex-basis: 260px; }
	.afdr-site .afdr-brand img { width: 260px; }
	.afdr-navigation { margin-top: 66px; }
	.afdr-site .afdr-menu a { padding: 0 10px; }
	.afdr-sidebar-layout { grid-template-columns: minmax(0, 1fr) 240px; }
	.afdr-footer-columns { grid-template-columns: 1fr 1fr 2fr; }
	.afdr-work-image { flex-basis: 56%; }
}

/* Smartphone: one column, same order as the original, larger text ------------ */
@media (max-width: 781px) {
	body.afdr-site { font-size: 14px; line-height: 1.65; }
	.afdr-header { display: block; text-align: center; min-height: 0; }
	.afdr-brand { margin: 20px auto 16px; }
	.afdr-site .afdr-brand img { display: inline-block; width: 260px; max-width: 100%; }
	.afdr-menu-toggle { display: block; box-sizing: border-box; width: 100%; height: 40px; margin: 0 0 20px; padding: 0 12px; border: 1px solid #ccc; border-radius: 2px; background: #fff; color: #666; font: 13px var(--afdr-font); text-align: left; }
	.afdr-menu-toggle::after { content: ""; float: right; margin-top: 7px; border: solid transparent; border-width: 5px 4px 0; border-top-color: #777; }
	.afdr-menu-toggle[aria-expanded=true] { margin-bottom: 0; }
	.afdr-navigation { display: none; margin: 0 0 20px; border: 1px solid #ececec; border-top: 0; text-align: left; font-size: 14px; }
	.afdr-navigation.is-open { display: block; }
	.afdr-menu { display: block; }
	.afdr-menu > li { padding: 0; border-bottom: 1px solid #ececec; }
	.afdr-menu > li:last-child { border-bottom: 0; }
	.afdr-site .afdr-menu a { padding: 10px 14px; line-height: 1.5; white-space: normal; }
	.afdr-menu .sub-menu { display: block; position: static; min-width: 0; border: 0; }
	.afdr-menu .sub-menu li { padding: 0; }
	.afdr-site .afdr-menu .sub-menu a { padding: 0 14px 10px 28px; }

	.afdr-site .site-body { padding-top: 0 !important; }
	.afdr-site .entry-body > .afdr-slideshow { margin: 0 0 16px; }
	.afdr-site .site-body h1,
	.afdr-site .site-body h2,
	.afdr-site .site-body h4,
	.afdr-site .site-body h5 { font-size: 17px; line-height: 1.5; }
	.afdr-site .site-body h3,
	.afdr-site .site-body h6 { font-size: 16px; line-height: 1.5; }
	.afdr-site .site-body p,
	.afdr-site .site-body .entry-body p { line-height: inherit !important; }
	.afdr-legacy-copy p[style*="font-size: 13px"] { font-size: inherit !important; }
	.afdr-legacy-copy li { line-height: 1.6; }
	.afdr-legacy-copy table { display: block; overflow-x: auto; }
	.afdr-legacy-copy th,
	.afdr-legacy-copy td { padding: 8px 10px; }
	.afdr-encadre-blanc,
	.afdr-encadre-horaires { display: block; max-width: 100%; box-sizing: border-box; font-size: 1.1em; }
	.oneday { width: 100%; }
	.highlight { display: block; margin: 0 0 .4em; line-height: 2.2em; }
	.afdr-site .site-body h1.afdr,
	.afdr-site .site-body h2.afdr,
	.afdr-site .site-body h3.afdr { font-size: 1.3em; line-height: 1.5; }

	.afdr-site .entry-body .wp-block-columns { display: block; margin: 0; }
	.afdr-site .entry-body .wp-block-column { padding: 0; margin: 0 0 16px; }
	.afdr-site .entry-body .wp-block-column > .afdr-legacy-copy img[width="300"],
	.afdr-site .entry-body .wp-block-column > .afdr-legacy-copy > a > img:not([width]) { width: 100%; }

	.afdr-callout { display: block; padding: 15px; text-align: center; }
	.afdr-callout > div { display: block; margin-top: 12px; }
	.afdr-site .site-body .afdr-callout h1 { margin: 0 0 4px; font-size: 19px; line-height: 1.4; }
	.afdr-site .site-body .afdr-callout p { font-size: 15px; }
	.afdr-callout { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 0; }
	.afdr-site .afdr-button { padding: 10px 14px; white-space: normal; }

	.afdr-site .entry-body .wp-block-spacer { max-height: 20px; }

	.afdr-title-bar { margin: 0 0 16px; padding: 11px 14px; }
	.afdr-site .site-body .afdr-title-bar h1 { font-size: 16px; line-height: 1.4; }
	.afdr-site.page-id-20 .entry-body > :not(.afdr-slideshow) { max-width: none; }

	.afdr-work-layout { display: block; }
	.afdr-work-image { margin: 0 0 15px; }
	.afdr-work-info,
	.afdr-single-info { font-size: 12px; }

	.afdr-footer { font-size: 14px; line-height: 1.7; }
	.afdr-footer-columns { display: block; min-height: 0; padding: 28px 0 8px; }
	.afdr-footer-widget { margin: 0 0 16px; }
	.afdr-footer p { margin: 0; }
	.afdr-copyright { padding: 12px 0; font-size: 11px; line-height: 1.7; }
}
