/*
Theme Name: Tech Noisy
Description: 新規WordPressテーマ「Tech Noisy」
Version: 1.0.0
Author: Your Name
*/

/**
* tailwindcssのリアルタイムビルドを有効化するためのコマンド
* npm run watch:css
*/

body {
    font-family: "fot-udkakugo-large-pr6n", sans-serif;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: url("./src/images/bg-noise-s.jpg");
    background-size: 325px 325px;
    background-position: center;
    background-repeat: repeat;
    opacity: 0.2;
}

.ubuntu {
    font-family: "Ubuntu Mono", monospace;
}

a {
    transition: color 0.2s ease, background-color 0.2s ease;
}
a:hover {
    color: #f97316;
}

/* Hide scrollbar but keep scroll functionality */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Ensure Gutenberg embeds keep a 16:9 ratio */
.wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe,
.wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper embed,
.wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper object {
  width: 100%;
  height: 100% !important; /* override inline height attributes from providers */
  display: block;
}

/* ===========================================
   Single Content - Block Editor Styles
   =========================================== */

.single-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #262626;
    color: #0a0a0a;
}

.single-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 4px solid #404040;
    color: #171717;
}

.single-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #262626;
}

.single-content p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #262626;
}

.single-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.single-content ul li {
    position: relative;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #262626;
}

.single-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background-color: #525252;
    border-radius: 50%;
}

.single-content ol {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    counter-reset: ol-counter;
}

.single-content ol li {
    position: relative;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    padding-left: 2rem;
    margin-bottom: 0.5rem;
    color: #262626;
    counter-increment: ol-counter;
}

.single-content ol li::before {
    content: counter(ol-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: #525252;
}

/* 最初のh2の上マージンをリセット */
.single-content > h2:first-child {
    margin-top: 0;
}

/* 連続する見出しの間隔調整 */
.single-content h2 + h3 {
    margin-top: 1.25rem;
}

.single-content h3 + h4 {
    margin-top: 1rem;
}

.single-content pre {
    font-family: "Ubuntu Mono", monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    background-color: #1a1a1a;
    color: #e5e5e5;
    padding: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
}

.single-content pre code {
    font-family: inherit;
    font-size: inherit;
    background: none;
    padding: 0;
    color: inherit;
}

.single-content hr {
    border: none;
    height: 1px;
    background-color: #d4d4d4;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.single-content a {
    color: #ea580c;
    text-decoration: underline;
    text-decoration-color: #ea580c;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    word-break: break-all;
    overflow-wrap: anywhere;
    padding: 2px 4px;
    margin: -2px -4px;
    border-radius: 2px;
    background-color: transparent;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.single-content a:hover {
    color: #ffffff;
    background-color: #0a0a0a;
    text-decoration-color: transparent;
}


.wp-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    -moz-column-gap: 0.5rem;
         column-gap: 0.5rem;
    row-gap: 0px;
  }
  
  .wp-tag-cloud a {
    font-weight: 700;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
  }
  
  .wp-tag-cloud a:hover {
    --tw-text-opacity: 1;
    color: #f97316;
  }
  