/*
Theme Name: TRILOGICAL
Description: トライロジカル企業LPとオウンドメディア向けのWordPressテーマ。
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: trilogical
*/

:root { --admin-bar: 0px; }
body.admin-bar { --admin-bar: 32px; }
.site-header { top: var(--admin-bar); }
.header-nav.is-open { margin-top: var(--admin-bar); max-height: calc(100dvh - 100px); overflow-y: auto; }
.skip-link, .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: calc(8px + var(--admin-bar));
  left: 8px;
  z-index: 101;
  width: auto;
  height: auto;
  padding: .5em 1em;
  clip-path: none;
  background: white;
}
#top:focus, #content:focus { outline: none; }
.privacy-check a, .footer-links a {
  color: #125f83;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.privacy-check { color: #506b7c; }
.privacy-check label { cursor: pointer; }
.form-status { margin: 0 0 1.2em; padding: .75em 1em; scroll-margin-block: 15px; }
.form-error { color: #85272c; background: #fff0f1; }
.form-success { color: #0b5955; background: #e4f5f2; }
.required { color: #a53840; }
.optional, .services-choice legend .optional { color: #566d7e; }
.services-choice legend .optional { display: inline; width: auto; border: 0; padding: 0; background: none; }
.form-field :is(input, textarea)::placeholder { color: #586f81; }
.footer-links, .footer-links ul { display: flex; flex-wrap: wrap; gap: .7em 2em; }
.footer-links { font-size: 12px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
body:not(.home) .site-header { background: rgba(251,253,254,.97); }

.editorial { padding-block: calc(var(--header-h) + clamp(40px,7vw,90px)) clamp(70px,10vw,130px); min-height: 65vh; }
.editorial-inner { max-width: 850px; }
.editorial-heading { border-bottom: 1px solid var(--line); margin-bottom: 2rem; padding-bottom: 1.35rem; }
.editorial-heading h1 { font-size: clamp(30px,5vw,48px); line-height: 1.38; margin-bottom: .6rem; overflow-wrap: anywhere; }
.editorial-heading > :last-child, .entry-summary > :last-child { margin-bottom: 0; }
.entry-meta { color: #506b7c; font-size: .88rem; }
.entry-meta > * + * { margin-inline-start: .8em; }
.entry-preview { border-bottom: 1px solid var(--line); padding-block: 1.5rem; overflow-wrap: anywhere; }
.entry-preview h2 { margin-block: .3rem .8rem; font-size: clamp(21px,3.5vw,29px); line-height: 1.5; }
.entry-preview .post-thumbnail { display: block; margin-bottom: 1rem; }
.editorial a { color: #125f83; text-decoration: underline; text-underline-offset: .18em; }
.entry-content { overflow-wrap: anywhere; }
.entry-content h2 { margin-block: 1.7em .6em; line-height: 1.45; }
.entry-content h3 { margin-block: 1.5em .55em; line-height: 1.5; }
.entry-content img, .entry-preview img, .entry-thumbnail img { height: auto; }
.entry-content iframe { max-width: 100%; }
.entry-content pre, .entry-content .wp-block-table { overflow: auto; }
.entry-content .wp-block-button__link { color: #fff; }
.entry-content figure { max-width: 100%; }
.entry-thumbnail { margin-bottom: 2rem; }
.post-pagination, .editorial .navigation, .editorial .post-edit-link { margin-block: 1.6rem; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; }
.page-numbers { padding: .25em .4em; }
.page-numbers.current { font-weight: 700; }
.editorial .search-form, .editorial .comment-form { margin-top: 1.2rem; }
.editorial :is(.search-field, .comment-form input:not([type=checkbox]), .comment-form textarea, .post-password-form input) { max-width: 100%; padding: .5rem; }
.editorial .comment-form label { display: block; }
.editorial .comment-form-cookies-consent label { display: inline; }
.editorial .comments-area { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 2rem; }
@media (min-width: 1161px) {
  .header-nav.is-open { margin-top: 0; max-height: none; overflow: visible; }
}
@media (max-width: 1160px) {
  html:not(.has-theme-js) .site-header { position: relative; height: auto; top: 0; }
  html:not(.has-theme-js) .header-inner { flex-wrap: wrap; justify-content: space-between; padding-block: 12px; }
  html:not(.has-theme-js) .header-nav { position: static; order: 1; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; padding: 0; box-shadow: none; }
  html:not(.has-theme-js) .mobile-menu-toggle { display: none; }
}
@media (max-width: 782px) {
  body.admin-bar { --admin-bar: 46px; }
}
@media (max-width: 600px) {
  #wpadminbar { position: fixed; }
}
