/*
Theme Name: REPIXTS Blog Theme
Theme URI: https://repixts.note/
Author: Tenri Irosaki
Author URI: https://repixts.note/
Description: REPIXTS.NOTE専用のカスタムブログテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: repixts-blog
*/

/* ========================================
   リセット & ベーススタイル
======================================== */
* {
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  margin: 0;
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  background-image: url(img/header_background-image.png);
  background-repeat: repeat-x;
  background-size: contain;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   コンパクトヘッダー
======================================== */
.compact_header {
  background: linear-gradient(135deg, #CC5500 0%, #FF7733 100%);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#header_wrapper {
  position: relative;
}

#header_container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#site_logo img {
  height: 50px;
  width: auto;
}

/* ハンバーガーメニュー */
#menu_toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 50px;
  height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 1001;
}

#menu_toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

#menu_toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

#menu_toggle.active span:nth-child(2) {
  opacity: 0;
}

#menu_toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* メニューパネル */
#menu_panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: linear-gradient(135deg, #CC5500 0%, #FF7733 100%);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: right 0.4s ease;
  overflow-y: auto;
  padding: 80px 30px 30px;
}

#menu_panel.active {
  right: 0;
}

#menu_close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  line-height: 1;
}

#menu_list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.menu_item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.menu_item:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* 下部メニューバー */
#bottom_menu_bar {
  background: rgba(204, 85, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 15px 0;
}

.bottom_menu_item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  color: white;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.bottom_menu_item:last-child {
  border-right: none;
}

.bottom_menu_item:hover {
  background: rgba(255, 119, 51, 0.8);
}

/* ========================================
   フッター
======================================== */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 80px;
}

#footer_wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4%;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 768px) {
  #menu_panel {
    width: 100%;
    right: -100%;
  }

  .bottom_menu_item {
    font-size: 0.85rem;
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  #site_logo img {
    height: 40px;
  }

  .bottom_menu_item {
    font-size: 0.75rem;
    padding: 8px 8px;
  }
}
