@charset "UTF-8";

/* TakKa note dark creator theme */
:root {
  color-scheme: dark;
  --takka-accent: #0f6f73;
  --takka-accent-strong: #0a5559;
  --takka-accent-bright: #17989b;
  --takka-accent-soft: #123135;
  --takka-bg: #071012;
  --takka-bg-soft: #0a1518;
  --takka-surface: #0e191c;
  --takka-surface-2: #142326;
  --takka-surface-3: #193034;
  --takka-ink: #e7f0f1;
  --takka-muted: #9fb3b6;
  --takka-line: #29464a;
  --takka-link: #65d0d2;
}

html, body {
  background-color: var(--takka-bg) !important;
  color: var(--takka-ink) !important;
}

body.custom-background:not(.home) {
  background-position: right center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

body.custom-background:not(.home) #container {
  background: rgba(5, 13, 15, .72) !important;
}

body.home {
  background-image: none !important;
  background: var(--takka-bg) !important;
}

body.home #container {
  background: var(--takka-bg) !important;
}

a {
  color: var(--takka-link);
}

a:hover, a:focus {
  color: #91e4e5;
}

/* 共通ヘッダーはナビ1段だけ。 */
#header {
  display: none !important;
}

#header-container,
#header-container-in {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
}

@media screen and (min-width: 835px) {
  #navi,
  #navi-in.navi-in,
  #navi .menu-header {
    height: 42px !important;
    min-height: 42px !important;
    background: #0b5d61 !important;
  }

  #navi {
    border: 0 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .28) !important;
  }

  #navi-in.navi-in {
    width: min(calc(100% - 32px), 1240px) !important;
    max-width: 1240px !important;
  }

  #navi .menu-header {
    gap: 2px !important;
  }

  #navi .menu-header > .menu-item {
    height: 42px !important;
  }

  #navi .menu-header > .menu-item > a {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 10px !important;
    border-radius: 0 !important;
    color: #d7e6e7 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
  }

  #navi .menu-header > .takka-nav-brand > a {
    padding: 0 18px 0 4px !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: .01em !important;
  }

  #navi .takka-nav-brand-text {
    white-space: nowrap;
  }

  #navi .menu-header > .menu-item-home {
    display: none !important;
  }

  #navi .menu-header > .current-menu-item > a,
  #navi .menu-header > .current-menu-ancestor > a,
  #navi .menu-header > .menu-item:not(.takka-nav-search):hover > a,
  #navi .menu-header > .menu-item:not(.takka-nav-search):focus-within > a {
    background: #124f53 !important;
    color: #fff !important;
  }

  #navi .menu-header .sub-menu {
    border: 1px solid var(--takka-line) !important;
    background: var(--takka-surface) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .34) !important;
  }

  #navi .menu-header .sub-menu a {
    background: var(--takka-surface) !important;
    color: #d5e3e4 !important;
  }

  #navi .menu-header .sub-menu a:hover {
    background: var(--takka-surface-3) !important;
    color: #fff !important;
  }

  #navi .menu-header > .takka-nav-search {
    height: 42px !important;
    max-width: 330px !important;
    padding: 5px 0 5px 14px !important;
  }

  #navi .takka-nav-search-form {
    height: 32px !important;
    border: 1px solid #357176 !important;
    border-radius: 6px !important;
    background: #0d2023 !important;
  }

  #navi .takka-nav-search-form input[type="search"] {
    height: 30px !important;
    background: #0d2023 !important;
    color: #e6f0f1 !important;
    font-size: 12.5px !important;
    line-height: 30px !important;
  }

  #navi .takka-nav-search-form input[type="search"]::placeholder {
    color: #78989c !important;
  }

  #navi .takka-nav-search-form button,
  #navi .takka-nav-search-form input[type="submit"] {
    height: 30px !important;
    border-left-color: #31565b !important;
    background: #13363a !important;
    color: #8edbdd !important;
    line-height: 30px !important;
  }
}

/* Header / accent refinement: dark turquoise blue, no bright green. */
:root {
  --takka-accent: #087c8c;
  --takka-accent-strong: #075f6b;
  --takka-accent-bright: #1aa6b8;
  --takka-accent-soft: #102f36;
  --takka-line: #28505a;
  --takka-link: #6fd3e1;
}

@media screen and (min-width: 835px) {
  body #navi,
  body #navi-in.navi-in,
  body #navi .menu-header {
    background: #075f6b !important;
  }

  body #navi .takka-nav-search-form {
    border-color: #2f7f89 !important;
    background: #0a1b1f !important;
  }

  body #navi .takka-nav-search-form input[type="search"] {
    background: #0a1b1f !important;
    color: #eef8f9 !important;
  }

  body #navi .takka-nav-search-form input[type="search"]::placeholder {
    color: #91aeb2 !important;
  }

  body #navi .takka-nav-search-form button,
  body #navi .takka-nav-search-form input[type="submit"] {
    border-left-color: #2b5961 !important;
    background: #0f3d45 !important;
    color: #d8f3f6 !important;
  }

  body #navi .menu-header > .menu-item:not(.takka-nav-brand):not(.takka-nav-search) > a {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    column-gap: 0 !important;
  }

  body #navi .menu-header > .menu-item-has-children > a::after,
  body #navi .menu-header > .menu-item-has-children > a .fa-angle-down,
  body #navi .menu-header > .menu-item-has-children > a .fa-chevron-down,
  body #navi .menu-header > .menu-item-has-children > a .item-label::after {
    margin-left: 8px !important;
  }

  #navi .menu-header > .takka-nav-brand > a {
    min-width: 42px !important;
    padding: 0 13px 0 4px !important;
  }

  #navi .takka-nav-brand-icon {
    display: block !important;
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    border-radius: 6px !important;
    object-fit: contain !important;
  }

  #navi .menu-header > .current-menu-item > a,
  #navi .menu-header > .current-menu-ancestor > a,
  #navi .menu-header > .menu-item:not(.takka-nav-search):hover > a,
  #navi .menu-header > .menu-item:not(.takka-nav-search):focus-within > a {
    background: #0d7180 !important;
  }
}

@media screen and (min-width: 835px) and (max-width: 1080px) {
  #navi .menu-header > .menu-item:not(.takka-nav-brand):not(.takka-nav-search) > a {
    padding-left: 7px !important;
    padding-right: 7px !important;
    font-size: 11.5px !important;
  }
}

/* 記事・一覧のダークサーフェス */
#content {
  background: transparent !important;
}

#main,
.main {
  border-color: var(--takka-line) !important;
  background: rgba(14, 25, 28, .96) !important;
  color: var(--takka-ink) !important;
  box-shadow: 0 12px 38px rgba(0, 0, 0, .24);
}

.entry-content,
.article,
.article-header,
.article-footer,
.entry-card-content,
.author-content {
  color: var(--takka-ink) !important;
}

.entry-title,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-card-title,
.related-entry-card-title,
.author-name,
.widget-title {
  color: #eef6f7 !important;
}

.entry-content h2 {
  border-color: var(--takka-accent-bright) !important;
}

.entry-content h3 {
  border-color: #31575c !important;
}

.entry-card-wrap,
.related-entry-card-wrap,
.author-box,
.widget,
.pagination .page-numbers {
  border-color: var(--takka-line) !important;
}

.entry-card-wrap,
.related-entry-card-wrap,
.author-box {
  background: var(--takka-surface) !important;
  color: var(--takka-ink) !important;
}

.entry-card-wrap:hover,
.related-entry-card-wrap:hover,
.author-box:hover {
  background: var(--takka-surface-2) !important;
}

.entry-card-snippet,
.entry-card-meta,
.post-date,
.post-update,
.breadcrumb,
.breadcrumb a,
.author-description,
.related-entry-card-snippet {
  color: var(--takka-muted) !important;
}

.cat-label,
.entry-category {
  border-color: #277c80 !important;
  background: #0d5559 !important;
  color: #e4f5f5 !important;
}

.entry-content blockquote {
  border-color: #31565b !important;
  background: #122125 !important;
  color: #c7d7d9 !important;
}

.entry-content pre,
.entry-content code {
  border-color: #294247 !important;
  background: #081316 !important;
  color: #d4e6e7 !important;
}

.entry-content table {
  border-color: #315057 !important;
  background: #0d181b !important;
  color: #e2ecee !important;
}

.entry-content th {
  border-color: #315057 !important;
  background: #13363a !important;
  color: #f0f8f8 !important;
}

.entry-content td {
  border-color: #293f44 !important;
  background: #101d20 !important;
}

input, textarea, select {
  border-color: #345459 !important;
  background: #0c1a1d !important;
  color: #e7f0f1 !important;
}

button,
.button,
.wp-block-button__link {
  border-color: #277c80 !important;
  background: var(--takka-accent) !important;
  color: #fff !important;
}

.pagination .current,
.pagination a:hover {
  border-color: var(--takka-accent-bright) !important;
  background: var(--takka-accent) !important;
  color: #fff !important;
}

/* Header menu compactness and submenu indicator spacing. */
@media screen and (min-width: 835px) {
  body #navi .menu-header > .menu-item:not(.takka-nav-search) > a,
  body #navi .menu-header > .menu-item:not(.takka-nav-search) > a > .item-label {
    font-size: 11px !important;
    line-height: 1 !important;
  }

  body #navi .menu-header > .takka-nav-brand > a,
  body #navi .menu-header > .takka-nav-brand > a > .takka-nav-brand-text {
    font-size: 15px !important;
    font-weight: 600 !important;
  }

  body #navi .menu-header .sub-menu a,
  body #navi .menu-header .sub-menu .item-label {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  body #navi .menu-header > .menu-item-has-children > a > i,
  body #navi .menu-header > .menu-item-has-children > a > svg,
  body #navi .menu-header > .menu-item-has-children > a .fa,
  body #navi .menu-header > .menu-item-has-children > a .fas,
  body #navi .menu-header > .menu-item-has-children > a .far,
  body #navi .menu-header > .menu-item-has-children > a .item-label::after {
    display: none !important;
    content: none !important;
  }

  body #navi .menu-header > .menu-item-has-children > a::after {
    content: "⌄" !important;
    display: inline-block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 0 10px !important;
    padding: 0 !important;
    color: currentColor !important;
    font: inherit !important;
    font-size: .9em !important;
    line-height: 1 !important;
    transform: translateY(-1px) !important;
    vertical-align: middle !important;
  }
}

/* Header menu compactness and submenu indicator spacing. */
@media screen and (min-width: 835px) {
  body #navi .menu-header > .menu-item:not(.takka-nav-search) > a {
    padding-left: 7px !important;
    padding-right: 7px !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
  }

  body #navi .menu-header > .menu-item:not(.takka-nav-search) > a > .item-label {
    font-size: 10.5px !important;
    line-height: 1 !important;
  }

  body #navi .menu-header > .takka-nav-brand > a,
  body #navi .menu-header > .takka-nav-brand > a > .takka-nav-brand-text {
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .01em !important;
  }

  body #navi .menu-header > .menu-item-has-children > a::after,
  body #navi .menu-header > .menu-item-has-children > a > i,
  body #navi .menu-header > .menu-item-has-children > a > svg,
  body #navi .menu-header > .menu-item-has-children > a .fa,
  body #navi .menu-header > .menu-item-has-children > a .fas,
  body #navi .menu-header > .menu-item-has-children > a .far,
  body #navi .menu-header > .menu-item-has-children > a .item-label::after,
  body #navi .menu-header > .menu-item-has-children > a .item-label + * {
    margin-left: 9px !important;
  }
}

/* Emergency contrast normalization for standard article UI. */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: #f1f8f9 !important;
  text-shadow: none !important;
}

.entry-content h2 {
  border-color: #1aa6b8 !important;
  background: #123138 !important;
}

.entry-content h3 {
  border-color: #35636b !important;
  background: #101f23 !important;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
  background: transparent !important;
}

.entry-content figcaption,
.entry-content .wp-caption-text,
.entry-content .gallery-caption,
.entry-content .image-caption,
.entry-content .caption,
.entry-content .annotation,
.entry-content .note,
.entry-content small {
  color: #b8cacc !important;
}

.entry-content .information-box,
.entry-content .question-box,
.entry-content .alert-box,
.entry-content .memo-box,
.entry-content .comment-box,
.entry-content .common-icon-box,
.entry-content .blank-box,
.entry-content .tab-caption-box,
.entry-content .label-box,
.entry-content .toggle-wrap,
.entry-content .box-memo,
.entry-content .box-info,
.entry-content .box-question,
.entry-content .box-alert,
.entry-content .box-ok,
.entry-content .box-ng,
.entry-content .box-good,
.entry-content .box-bad,
.entry-content .box-profile {
  border-color: #35565d !important;
  background: #122125 !important;
  color: #e5eff0 !important;
}

.entry-content .information-box *,
.entry-content .question-box *,
.entry-content .alert-box *,
.entry-content .memo-box *,
.entry-content .comment-box *,
.entry-content .common-icon-box *,
.entry-content .blank-box *,
.entry-content .tab-caption-box *,
.entry-content .label-box *,
.entry-content .toggle-wrap *,
.entry-content .box-memo *,
.entry-content .box-info *,
.entry-content .box-question *,
.entry-content .box-alert *,
.entry-content .box-ok *,
.entry-content .box-ng *,
.entry-content .box-good *,
.entry-content .box-bad *,
.entry-content .box-profile * {
  color: inherit !important;
}

.entry-content .toc,
.entry-content .toc-content,
.entry-content .blogcard,
.entry-content .blogcard-content,
.entry-content .internal-blogcard,
.entry-content .external-blogcard {
  border-color: #35565d !important;
  background: #101d20 !important;
  color: #e5eff0 !important;
}

.entry-content .toc a,
.entry-content .blogcard a,
.entry-content .internal-blogcard a,
.entry-content .external-blogcard a {
  color: #78d8e4 !important;
}

.entry-content hr {
  border-color: #315159 !important;
}

.entry-content mark {
  background: #8b6a19 !important;
  color: #fff8dc !important;
}

/* Final desktop header scale/density override. Keep menu smaller than brand and compact submenus. */
@media screen and (min-width: 835px) {
  body #navi .menu-header > .menu-item:not(.takka-nav-search) > a {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  body #navi .menu-header > .menu-item:not(.takka-nav-search) > a .item-label,
  body #navi .menu-header > .menu-item:not(.takka-nav-search) > a .caption-wrap,
  body #navi .menu-header > .menu-item:not(.takka-nav-search) > a .caption-wrap * {
    font-size: inherit !important;
    line-height: inherit !important;
  }

  body #navi .menu-header > .takka-nav-brand > a,
  body #navi .menu-header > .takka-nav-brand > a .takka-nav-brand-text {
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  body #navi .menu-header > .menu-item-has-children > a::after {
    margin-left: 12px !important;
    font-size: .82em !important;
  }

  body #navi .menu-header .sub-menu {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  body #navi .menu-header .sub-menu > .menu-item {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  body #navi .menu-header .sub-menu > .menu-item > a {
    height: auto !important;
    min-height: 34px !important;
    padding: 7px 12px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  body #navi .menu-header .sub-menu > .menu-item > a .item-label,
  body #navi .menu-header .sub-menu > .menu-item > a .caption-wrap,
  body #navi .menu-header .sub-menu > .menu-item > a .caption-wrap * {
    font-size: inherit !important;
    line-height: inherit !important;
  }
}

/* Header fine tuning: slightly larger labels and a proper CSS chevron. */
@media screen and (min-width: 835px) {
  body #navi .menu-header > .menu-item:not(.takka-nav-search) > a {
    font-size: 13px !important;
  }

  body #navi .menu-header > .takka-nav-brand > a,
  body #navi .menu-header > .takka-nav-brand > a .takka-nav-brand-text {
    font-size: 15px !important;
  }

  body #navi .menu-header .sub-menu > .menu-item > a {
    font-size: 12px !important;
  }

  body #navi .menu-header > .menu-item-has-children > a::after {
    content: "" !important;
    display: inline-block !important;
    position: relative !important;
    top: -1px !important;
    width: 6px !important;
    height: 6px !important;
    margin: 0 0 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
    border-right: 1.5px solid currentColor !important;
    border-bottom: 1.5px solid currentColor !important;
    transform: rotate(45deg) !important;
    font-size: 0 !important;
    line-height: 0 !important;
    vertical-align: middle !important;
  }
}

/* Header fine tuning: slightly larger labels and Font Awesome angle-down icon. */
@media screen and (min-width: 835px) {
  body #navi .menu-header > .menu-item:not(.takka-nav-search) > a {
    font-size: 14px !important;
  }

  body #navi .menu-header > .takka-nav-brand > a,
  body #navi .menu-header > .takka-nav-brand > a .takka-nav-brand-text {
    font-size: 16px !important;
  }

  body #navi .menu-header .sub-menu > .menu-item > a {
    font-size: 13px !important;
  }

  body #navi .menu-header > .menu-item-has-children > a::after {
    content: "\f107" !important;
    display: inline-block !important;
    position: relative !important;
    top: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 0 9px !important;
    padding: 0 !important;
    border: 0 !important;
    color: currentColor !important;
    font-family: FontAwesome !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: normal !important;
    line-height: 1 !important;
    transform: none !important;
    vertical-align: middle !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
  }
}

/* Search field vertical alignment. */
@media screen and (min-width: 835px) {
  body #navi .takka-nav-search-form input[type="search"] {
    height: 30px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: normal !important;
    transform: translateY(-1px) !important;
  }
}

/* Footer */
.footer,
.footer-bottom,
.footer-bottom-content {
  border-color: #183438 !important;
  background: #081719 !important;
  color: #9fb5b8 !important;
}

.footer a {
  color: #bad0d2 !important;
}

.footer a:hover {
  color: #7ddadc !important;
}

/* トップページではCocoonの本文カード枠を外し、写真とコンテンツを画面全体で構成する。 */
body.home #content {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--takka-bg) !important;
}

body.home #content-in {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.home #main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.home #sidebar,
body.home #sidebar-scroll,
body.home #content-top,
body.home #content-bottom {
  display: none !important;
}

body.home .ad-area,
body.home ins.adsbygoogle {
  display: none !important;
}

/* トップページ */
.takka-home {
  margin: 0;
  padding: 0 0 72px;
  background: var(--takka-bg);
  color: var(--takka-ink);
}

.takka-home-hero {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #020708;
}

.takka-home-hero-media {
  width: 100%;
  height: clamp(390px, 58vh, 650px);
  object-fit: cover;
  object-position: 100% 70%;
  display: block;
}

.takka-home-hero-copy {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  width: min(520px, calc(100% - 48px));
  padding: 22px 26px;
  border: 1px solid rgba(115, 211, 213, .32);
  border-radius: 12px;
  background: rgba(5, 18, 21, .9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .34);
  backdrop-filter: blur(8px);
  box-sizing: border-box;
}

.takka-home-hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
}

.takka-home-hero-tagline {
  margin: 10px 0 0;
  color: #c6dcde;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.5;
}

.takka-home-inner {
  width: min(calc(100% - 40px), 1180px);
  margin: 0 auto;
}

.takka-home-section {
  padding: 66px 0 0;
}

.takka-home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
}

.takka-home-section-title {
  margin: 0;
  color: #eef7f7;
  font-size: clamp(23px, 2.5vw, 32px);
  font-weight: 650;
  line-height: 1.2;
}

.takka-home-section-link {
  color: #72d4d6;
  font-size: 13px;
  white-space: nowrap;
}

.takka-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.takka-home-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--takka-line);
  border-radius: 12px;
  background: var(--takka-surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
  transition: transform .16s ease, border-color .16s ease, background-color .16s ease;
}

.takka-home-card:hover,
.takka-home-card:focus {
  transform: translateY(-2px);
  border-color: #34777b;
  background: var(--takka-surface-2);
  color: inherit;
}

.takka-home-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #081214;
}

.takka-home-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.takka-home-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0b3438, #102126);
  color: #83d4d6;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: .04em;
}

body.home .footer {
  margin-top: 0 !important;
}

.takka-home-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 16px 16px;
}

.takka-home-card-title {
  margin: 0;
  color: #edf6f7;
  font-size: 16px;
  font-weight: 620;
  line-height: 1.5;
}

.takka-home-card-excerpt {
  margin: 9px 0 0;
  color: var(--takka-muted);
  font-size: 13px;
  line-height: 1.6;
}

.takka-home-card-meta {
  margin-top: auto;
  padding-top: 12px;
  color: #789b9f;
  font-size: 12px;
}

.takka-home-youtube {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  gap: 22px;
  align-items: stretch;
}

.takka-home-youtube-player {
  overflow: hidden;
  border: 1px solid var(--takka-line);
  border-radius: 12px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.takka-home-youtube-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.takka-home-youtube-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--takka-line);
  border-radius: 12px;
  background: var(--takka-surface);
}

.takka-home-youtube-copy h3 {
  margin: 0 0 10px;
  color: #f0f8f8;
  font-size: 22px;
}

.takka-home-youtube-copy p {
  margin: 0;
  color: var(--takka-muted);
  line-height: 1.7;
}

.takka-home-youtube-link {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 18px;
  padding: 9px 14px;
  border: 1px solid #34777b;
  border-radius: 7px;
  color: #dff5f5;
  text-decoration: none;
}

.takka-home-youtube-link:hover {
  background: var(--takka-accent-soft);
}

.takka-home-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.takka-home-topic {
  padding: 20px;
  border: 1px solid var(--takka-line);
  border-radius: 12px;
  background: var(--takka-surface);
}

.takka-home-topic h3 {
  margin: 0 0 12px;
  color: #edf6f7;
  font-size: 20px;
}

.takka-home-topic h3 a {
  color: inherit;
  text-decoration: none;
}

.takka-home-topic-children {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.takka-home-topic-children a {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid #2f5358;
  border-radius: 999px;
  background: #102124;
  color: #bcd2d4;
  font-size: 12px;
  text-decoration: none;
}

@media screen and (max-width: 834px) {
  #header-container, #header-container-in {
    height: 0 !important;
    min-height: 0 !important;
  }

  .takka-home {
    padding-bottom: 84px;
  }

  .takka-home-hero-media {
    height: clamp(300px, 52vh, 460px);
    object-position: 100% 70%;
  }

  .takka-home-hero-copy {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin: 0;
    padding: 19px 20px 21px;
    border: 0;
    border-bottom: 1px solid var(--takka-line);
    border-radius: 0;
    background: #0b171a;
    box-shadow: none;
    backdrop-filter: none;
  }

  .takka-home-hero-title {
    font-size: 32px;
  }

  .takka-home-inner {
    width: calc(100% - 24px);
  }

  .takka-home-section {
    padding-top: 44px;
  }

  .takka-home-grid,
  .takka-home-topics {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .takka-home-youtube {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .takka-home-youtube-copy {
    padding: 18px;
  }
}

@media screen and (min-width: 835px) and (max-width: 1080px) {
  #navi .menu-header > .menu-item > a {
    padding-left: 7px !important;
    padding-right: 7px !important;
    font-size: 12.5px !important;
  }

  #navi .menu-header > .takka-nav-brand > a {
    padding-left: 2px !important;
    padding-right: 12px !important;
    font-size: 15px !important;
  }
}
