@charset "UTF-8";
/*
Theme Name: KotaLog v1
Description: ミニマルデザインのWordPressテーマ。白背景×#222の本文色を基本とした印刷物的デザイン。
Version: 1.0
Author: KotaLog
Text Domain: kotalog

================================================
🚨 重要：このファイルについて
================================================
📝 layout.scss を見ている方へ：
   ✅ このファイルがソースファイルです
   ✅ このファイルを編集してください

📝 layout.css を見ている方へ：
   ⚠️ このCSSファイルは自動生成されます
   ❌ このファイルを直接編集しないでください
   ❌ 編集した内容は次回コンパイル時に失われます
   ✅ 代わりに assets/scss/layout.scss を編集してください

編集後のコンパイル方法：
  npm run build:scss      （1回だけコンパイル）
  npm run watch:scss      （自動コンパイル）

詳細はREADME.mdを参照してください。
================================================
*/
/* 基本的なリセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "YakuHanJP", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.75;
  color: #222;
  background-color: #fff;
  font-weight: 400;
  letter-spacing: 0.075em;
}

/* リンクの基本スタイル */
a {
  color: #222;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a:hover {
  opacity: 0.7;
}

/* 見出しの基本スタイル */
/* より詳細度の高いセレクタでh1を指定 */
article h1,
.single h1,
.post h1,
.entry-content h1 {
  font-size: 2rem;
  font-weight: normal;
}

h2 {
  font-size: 1.25em;
}

/* 段落の基本スタイル */
/* リストの基本スタイル */
/* 引用の基本スタイル */
blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid #eee;
  font-style: italic;
}

/* 画像の基本スタイル */
img {
  max-width: 100%;
  height: auto;
}

/* テーブルの基本スタイル */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
table th, table td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

/* フォームの基本スタイル */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 0;
}

/* ボタンの基本スタイル */
button {
  font-family: inherit;
  font-size: inherit;
  padding: 0.5rem 1rem;
  border: 1px solid #222;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
button:hover {
  background-color: #f5f5f5;
}

/* メタ情報のフォント設定 */
.meta-info {
  font-family: "JetBrains Mono", "Courier New", monospace;
}

/* コピーライトのフォントサイズ設定 */
.copyright {
  font-size: 10px;
}

/* ヘッダーメニューのスタイル */
header {
  background: #fff;
}

/* ヘッダーのパディング調整 */
header.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media (max-width: 767px) {
  header.py-8 {
    padding-top: 1rem;
    padding-bottom: 2rem;
  }
}
/* デスクトップメニュー */
.desktop-menu {
  display: block;
}

.desktop-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}
.desktop-menu-list li {
  position: relative;
}
.desktop-menu-list a {
  display: block;
  padding: 0.5rem 0;
  color: #222;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.desktop-menu-list a:hover {
  opacity: 0.7;
}
.desktop-menu-list {
  /* デスクトップドロップダウンメニュー */
}
.desktop-menu-list .has-dropdown {
  position: relative;
}
.desktop-menu-list .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 200px;
  background: transparent;
  border: 1px solid #eee;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
}
.desktop-menu-list .dropdown-menu li {
  border-bottom: 1px solid #f5f5f5;
}
.desktop-menu-list .dropdown-menu li:last-child {
  border-bottom: none;
}
.desktop-menu-list .dropdown-menu a {
  padding: 0.75rem 1rem;
  font-size: 0.9em;
}
.desktop-menu-list .dropdown-menu a:hover {
  background-color: #f8f9fa;
}
.desktop-menu-list .has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 言語切替（保留中） */
/*
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8em;
    margin-left: 3.5rem;

    .lang-link {
        color: #222;
        text-decoration: none;
        transition: opacity 0.2s ease;
        padding: 0.5rem 0;

        &:hover {
            opacity: 0.7;
        }

        &.active {
            font-weight: 600;
        }
    }

    .lang-separator {
        color: #999;
        user-select: none;
    }

    &.mobile {
        display: none;
    }
}
*/
/* モバイルメニューボタン */
.mobile-menu-toggle {
  display: none;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* モバイルメニュー */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 50;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  background: #fff;
}
.mobile-menu.show {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.mobile-menu-close {
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-content {
  padding: 1rem;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu-list a {
  display: block;
  padding: 1rem 0;
  color: #222;
  text-decoration: none;
  font-size: 1.1rem;
}
.mobile-menu-list a:hover {
  opacity: 0.7;
}
.mobile-menu-list {
  /* モバイルメニューのサブメニュー */
}
.mobile-menu-list .dropdown-menu {
  display: none;
  margin-top: 0.5rem;
  margin-left: 1rem;
}
.mobile-menu-list .dropdown-menu.show {
  display: block;
}
.mobile-menu-list .dropdown-menu li {
  margin-bottom: 0.25rem;
}
.mobile-menu-list .dropdown-menu a {
  padding: 0.75rem 0;
  font-size: 1rem;
  color: #666;
}

/* モバイルメニューのトグルボタン */
.mobile-toggle-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #222;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-toggle-btn:hover {
  opacity: 0.7;
}
.mobile-toggle-btn.open {
  transform: none;
}
.mobile-toggle-btn.open::before {
  content: "-";
}
.mobile-toggle-btn:not(.open)::before {
  content: "+";
}

/* モバイルメニューのSNSリンク */
.mobile-sns-links {
  margin-top: 3rem;
  padding-top: 2rem;
}
.mobile-sns-links .social-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  font-weight: 400;
  color: #222;
  margin: 0 0 1.5rem 0;
  text-align: left;
}
.mobile-sns-links .sns {
  list-style: none;
  margin: 0;
  padding-left: 1rem;
  text-align: left;
}
.mobile-sns-links .sns li {
  margin: 0 0 0.75rem 0;
  list-style: inside;
}
.mobile-sns-links .sns a {
  color: #222;
  text-decoration: none;
  font-size: 0.8rem;
  transition: opacity 0.2s ease;
}
.mobile-sns-links .sns a:hover {
  opacity: 0.7;
}

/* フッターのSNSリンク */
.footer-sns-links {
  margin-bottom: 1rem;
}
.footer-sns-links .social-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  font-weight: 400;
  color: #222;
  margin: 0 0 1rem 0;
  text-align: center;
}
.footer-sns-links .sns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.footer-sns-links .sns li {
  margin: 0;
}
.footer-sns-links .sns a {
  display: block;
  padding: 0.5rem 0;
  color: #222;
  text-decoration: none;
  font-size: 0.875rem;
  transition: opacity 0.2s ease;
}
.footer-sns-links .sns a:hover {
  opacity: 0.7;
}

/* レスポンシブ表示切り替え */
@media (max-width: 767px) {
  .desktop-menu {
    display: none;
  }
  /* 言語切替用（保留中） */
  /*
  .mobile-header-right {
      display: flex;
      align-items: center;
      gap: 1rem;
  }

  .language-switcher {
      margin-left: 0;

      &.mobile {
          display: flex;
      }

      &:not(.mobile) {
          display: none;
      }
  }
  */
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    display: block;
  }
}
@media (min-width: 768px) {
  .desktop-menu {
    display: block;
  }
  /* 言語切替用（保留中） */
  /*
  .mobile-header-right {
      display: none;
  }

  .language-switcher {
      &.mobile {
          display: none;
      }

      &:not(.mobile) {
          display: flex;
      }
  }
  */
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none;
  }
}
/* コードブロックのシンプルなスタイル */
.wp-block-code,
pre.wp-block-code {
  background-color: #f8f9fa;
  color: #222;
  padding: 1rem;
  border-radius: 4px;
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid #e9ecef;
}
.wp-block-code code,
pre.wp-block-code code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
  border-radius: 0;
}

/* インラインコードのスタイル */
code:not(.wp-block-code code) {
  background-color: #f8f9fa;
  color: #222;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 0.9em;
}

/* フッター固定のスタイル */
.footerFixed {
  min-height: 100vh; /* コンテンツの高さの最小値＝ブラウザの高さに指定 */
  position: relative; /* 相対位置 */
  padding-bottom: 120px; /* フッターの高さを指定（余裕を持たせる） */
  box-sizing: border-box; /* ヘッダーやフッターを含むすべての要素の高さ＝min-height:100vhになるように指定 */
}

#footer {
  position: absolute; /* 絶対位置 */
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: transparent; /* 背景色を透明にしてhtmlの背景色を表示 */
  z-index: 10; /* 他の要素より前面に表示 */
}

/* メインコンテンツエリアの調整 */
main {
  margin-bottom: 2rem; /* フッターとの間隔を確保 */
}

/* Gutenberg ボタンブロックのリセット */
.wp-block-buttons {
  margin-bottom: 1rem;
}

.wp-block-button {
  margin: 0;
}
.wp-block-button .wp-block-button__link {
  font-size: 1rem;
  font-weight: 400;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #222 !important;
  text-decoration: underline;
  display: inline;
}
.wp-block-button .wp-block-button__link:hover {
  text-decoration: none;
  opacity: 0.7;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 0 !important;
}

/* FrontPage */
.illust-name {
  width: 7rem;
  height: auto;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

@media (min-width: 768px) {
  .illust-name {
    margin-left: 0;
    margin-right: auto;
  }
}
@media (max-width: 767px) {
  section:nth-of-type(1) h2 {
    text-align: center;
  }
}
.col-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.col-wrap .col {
  width: 100%;
  text-align: center;
}
.col-wrap .col p {
  margin-bottom: 1em;
}
.col-wrap .col.illust-bg {
  order: -1;
}
.col-wrap .col.illust-bg img {
  width: 100%;
  height: auto;
}
@media (min-width: 768px) {
  .col-wrap {
    flex-direction: row;
  }
  .col-wrap .col {
    flex: none;
    width: 360px;
    text-align: left;
  }
  .col-wrap .col.illust-bg {
    flex: 1;
    width: auto;
    order: 0;
    background-image: url("../images/illust_1000w.gif");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
  }
  .col-wrap .col.illust-bg img {
    display: none;
  }
}

h4 svg {
  width: 0.75rem;
  height: auto;
  flex-shrink: 0;
  fill: currentColor;
  margin-right: 0.25rem;
}
h4 span {
  font-size: 0.75rem;
  font-family: "JetBrains Mono", "Courier New", monospace;
}

.instagram-swiper img,
.instagram-posts-swiper img {
  position: relative;
  z-index: 0;
}
.instagram-swiper .absolute,
.instagram-posts-swiper .absolute {
  z-index: 0;
}

.instagram-posts-swiper .swiper-slide a {
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.instagram-posts-swiper .swiper-slide a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Swiper.js ドット（pagination）のモノクロスタイル */
.swiper-pagination-bullet {
  background-color: #ccc !important;
  opacity: 0.5 !important;
  transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
  background-color: #222 !important;
  opacity: 1 !important;
}

.swiper-pagination {
  position: relative !important;
  margin-top: 2rem !important;
}
