/**
Theme Name: Koshishirai Theme
Author: koshishirai
Description: koshishirai.com 独自テーマ候補
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: koshishirai-theme
*/

/* [All] リンク下線消す */
a { text-decoration: none;}

/* [All] Footer 余白 0px */
.entry-content .wp-block-columns{margin-bottom:0}

/* [All] Font */
.menu-link{font-style:oblique}

/* Koshishirai Theme base layout, independent of a parent theme. */
:root {
  --ast-global-color-0: #4db6ac;
  --ast-global-color-1: #3a3a3a;
  --ast-global-color-2: #03fae3;
  --ast-global-color-3: #4b4f58;
  --ast-global-color-4: #f5f5f5;
  --ast-global-color-5: #ffffff;
  --ast-global-color-6: #f2f5f7;
  --ast-global-color-7: #2c2c2c;
  --ast-global-color-8: #000000;
  --ast-border-color: #eaeaea;
  --ks-content-reading: 60rem;
  --ks-tool-max-width: 1000px;
  /* Outer border-box width, including the existing responsive gutters. */
  --ks-container-max-width: 1200px;
  /* In-flow publisher-owned ad wrappers only; Auto ads own their geometry. */
  --ks-ad-max-width: 1200px;
  --ks-content-wide: var(--ks-container-max-width);
  --ks-gutter: clamp(1rem, 4vw, 3rem);
  --ks-radius: .5rem;
  --ks-border: 1px solid var(--ast-border-color);
}

html { box-sizing: border-box; font-size: 112.5%; min-height: 100%; }
*, *::before, *::after { box-sizing: inherit; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: #fff;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.8571428571;
  -webkit-font-smoothing: antialiased;
}
body { line-height: 0; }
#page { line-height: 1.8571428571; }

body:not(.home),
body:not(.home) #page,
body:not(.home) #content,
body:not(.home) .site-content {
  background-color: #2c2c2c;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
main, nav { display: block; }
button, input, select, textarea { font: inherit; }
button, input[type="button"], input[type="submit"] { cursor: pointer; }

.ast-container {
  width: 100%;
  max-width: var(--ks-container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-inline: var(--ks-gutter);
}

/* Normal-flow sticky footer: the content, not the footer, takes spare space.
 * WordPress reserves its toolbar above html; use Core's responsive height. */
html:has(> body.admin-bar) { min-height: 0; }
body.admin-bar {
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
  min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}
#page {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
}
#page > #masthead, #page > #colophon { flex: 0 0 auto; }
#page > #content { flex: 1 0 auto; min-width: 0; }
#primary, #secondary { width: 100%; }
#primary { margin: 1em 0; }
.entry-header { margin-bottom: 1.2em; word-wrap: break-word; }
.entry-title { margin: 0 0 .67em; color: #fff; font-size: 2em; font-weight: 700; line-height: 1.3; text-align: center; word-wrap: break-word; }
.entry-content { word-wrap: break-word; min-width: 0; }
.entry-content::after { display: table; clear: both; content: ""; }
.entry-content p { margin-bottom: 1.6em; }
.entry-content h1, h1 { color: #fff; font-size: 2em; line-height: 1.2; }
.entry-content h2, h2 { color: #fff; font-size: 1.7em; line-height: 1.3; }
.entry-content h3, h3 { color: #fff; font-size: 1.5em; line-height: 1.4; }
.entry-content h4, h4 { color: #fff; font-size: 1.3em; line-height: 1.5; }
.entry-content h5, h5 { color: #fff; font-size: 1.2em; line-height: 1.6; }
.entry-content h6, h6 { color: #fff; font-size: 1.1em; line-height: 1.7; }

@media (max-width: 921px) {
  .ast-container { padding-left: 10px; padding-right: 10px; }
}

.entry-content a,
.comments-area a { color: var(--ast-global-color-0); }

a { color: #4db6ac; }

.post-edit-link,
.edit-link a,
a[href*="/wp-admin/"] { color: inherit; }

button,
input[type="button"],
input[type="submit"],
.button,
.wp-block-button__link {
  padding: 10px 15px;
  color: #fff;
  background: var(--ast-global-color-0);
  border: 0;
  border-radius: 2px;
  line-height: 1.8571428571;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.7em;
  border: 1px solid var(--ast-border-color);
  background: #fff;
}

.comments-area {
  margin-top: 3em;
  padding: 2em 0;
}

.comments-title { margin-bottom: 1.5em; }
.comment-list { margin-left: 1.5em; }
.comment-list .comment { margin-bottom: 1.5em; }
.comment-content { margin-top: 0.75em; }
.comment-form-cookies-consent { display: flex; gap: 0.5em; align-items: flex-start; }
.comment-form-cookies-consent input { width: auto; margin-top: 0.45em; }

.navigation.pagination,
.comment-navigation { display: flex; justify-content: space-between; gap: 1em; margin: 2em 0; }
.nav-links { display: flex; gap: 1em; }

.wp-block-image img { height: auto; }
.aligncenter { margin-right: auto; margin-left: auto; }
.alignwide { max-width: 100%; }
.alignfull { width: 100%; max-width: none; }

.site-main { width: 100%; }
.archive article,
.blog article,
.search article { margin-bottom: 2.5em; }
.archive article:last-child,
.blog article:last-child,
.search article:last-child { margin-bottom: 0; }
.entry-footer { margin-top: 1.5em; }
.edit-link { margin-left: 1em; }
.post-thumb { margin-bottom: 1.5em; text-align: center; }
.post-thumb img { width: 792px; max-width: 100%; }
@media (max-width: 1247px) {
  .post-thumb img { width: calc(100vw - 408px); }
}
@media (max-width: 921px) {
  .post-thumb img { width: calc(100vw - 20px); }
}
.page-links { clear: both; margin: 1.5em 0; }

.works-page .entry-title { display: none; }
.works-page #primary { margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }

body.page:not(.home) .site-content > .ast-container {
  max-width: var(--ks-content-wide);
  padding-inline: var(--ks-gutter);
}
body.page.page-layout-reading .site-content > .ast-container {
  max-width: min(var(--ks-container-max-width), calc(var(--ks-content-reading) + 2 * var(--ks-gutter)));
}
@media (min-width: 922px) {
  body.single .site-content > .ast-container {
    max-width: var(--ks-container-max-width);
    padding-inline: var(--ks-gutter);
  }
}

@media (min-width: 922px) {
  .site-content > .ast-container { display: flex; gap: 2rem; }
  .site-content > .ast-container > .primary { flex: 1 1 auto; min-width: 0; }
  .site-content > .ast-container > #secondary { flex: 0 0 280px; }
}

/* Site-owned tool shells share one width. The class is an opt-in contract;
 * data-ks-web-tool covers tools created with the existing generator. Legacy
 * roots stay here so HTML IDs, editor adapters and feature assets need no edits.
 * Only outer shells are matched; internal previews, controls and text retain
 * their feature-specific dimensions. The content scope beats legacy fallbacks. */
.site-content :is(
  .ks-tool-shell, [data-ks-web-tool], .ks-web-tool, .ks-shortcode-shell,
  .ks-archive, .video-tool, .oped, .image-tool, .playlist-cover__app,
  .pg-tool, .sc-tool, .rg-tool, .blc-tool, .avb-tool, .vr-tool, .vas-tool, .mv-tool
) {
  width: 100%;
  max-width: var(--ks-tool-max-width);
  min-width: 0;
  margin-inline: auto;
  box-sizing: border-box;
}

/* Opt-in hook for publisher-owned, normal-flow ad wrappers. Never target
 * adsbygoogle, Google-created frames, anchors or side rails here. No new unit
 * is created and existing units are not moved into this wrapper. */
.ks-ad-container {
  width: 100%;
  max-width: var(--ks-ad-max-width);
  margin-inline: auto;
}

/* Shared editorial blocks; never target the internal controls of a tool widget. */
:root {
  --wp--preset--spacing--20: .44rem;
  --wp--preset--spacing--40: 1rem;
  --wp--preset--spacing--60: 2.25rem;
}
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.has-text-align-left { text-align: left; }
.has-large-font-size { font-size: 1.5rem; }
.has-x-large-font-size { font-size: clamp(1.75rem, 3.5vw, 2.3333rem); }
.entry-content > :is(h1, h2, h3, h4, h5, h6),
.entry-content > .wp-block-group > :is(h1, h2, h3, h4, h5, h6) { overflow-wrap: anywhere; }
.entry-content > .wp-block-heading { line-height: 1.3; }
.entry-content > .wp-block-heading:first-child { margin-top: 0; }
/* Restore the shared editorial spacing reset by this tool's WordPress Group block. */
main.image-tool-main > p.has-text-align-center.wp-block-paragraph { margin: 1em 0 1.6em; }
.entry-content :is(img, video, iframe, figure) { max-width: 100%; }
/* Preserve the Image block’s standard center alignment. */
.entry-content figure:not(.aligncenter) { margin-inline: 0; }
.entry-content .sketchfab-embed-wrapper { width: 100%; margin-inline: auto; }
.entry-content .sketchfab-embed-wrapper iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.entry-content .wp-block-embed__wrapper iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.entry-content > :is(pre, .wp-block-table) { max-width: 100%; overflow-x: auto; }
.entry-content .wp-block-details { margin-block: 1rem; }
.entry-content .wp-block-details > summary { min-height: 44px; cursor: pointer; }
.entry-content .wp-block-details > :not(summary) { margin-block: .75rem; }
.wp-block-columns { display: flex; gap: 2rem; align-items: normal; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-group.is-layout-flex, .wp-block-social-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.is-content-justification-center { justify-content: center; }
.is-content-justification-right { justify-content: flex-end; }
.wp-block-group.is-nowrap { flex-wrap: nowrap; }
.wp-block-image.is-style-rounded img { border-radius: 9999px; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.wp-block-button__link { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; text-decoration: none; }
.entry-content > :is(ul, ol), .entry-content .wp-block-details :is(ul, ol) { padding-inline-start: 1.5em; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--ast-global-color-0); outline-offset: 3px; }
body.koshishirai-hide-theme-page-title .entry-header > .entry-title { display: none; }
@media (max-width: 781px) {
  .wp-block-columns:not(.is-not-stacked-on-mobile) { flex-wrap: wrap; }
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 100%; }
}

/* Migrated from WordPress Customizer Additional CSS post 12095. */
.blog-layout-1 {
  padding-bottom: 0;
  vertical-align: middle;
  border-bottom: 0 solid var(--ast-border-color);
}

.entry-header {
  margin-bottom: 0;
}

.hentry {
  margin-bottom: 1.2em;
}

.ast-archive-description {
  border-bottom: 0 solid var(--ast-border-color);
}

/* Koshishirai responsive header */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { position: relative; z-index: 20; border-bottom: 0; background: #2c2c2c; }
.site-header-inner { display: flex; align-items: center; justify-content: flex-start; gap: 0; min-height: 72px; }
.site-branding { flex: 0 0 auto; line-height: 0; }
.site-branding .custom-logo { display: block; width: 180px; max-width: 180px; height: auto; visibility: visible; opacity: 1; filter: none; }
.main-navigation { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; margin-left: 2rem; margin-right: 0; }
.main-navigation .menu { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.main-navigation a { display: block; padding: .75rem 0; color: #fff; text-align: left; font-style: italic; line-height: 1.2; text-decoration: none; }
.main-navigation .menu > .menu-item > a { font-size: 1.45rem; }
.main-navigation a:hover, .main-navigation a:focus-visible { color: var(--ast-global-color-0, #0274be); }
.main-navigation .menu-item-has-children { position: relative; }
.main-navigation .sub-menu { position: absolute; top: 100%; left: 0; z-index: 30; display: none; min-width: 12rem; margin: 0; padding: .5rem 1rem; list-style: none; background: #2c2c2c !important; border: 0; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.main-navigation .sub-menu a { color: #fff !important; background: #2c2c2c !important; font-size: 1.2rem; font-style: italic; white-space: nowrap; }
.main-navigation .menu-item-has-children:hover > .sub-menu, .main-navigation .menu-item-has-children:focus-within > .sub-menu { display: block; }
.submenu-toggle { display: none; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #fff; cursor: pointer; }
.mobile-menu-toggle-icon, .menu-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
.menu-icon svg { display: block; width: 40px; height: 40px; fill: currentColor; }
.menu-icon-close { position: relative; display: none; width: 40px; height: 40px; }
.menu-icon-close svg { display: none; }
.menu-icon-close::before, .menu-icon-close::after { position: absolute; top: 50%; left: 0; width: 40px; height: 3px; background: currentColor; content: ''; }
.menu-icon-close::before { transform: rotate(45deg); }
.menu-icon-close::after { transform: rotate(-45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-close { display: inline-flex; }
.header-search { position: relative; display: flex; align-items: center; height: 72px; margin-left: auto; margin-right: 0; }
.header-search-toggle { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: #fff; background: transparent; border: 0; border-radius: 0; cursor: pointer; }
.header-search-toggle:focus-visible { outline: 2px solid #4db6ac; outline-offset: 2px; }
.header-search-icon { display: block; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.header-search-form { position: absolute; top: 50%; right: 0; z-index: 2; display: flex; align-items: center; width: min(260px, calc(100vw - 32px)); height: 44px; padding: 4px; box-sizing: border-box; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 999px; box-shadow: 0 4px 16px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(-50%); pointer-events: none; transition: none !important; animation: none !important; }
.header-search-form:focus-within { box-shadow: 0 4px 16px rgba(0,0,0,.25), 0 0 0 2px #4db6ac; }
.header-search-form input { min-width: 0; flex: 1 1 auto; height: 36px; padding: 0 14px; color: #2c2c2c; background: #f2f2f2; border: 0; border-radius: 999px; font-size: 16px; transition: none !important; animation: none !important; }
.header-search-form input:focus { outline: none; }
.header-search-form button { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; color: #2c2c2c; background: transparent; border: 0; border-radius: 50%; cursor: pointer; transition: none !important; animation: none !important; }
.header-search-form button:hover { background: rgba(0,0,0,.06); }
.header-search-form button:focus-visible { outline: 2px solid #4db6ac; outline-offset: 2px; }
.header-search-submit-icon { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (min-width: 922px) {
  .header-search:hover .header-search-form,
  .header-search:focus-within .header-search-form,
  .header-search.is-hover-held .header-search-form { opacity: 1; visibility: visible; pointer-events: auto; }
}

/* Escape hides the search even while the pointer is still inside it. */
.header-search.is-dismissed .header-search-form { opacity: 0; visibility: hidden; pointer-events: none; }

@media (max-width: 921px) {
  .site-header-inner { flex-wrap: wrap; gap: 0; min-height: 64px; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .main-navigation { display: none; flex: 0 0 100%; width: 100%; margin: 0; }
  .main-navigation.is-open { display: block; }
  .header-search { display: block; width: 100%; height: auto; margin: .75rem 0 0; }
  .header-search.is-open .header-search-form { opacity: 1; visibility: visible; pointer-events: auto; }
  .header-search-form { width: 100%; }
  .main-navigation .menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0 1rem; text-align: left; }
  .main-navigation .menu li { width: 100%; min-width: 0; }
  .main-navigation a { box-sizing: border-box; width: 100%; text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--ast-border-color, #eaeaea); }
  .main-navigation .sub-menu { position: static; display: block; min-width: 0; width: 100%; padding: 0 0 0 1rem; border: 0; box-shadow: none; }

  .site-header.menu-open { height: 64px; min-height: 64px; }
  .site-header.menu-open .site-header-inner { position: absolute; top: 0; left: 0; right: 0; z-index: 100; display: block; width: 100%; height: auto; max-width: none; min-height: 0; padding: 12px 20px 30px; overflow: visible; box-sizing: border-box; background: #2c2c2c !important; color: #fff; }
  .site-header.menu-open .site-branding { position: relative; z-index: 2; left: -10px; top: -1px; }
  .site-header.menu-open .site-branding .custom-logo { width: 180px; max-width: 180px; filter: brightness(0) invert(1); }
  .site-header.menu-open .menu-toggle { position: absolute; top: 10px; right: 18px; z-index: 1000; width: 44px; height: 44px; color: #fff; pointer-events: auto; }
  .site-header.menu-open .menu-icon-close { left: 9px; }
  .site-header.menu-open .main-navigation { display: block; }
  .site-header.menu-open .header-search { display: block; width: 100%; margin: .5rem 0 0; }
  .site-header.menu-open .main-navigation a { padding: 20px 0; border-bottom: 0; color: #fff !important; font-size: 1.45rem; font-style: italic; line-height: 1.2; }
  /* Separate the flexible link from the right-edge submenu button. */
  .site-header.menu-open .main-navigation .menu-item-has-children { display: grid; grid-template-columns: minmax(0,1fr) 56px; }
  .site-header.menu-open .main-navigation .menu-item-has-children > a { display: block; min-width: 0; grid-column: 1; grid-row: 1; }
  .site-header.menu-open .main-navigation .submenu-toggle { display: block; position: relative; z-index: 1; grid-column: 2; grid-row: 1; align-self: stretch; width: 56px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #fff; box-shadow: none; cursor: pointer; }
  .site-header.menu-open .main-navigation .submenu-toggle::after { position: absolute; top: 50%; right: 16px; width: 15px; height: 15px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: translateY(-65%) rotate(45deg); content: ''; }
  .site-header.menu-open .main-navigation .submenu-toggle[aria-expanded="true"]::after { transform: translateY(-35%) rotate(225deg); }
  .site-header.menu-open .main-navigation .submenu-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
  .site-header.menu-open .main-navigation .menu-item-has-children > .sub-menu { display: none; grid-column: 1 / -1; width: 100%; box-sizing: border-box; margin: 0 0 12px; padding: 0; background: #2c2c2c !important; border: 0; box-shadow: none; }
  .site-header.menu-open .main-navigation .menu-item-has-children.submenu-open > .sub-menu { display: block; }
  .site-header.menu-open .main-navigation .sub-menu li, .site-header.menu-open .main-navigation .sub-menu a { background: #2c2c2c !important; color: #fff !important; }
  .site-header.menu-open .main-navigation .sub-menu a { position: relative; padding: 12px 0 12px 48px; font-style: italic; }
  .site-header.menu-open .main-navigation .sub-menu a::before { position: absolute; top: 50%; left: 22px; width: 10px; height: 10px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); content: ''; }
}

/* Child Theme footer */
.child-site-footer {
  background: var(--ast-global-color-7, #f5f5f5);
}

.child-site-footer-inner {
  padding-top: 0;
  padding-bottom: 0;
}

.child-site-copyright {
  margin: 0;
  color: var(--ast-global-color-0, #0274be);
  text-align: right;
}

/* Portfolio art direction; common block layout lives in content.css. */
.works-page .wp-block-gallery.has-nested-images.columns-6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}
.works-page .wp-block-gallery.has-nested-images.columns-6 > figure.wp-block-image {
  width: auto;
  min-width: 100%;
  max-width: 100%;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
}
.works-page .wp-block-gallery.has-nested-images.columns-6 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.works-page .is-style-profile-heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-style: italic;
  font-weight: 400;
  text-align: center;
  padding-top: var(--wp--preset--spacing--60, 2.25rem);
}
@media (max-width: 600px) {
  .works-page .wp-block-gallery.has-nested-images.columns-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Migrated from legacy site hook 21380: Blog CSS. */
.single .entry-content h2 {
  padding: .5em .7em;
  margin-top: 20px;
}

.single .entry-content h3 {
  border-left: 10px solid #4db6ac;
  padding: .5em .7em;
  margin-top: 20px;
}

.single .post-thumb {
  text-align: center;
}

.blog-card {
  clear: both;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 1.5rem 0;
  border: 1px solid #59635f;
  border-radius: 8px;
  overflow: hidden;
  background: #343c39;
}
.blog-card__link {
  display: grid;
  grid-template-columns: minmax(120px, 25%) minmax(0, 1fr);
  min-height: 132px;
  color: #f5f7f6;
  text-decoration: none;
}
.blog-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #254c45, #3c655c);
}
.blog-card .blog-card__image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 220px;
  min-height: 132px;
  object-fit: cover;
}
.blog-card__thumb--empty { color: #d2e5df; font-size: .7rem; letter-spacing: .08em; padding: 1rem; }
.blog-card__body { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: .4rem; padding: 1rem; overflow-wrap: anywhere; }
.blog-card__title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: #f5f7f6; font-size: 1.05rem; line-height: 1.45; }
.blog-card__excerpt { display: -webkit-box; overflow: hidden; color: #d0d9d5; font-size: .86rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.blog-card__domain { color: #9ddcd0; font-size: .75rem; line-height: 1.4; overflow-wrap: anywhere; }
.blog-card__link:hover { background: #414e48; }
.blog-card__link:focus-visible { outline: 3px solid #86e7d3; outline-offset: -3px; background: #414e48; }
.blog-card-figure { margin: 1.5rem 0; }
.blog-card-figure > .blog-card { margin: 0; }

.comments-area .ast-comment-formwrap input[type="text"],
.comments-area textarea#comment {
  height: 54px;
}

.comments-area .comment-notes,
.comments-area .comment-textarea,
.comments-area .form-allowed-tags {
  margin-bottom: 0;
}

pre {
  background: #3a3a3a;
}

@media (max-width: 600px) {
  .blog-card__link { grid-template-columns: 80px minmax(0, 1fr); min-height: 104px; }
  .blog-card .blog-card__image { min-height: 104px; max-height: 180px; }
  .blog-card__body { gap: .3rem; padding: .7rem; }
  .blog-card__title { font-size: .9rem; }
  .blog-card__excerpt { font-size: .76rem; -webkit-line-clamp: 2; }
  .blog-card__domain { font-size: .68rem; }
}


.video-tool {
  max-width: 960px;
  margin: 0 auto;
  color: #2c2c2c;
}
.video-tool__controls {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.2rem, 3.5vw, 2.2rem);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}
.video-tool__dropzones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.video-tool__drop-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.video-tool__dropzone {
  display: grid;
  place-items: center;
  gap: 0.3rem;
  min-height: 180px;
  padding: 1.5rem;
  text-align: center;
  border: 2px dashed #4db6ac;
  border-radius: 12px;
  color: #31514d;
  background: #fafcfb;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.video-tool__dropzone:hover,
.video-tool__dropzone.is-dragging {
  background: #e9f7f5;
  border-color: #2c9890;
}
.video-tool__drop-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.video-tool__dropzone strong {
  font-size: 1.05rem;
}
.video-tool__dropzone span {
  font-size: 0.85rem;
  color: #556966;
}
.video-tool__dropzone small {
  font-size: 0.75rem;
  color: #7b8e8b;
}
.video-tool__file-preview {
  min-height: 2.5rem;
}
.video-tool__preview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: #eef7f5;
  border: 1px solid #c2e5df;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #1f7469;
}
.video-tool__preview-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.video-tool__remove-item {
  border: 0;
  background: transparent;
  color: #8fa6a2;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0 0.2rem;
}
.video-tool__remove-item:hover {
  color: #d32f2f;
}
.video-tool__notices {
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  background: #f5f8f7;
  border-radius: 8px;
  border-left: 4px solid #4db6ac;
}
.video-tool__privacy {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: #31514d;
  font-size: 0.88rem;
  font-weight: 500;
}
.video-tool__privacy-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: #2c9890;
  color: #ffffff;
  font-size: 0.72rem;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}
.video-tool__notice {
  margin: 0;
  color: #6e817e;
  font-size: 0.8rem;
  line-height: 1.5;
}
.video-tool__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.video-tool__automation {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  color: #31514d;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.video-tool__automation-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.video-tool__btn-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.video-tool__add-btn,
.video-tool__submit {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}
.video-tool__add-btn {
  background: #e0f2f1;
  color: #1f7469;
}
.video-tool__add-btn:hover:not(:disabled) {
  background: #b2dfdb;
}
.video-tool__submit {
  background: #2c2c2c;
  color: #ffffff;
}
.video-tool__submit:hover:not(:disabled) {
  background: #404040;
}
.video-tool__add-btn:disabled,
.video-tool__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.video-tool__status {
  min-height: 2rem;
  margin: 1.25rem 0;
  color: #ffffff;
  font-size: 0.95rem;
}
.video-tool__queue-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0 1rem;
}
.video-tool__queue-title-wrap h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #ffffff;
  font-weight: 600;
}
.video-tool__clear-btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #c7d0cf;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
}
.video-tool__clear-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.video-tool__queue {
  display: grid;
  gap: 1.2rem;
}

/* ジョブカードのスタイル */
.video-card {
  padding: 1.25rem;
  background: #ffffff;
  border-left: 6px solid #4db6ac;
  border-radius: 12px;
  color: #2c2c2c;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 0.9rem;
}
.video-card--waiting {
  border-left-color: #aebbb9;
}
.video-card--running {
  border-left-color: #2c9890;
}
.video-card--done {
  border-left-color: #43a047;
}
.video-card--failed {
  border-left-color: #e53935;
}
.video-card--stopped,
.video-card--excluded {
  border-left-color: #78909c;
  opacity: 0.75;
}
.video-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.video-card__titles h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.video-card__status-text {
  margin: 0;
  font-size: 0.85rem;
  color: #5b6b69;
}
.video-card__badge {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.video-card__badge--waiting {
  background: #eceff1;
  color: #546e7a;
}
.video-card__badge--running {
  background: #e0f2f1;
  color: #00796b;
}
.video-card__badge--done {
  background: #e8f5e9;
  color: #2e7d32;
}
.video-card__badge--failed {
  background: #ffebee;
  color: #c62828;
}
.video-card__badge--stopped,
.video-card__badge--excluded {
  background: #eceff1;
  color: #78909c;
}

/* プログレスバー */
.video-card__progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.video-card__progress-bar {
  flex: 1;
  height: 0.55rem;
  background: #edf1f0;
  border-radius: 999px;
  overflow: hidden;
}
.video-card__progress-inner {
  height: 100%;
  background: #2c9890;
  transition: width 0.2s ease;
}
.video-card__progress-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2c9890;
  min-width: 2.5rem;
  text-align: right;
}
.video-card__error {
  margin: 0;
  padding: 0.6rem 0.85rem;
  background: #ffebee;
  border-radius: 6px;
  color: #c62828;
  font-size: 0.85rem;
  white-space: pre-wrap;
}

/* メタ情報 */
.video-card__meta {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  background: #f7faf9;
  border-radius: 8px;
  font-size: 0.85rem;
}
.video-card__meta div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.video-card__meta dt {
  color: #6e817e;
}
.video-card__meta dd {
  margin: 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.video-card__color-chip {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* 動画プレビュー */
.video-card__preview {
  max-width: 480px;
  border-radius: 8px;
  overflow: hidden;
  background: #000000;
}
.video-card__preview video {
  display: block;
  width: 100%;
  max-height: 280px;
}

/* アクションボタン */
.video-card__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.video-card__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  background: #2c2c2c;
  color: #ffffff !important;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.video-card__download:hover {
  background: #3b3b3b;
}
.video-card__btn-sub {
  border: 1px solid #d8e2df;
  background: #ffffff;
  color: #556966;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.video-card__btn-sub:hover {
  background: #f0f4f3;
  color: #2c2c2c;
}
.video-card__btn-sub--danger {
  border-color: #ef9a9a;
  color: #c62828;
}
.video-card__btn-sub--danger:hover {
  background: #ffebee;
}

@media (max-width: 768px) {
  .video-tool__dropzones {
    grid-template-columns: 1fr;
  }
  .video-tool__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .video-tool__automation {
    justify-content: center;
  }
  .video-tool__btn-group {
    flex-direction: column;
  }
  .video-tool__add-btn,
  .video-tool__submit {
    width: 100%;
  }
  .video-card__header {
    flex-direction: column;
  }
  .video-card__meta div {
    flex-direction: column;
    align-items: flex-start;
  }
}

/**
Theme Name: Koshishirai Theme
Author: koshishirai
Description: koshishirai.com 独自テーマ候補
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: koshishirai-theme
*/

/* [All] リンク下線消す */
a { text-decoration: none;}

/* [All] Footer 余白 0px */
.entry-content .wp-block-columns{margin-bottom:0}

/* [All] Font */
.menu-link{font-style:oblique}

/* Koshishirai Theme base layout, independent of a parent theme. */
:root {
  --ast-global-color-0: #4db6ac;
  --ast-global-color-1: #3a3a3a;
  --ast-global-color-2: #03fae3;
  --ast-global-color-3: #4b4f58;
  --ast-global-color-4: #f5f5f5;
  --ast-global-color-5: #ffffff;
  --ast-global-color-6: #f2f5f7;
  --ast-global-color-7: #2c2c2c;
  --ast-global-color-8: #000000;
  --ast-border-color: #eaeaea;
  --ks-content-reading: 60rem;
  --ks-tool-max-width: 1000px;
  /* Outer border-box width, including the existing responsive gutters. */
  --ks-container-max-width: 1200px;
  /* In-flow publisher-owned ad wrappers only; Auto ads own their geometry. */
  --ks-ad-max-width: 1200px;
  --ks-content-wide: var(--ks-container-max-width);
  --ks-gutter: clamp(1rem, 4vw, 3rem);
  --ks-radius: .5rem;
  --ks-border: 1px solid var(--ast-border-color);
}

html { box-sizing: border-box; font-size: 112.5%; min-height: 100%; }
*, *::before, *::after { box-sizing: inherit; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: #fff;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.8571428571;
  -webkit-font-smoothing: antialiased;
}
body { line-height: 0; }
#page { line-height: 1.8571428571; }

body:not(.home),
body:not(.home) #page,
body:not(.home) #content,
body:not(.home) .site-content {
  background-color: #2c2c2c;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
main, nav { display: block; }
button, input, select, textarea { font: inherit; }
button, input[type="button"], input[type="submit"] { cursor: pointer; }

.ast-container {
  width: 100%;
  max-width: var(--ks-container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-inline: var(--ks-gutter);
}

/* Normal-flow sticky footer: the content, not the footer, takes spare space.
 * WordPress reserves its toolbar above html; use Core's responsive height. */
html:has(> body.admin-bar) { min-height: 0; }
body.admin-bar {
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
  min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}
#page {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
}
#page > #masthead, #page > #colophon { flex: 0 0 auto; }
#page > #content { flex: 1 0 auto; min-width: 0; }
#primary, #secondary { width: 100%; }
#primary { margin: 1em 0; }
.entry-header { margin-bottom: 1.2em; word-wrap: break-word; }
.entry-title { margin: 0 0 .67em; color: #fff; font-size: 2em; font-weight: 700; line-height: 1.3; text-align: center; word-wrap: break-word; }
.entry-content { word-wrap: break-word; min-width: 0; }
.entry-content::after { display: table; clear: both; content: ""; }
.entry-content p { margin-bottom: 1.6em; }
.entry-content h1, h1 { color: #fff; font-size: 2em; line-height: 1.2; }
.entry-content h2, h2 { color: #fff; font-size: 1.7em; line-height: 1.3; }
.entry-content h3, h3 { color: #fff; font-size: 1.5em; line-height: 1.4; }
.entry-content h4, h4 { color: #fff; font-size: 1.3em; line-height: 1.5; }
.entry-content h5, h5 { color: #fff; font-size: 1.2em; line-height: 1.6; }
.entry-content h6, h6 { color: #fff; font-size: 1.1em; line-height: 1.7; }

@media (max-width: 921px) {
  .ast-container { padding-left: 10px; padding-right: 10px; }
}

.entry-content a,
.comments-area a { color: var(--ast-global-color-0); }

a { color: #4db6ac; }

.post-edit-link,
.edit-link a,
a[href*="/wp-admin/"] { color: inherit; }

button,
input[type="button"],
input[type="submit"],
.button,
.wp-block-button__link {
  padding: 10px 15px;
  color: #fff;
  background: var(--ast-global-color-0);
  border: 0;
  border-radius: 2px;
  line-height: 1.8571428571;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.7em;
  border: 1px solid var(--ast-border-color);
  background: #fff;
}

.comments-area {
  margin-top: 3em;
  padding: 2em 0;
}

.comments-title { margin-bottom: 1.5em; }
.comment-list { margin-left: 1.5em; }
.comment-list .comment { margin-bottom: 1.5em; }
.comment-content { margin-top: 0.75em; }
.comment-form-cookies-consent { display: flex; gap: 0.5em; align-items: flex-start; }
.comment-form-cookies-consent input { width: auto; margin-top: 0.45em; }

.navigation.pagination,
.comment-navigation { display: flex; justify-content: space-between; gap: 1em; margin: 2em 0; }
.nav-links { display: flex; gap: 1em; }

.wp-block-image img { height: auto; }
.aligncenter { margin-right: auto; margin-left: auto; }
.alignwide { max-width: 100%; }
.alignfull { width: 100%; max-width: none; }

.site-main { width: 100%; }
.archive article,
.blog article,
.search article { margin-bottom: 2.5em; }
.archive article:last-child,
.blog article:last-child,
.search article:last-child { margin-bottom: 0; }
.entry-footer { margin-top: 1.5em; }
.edit-link { margin-left: 1em; }
.post-thumb { margin-bottom: 1.5em; text-align: center; }
.post-thumb img { width: 792px; max-width: 100%; }
@media (max-width: 1247px) {
  .post-thumb img { width: calc(100vw - 408px); }
}
@media (max-width: 921px) {
  .post-thumb img { width: calc(100vw - 20px); }
}
.page-links { clear: both; margin: 1.5em 0; }

.works-page .entry-title { display: none; }
.works-page #primary { margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }

body.page:not(.home) .site-content > .ast-container {
  max-width: var(--ks-content-wide);
  padding-inline: var(--ks-gutter);
}
body.page.page-layout-reading .site-content > .ast-container {
  max-width: min(var(--ks-container-max-width), calc(var(--ks-content-reading) + 2 * var(--ks-gutter)));
}
@media (min-width: 922px) {
  body.single .site-content > .ast-container {
    max-width: var(--ks-container-max-width);
    padding-inline: var(--ks-gutter);
  }
}

@media (min-width: 922px) {
  .site-content > .ast-container { display: flex; gap: 2rem; }
  .site-content > .ast-container > .primary { flex: 1 1 auto; min-width: 0; }
  .site-content > .ast-container > #secondary { flex: 0 0 280px; }
}

/* Site-owned tool shells share one width. The class is an opt-in contract;
 * data-ks-web-tool covers tools created with the existing generator. Legacy
 * roots stay here so HTML IDs, editor adapters and feature assets need no edits.
 * Only outer shells are matched; internal previews, controls and text retain
 * their feature-specific dimensions. The content scope beats legacy fallbacks. */
.site-content :is(
  .ks-tool-shell, [data-ks-web-tool], .ks-web-tool, .ks-shortcode-shell,
  .ks-archive, .video-tool, .oped, .image-tool, .playlist-cover__app,
  .pg-tool, .sc-tool, .rg-tool, .blc-tool, .avb-tool, .vr-tool, .vas-tool, .mv-tool
) {
  width: 100%;
  max-width: var(--ks-tool-max-width);
  min-width: 0;
  margin-inline: auto;
  box-sizing: border-box;
}

/* Opt-in hook for publisher-owned, normal-flow ad wrappers. Never target
 * adsbygoogle, Google-created frames, anchors or side rails here. No new unit
 * is created and existing units are not moved into this wrapper. */
.ks-ad-container {
  width: 100%;
  max-width: var(--ks-ad-max-width);
  margin-inline: auto;
}

/* Migrated from WordPress Customizer Additional CSS post 12095. */
.blog-layout-1 {
  padding-bottom: 0;
  vertical-align: middle;
  border-bottom: 0 solid var(--ast-border-color);
}

.entry-header {
  margin-bottom: 0;
}

.hentry {
  margin-bottom: 1.2em;
}

.ast-archive-description {
  border-bottom: 0 solid var(--ast-border-color);
}

/* Koshishirai responsive header */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { position: relative; z-index: 20; border-bottom: 0; background: #2c2c2c; }
.site-header-inner { display: flex; align-items: center; justify-content: flex-start; gap: 0; min-height: 72px; }
.site-branding { flex: 0 0 auto; line-height: 0; }
.site-branding .custom-logo { display: block; width: 180px; max-width: 180px; height: auto; visibility: visible; opacity: 1; filter: none; }
.main-navigation { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; margin-left: 2rem; margin-right: 0; }
.main-navigation .menu { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.main-navigation a { display: block; padding: .75rem 0; color: #fff; text-align: left; font-style: italic; line-height: 1.2; text-decoration: none; }
.main-navigation .menu > .menu-item > a { font-size: 1.45rem; }
.main-navigation a:hover, .main-navigation a:focus-visible { color: var(--ast-global-color-0, #0274be); }
.main-navigation .menu-item-has-children { position: relative; }
.main-navigation .sub-menu { position: absolute; top: 100%; left: 0; z-index: 30; display: none; min-width: 12rem; margin: 0; padding: .5rem 1rem; list-style: none; background: #2c2c2c !important; border: 0; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.main-navigation .sub-menu a { color: #fff !important; background: #2c2c2c !important; font-size: 1.2rem; font-style: italic; white-space: nowrap; }
.main-navigation .menu-item-has-children:hover > .sub-menu, .main-navigation .menu-item-has-children:focus-within > .sub-menu { display: block; }
.submenu-toggle { display: none; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #fff; cursor: pointer; }
.mobile-menu-toggle-icon, .menu-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
.menu-icon svg { display: block; width: 40px; height: 40px; fill: currentColor; }
.menu-icon-close { position: relative; display: none; width: 40px; height: 40px; }
.menu-icon-close svg { display: none; }
.menu-icon-close::before, .menu-icon-close::after { position: absolute; top: 50%; left: 0; width: 40px; height: 3px; background: currentColor; content: ''; }
.menu-icon-close::before { transform: rotate(45deg); }
.menu-icon-close::after { transform: rotate(-45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-close { display: inline-flex; }
.header-search { position: relative; display: flex; align-items: center; height: 72px; margin-left: auto; margin-right: 0; }
.header-search-toggle { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: #fff; background: transparent; border: 0; border-radius: 0; cursor: pointer; }
.header-search-toggle:focus-visible { outline: 2px solid #4db6ac; outline-offset: 2px; }
.header-search-icon { display: block; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.header-search-form { position: absolute; top: 50%; right: 0; z-index: 2; display: flex; align-items: center; width: min(260px, calc(100vw - 32px)); height: 44px; padding: 4px; box-sizing: border-box; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 999px; box-shadow: 0 4px 16px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(-50%); pointer-events: none; transition: none !important; animation: none !important; }
.header-search-form:focus-within { box-shadow: 0 4px 16px rgba(0,0,0,.25), 0 0 0 2px #4db6ac; }
.header-search-form input { min-width: 0; flex: 1 1 auto; height: 36px; padding: 0 14px; color: #2c2c2c; background: #f2f2f2; border: 0; border-radius: 999px; font-size: 16px; transition: none !important; animation: none !important; }
.header-search-form input:focus { outline: none; }
.header-search-form button { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; color: #2c2c2c; background: transparent; border: 0; border-radius: 50%; cursor: pointer; transition: none !important; animation: none !important; }
.header-search-form button:hover { background: rgba(0,0,0,.06); }
.header-search-form button:focus-visible { outline: 2px solid #4db6ac; outline-offset: 2px; }
.header-search-submit-icon { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (min-width: 922px) {
  .header-search:hover .header-search-form,
  .header-search:focus-within .header-search-form,
  .header-search.is-hover-held .header-search-form { opacity: 1; visibility: visible; pointer-events: auto; }
}

/* Escape hides the search even while the pointer is still inside it. */
.header-search.is-dismissed .header-search-form { opacity: 0; visibility: hidden; pointer-events: none; }

@media (max-width: 921px) {
  .site-header-inner { flex-wrap: wrap; gap: 0; min-height: 64px; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .main-navigation { display: none; flex: 0 0 100%; width: 100%; margin: 0; }
  .main-navigation.is-open { display: block; }
  .header-search { display: block; width: 100%; height: auto; margin: .75rem 0 0; }
  .header-search.is-open .header-search-form { opacity: 1; visibility: visible; pointer-events: auto; }
  .header-search-form { width: 100%; }
  .main-navigation .menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0 1rem; text-align: left; }
  .main-navigation .menu li { width: 100%; min-width: 0; }
  .main-navigation a { box-sizing: border-box; width: 100%; text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--ast-border-color, #eaeaea); }
  .main-navigation .sub-menu { position: static; display: block; min-width: 0; width: 100%; padding: 0 0 0 1rem; border: 0; box-shadow: none; }

  .site-header.menu-open { height: 64px; min-height: 64px; }
  .site-header.menu-open .site-header-inner { position: absolute; top: 0; left: 0; right: 0; z-index: 100; display: block; width: 100%; height: auto; max-width: none; min-height: 0; padding: 12px 20px 30px; overflow: visible; box-sizing: border-box; background: #2c2c2c !important; color: #fff; }
  .site-header.menu-open .site-branding { position: relative; z-index: 2; left: -10px; top: -1px; }
  .site-header.menu-open .site-branding .custom-logo { width: 180px; max-width: 180px; filter: brightness(0) invert(1); }
  .site-header.menu-open .menu-toggle { position: absolute; top: 10px; right: 18px; z-index: 1000; width: 44px; height: 44px; color: #fff; pointer-events: auto; }
  .site-header.menu-open .menu-icon-close { left: 9px; }
  .site-header.menu-open .main-navigation { display: block; }
  .site-header.menu-open .header-search { display: block; width: 100%; margin: .5rem 0 0; }
  .site-header.menu-open .main-navigation a { padding: 20px 0; border-bottom: 0; color: #fff !important; font-size: 1.45rem; font-style: italic; line-height: 1.2; }
  /* Separate the flexible link from the right-edge submenu button. */
  .site-header.menu-open .main-navigation .menu-item-has-children { display: grid; grid-template-columns: minmax(0,1fr) 56px; }
  .site-header.menu-open .main-navigation .menu-item-has-children > a { display: block; min-width: 0; grid-column: 1; grid-row: 1; }
  .site-header.menu-open .main-navigation .submenu-toggle { display: block; position: relative; z-index: 1; grid-column: 2; grid-row: 1; align-self: stretch; width: 56px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #fff; box-shadow: none; cursor: pointer; }
  .site-header.menu-open .main-navigation .submenu-toggle::after { position: absolute; top: 50%; right: 16px; width: 15px; height: 15px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: translateY(-65%) rotate(45deg); content: ''; }
  .site-header.menu-open .main-navigation .submenu-toggle[aria-expanded="true"]::after { transform: translateY(-35%) rotate(225deg); }
  .site-header.menu-open .main-navigation .submenu-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
  .site-header.menu-open .main-navigation .menu-item-has-children > .sub-menu { display: none; grid-column: 1 / -1; width: 100%; box-sizing: border-box; margin: 0 0 12px; padding: 0; background: #2c2c2c !important; border: 0; box-shadow: none; }
  .site-header.menu-open .main-navigation .menu-item-has-children.submenu-open > .sub-menu { display: block; }
  .site-header.menu-open .main-navigation .sub-menu li, .site-header.menu-open .main-navigation .sub-menu a { background: #2c2c2c !important; color: #fff !important; }
  .site-header.menu-open .main-navigation .sub-menu a { position: relative; padding: 12px 0 12px 48px; font-style: italic; }
  .site-header.menu-open .main-navigation .sub-menu a::before { position: absolute; top: 50%; left: 22px; width: 10px; height: 10px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); content: ''; }
}

/* Child Theme footer */
.child-site-footer {
  background: var(--ast-global-color-7, #f5f5f5);
}

.child-site-footer-inner {
  padding-top: 0;
  padding-bottom: 0;
}

.child-site-copyright {
  margin: 0;
  color: var(--ast-global-color-0, #0274be);
  text-align: right;
}

/* Article archive card grid */
.archive .site-content > .ast-container,
.search .site-content > .ast-container {
  display: block;
}

.archive .article-grid,
.search .article-grid {
  width: 100%;
}

.ast-archive-description {
  width: 100%;
  margin: 0 0 2.5rem;
  padding: 0;
  text-align: center;
}

.ast-archive-description .page-title {
  margin: 0;
  color: #fff;
  text-align: center;
}

.ast-pagination {
  width: 100%;
  margin: 2.5rem 0 0;
  text-align: center;
}

.ast-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
}

/* The WordPress-authored tools page uses the same archive card grid. */
.tools-archive {
  width: 100%;
  max-width: var(--ks-content-wide);
  margin: 0 auto;
  padding: 0;
}

.tools-archive__header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.tools-archive__eyebrow {
  margin: 0 0 .5rem;
  color: #83ded3;
  font-size: .75rem;
  letter-spacing: .16em;
}

.tools-archive h1 {
  margin: .2rem 0 .8rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-style: italic;
  font-weight: 400;
}

.tools-archive__header > p:last-child {
  color: #c7d0cf;
}

.tools-archive .article-card-thumbnail {
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
}

.tools-archive .article-card-placeholder {
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  color: #83ded3;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
}

.tools-archive .article-card-description {
  margin: 0;
  color: #fff;
  font-size: .9rem;
  line-height: 1.55;
}

@media (min-width: 922px) {
  /* Keep the archive grid inside the shared outer container. */
  body.page.tools-page .site-content > .ast-container {
    display: block;
    width: 100%;
    max-width: var(--ks-container-max-width);
    padding-right: 20px;
    padding-left: 20px;
  }
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 32px;
  align-content: start;
}

.article-card {
  min-width: 0;
  margin: 0 !important;
  padding: 0;
  background: #333;
  border: 0;
}

.article-card-link {
  display: block;
  height: 100%;
  color: #fff !important;
  text-decoration: none;
}

.article-card-thumbnail {
  position: relative;
  overflow: hidden;
  background: #444;
}

.article-card-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform .25s ease;
}

.article-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #444;
}

.article-card-link:hover .article-card-thumbnail img,
.article-card-link:focus-visible .article-card-thumbnail img {
  transform: scale(1.04);
}

.article-card-body {
  padding: 14px 14px 16px;
}

.article-card-title {
  margin: 0 0 10px;
  color: #fff !important;
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
}

.article-card-date {
  display: block;
  color: #fff;
  font-size: .85rem;
  line-height: 1.4;
  opacity: .85;
}

@media (max-width: 921px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 22px;
  }

  .article-card-body {
    padding: 10px 10px 12px;
  }

  .article-card-title {
    margin-bottom: 7px;
    font-size: .95rem;
  }

  .article-card-date {
    font-size: .75rem;
  }

  .tools-archive {
    padding: 0;
  }

  body.page.tools-page .site-content > .ast-container {
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* Migrated from legacy site hook 21380: Blog CSS. */
.single .entry-content h2 {
  padding: .5em .7em;
  margin-top: 20px;
}

.single .entry-content h3 {
  border-left: 10px solid #4db6ac;
  padding: .5em .7em;
  margin-top: 20px;
}

.single .post-thumb {
  text-align: center;
}

.blog-card {
  clear: both;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 1.5rem 0;
  border: 1px solid #59635f;
  border-radius: 8px;
  overflow: hidden;
  background: #343c39;
}
.blog-card__link {
  display: grid;
  grid-template-columns: minmax(120px, 25%) minmax(0, 1fr);
  min-height: 132px;
  color: #f5f7f6;
  text-decoration: none;
}
.blog-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #254c45, #3c655c);
}
.blog-card .blog-card__image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 220px;
  min-height: 132px;
  object-fit: cover;
}
.blog-card__thumb--empty { color: #d2e5df; font-size: .7rem; letter-spacing: .08em; padding: 1rem; }
.blog-card__body { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: .4rem; padding: 1rem; overflow-wrap: anywhere; }
.blog-card__title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: #f5f7f6; font-size: 1.05rem; line-height: 1.45; }
.blog-card__excerpt { display: -webkit-box; overflow: hidden; color: #d0d9d5; font-size: .86rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.blog-card__domain { color: #9ddcd0; font-size: .75rem; line-height: 1.4; overflow-wrap: anywhere; }
.blog-card__link:hover { background: #414e48; }
.blog-card__link:focus-visible { outline: 3px solid #86e7d3; outline-offset: -3px; background: #414e48; }
.blog-card-figure { margin: 1.5rem 0; }
.blog-card-figure > .blog-card { margin: 0; }

.comments-area .ast-comment-formwrap input[type="text"],
.comments-area textarea#comment {
  height: 54px;
}

.comments-area .comment-notes,
.comments-area .comment-textarea,
.comments-area .form-allowed-tags {
  margin-bottom: 0;
}

pre {
  background: #3a3a3a;
}

@media (max-width: 600px) {
  .blog-card__link { grid-template-columns: 80px minmax(0, 1fr); min-height: 104px; }
  .blog-card .blog-card__image { min-height: 104px; max-height: 180px; }
  .blog-card__body { gap: .3rem; padding: .7rem; }
  .blog-card__title { font-size: .9rem; }
  .blog-card__excerpt { font-size: .76rem; -webkit-line-clamp: 2; }
  .blog-card__domain { font-size: .68rem; }
}

/* Portfolio art direction; common block layout lives in content.css. */
.works-page .wp-block-gallery.has-nested-images.columns-6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}
.works-page .wp-block-gallery.has-nested-images.columns-6 > figure.wp-block-image {
  width: auto;
  min-width: 100%;
  max-width: 100%;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
}
.works-page .wp-block-gallery.has-nested-images.columns-6 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.works-page .is-style-profile-heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-style: italic;
  font-weight: 400;
  text-align: center;
  padding-top: var(--wp--preset--spacing--60, 2.25rem);
}
@media (max-width: 600px) {
  .works-page .wp-block-gallery.has-nested-images.columns-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

