@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;
  }
}

/* 記事・一覧のダークサーフェス */
#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;
}

/* 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: right center;
  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: right center;
  }

  .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;
  }
}
