@charset "UTF-8";

/* ===================================================
   1. 基本レイアウト（スマホ向けベース）
   =================================================== */
.container {
  padding: 15px;
}

.column-wrapper {
  display: flex;
  flex-direction: column; 
  gap: 15px;
}

body {
  font-family: Trebuchet MS, 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', '游ゴシック Medium', 'Yu Gothic Medium', sans-serif;
  max-width: 1000px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  font-size: 1.1rem;
  line-height: 1.8;
  --p-margin: 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

p {
  margin-top: 0;
  margin-bottom: 24px;
}

.space-lg {
  margin-bottom: 50px; 
}

/* ヘッダー・ナビゲーション */
header {
  text-align: center;
  padding-top: 40px;
  margin-bottom: 60px; 
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-bottom: 15px;
}

header h1 {
  margin-bottom: 20px;
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  margin-left: 10px;
  vertical-align: middle;
}

.profile-box i {
  margin-right: 1em;
}

nav a {
  text-decoration: none; 
}

nav ul {
  list-style: none; 
  padding-left: 0;  
  margin: 0;
  display: flex;   
  justify-content: center;
  gap: 20px;     
}

footer {
  text-align: center; 
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 0.85rem; 
}

/* ===================================================
   2. PC向けのレイアウト（画面幅 768px 以上）
   =================================================== */
@media (min-width: 768px) {
  .container {
    padding: 40px;
  }
  .column-wrapper {
    flex-direction: row; 
  }
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr) !important;
  }
}

/* ===================================================
   🎨 イラストギャラリー（pict）
   =================================================== */
#pict {
  margin-top: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  z-index: auto;
}

.gallery-item a.fuwaimg {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: inline-block;
  font-size: 0.75rem;       
  font-weight: bold;
  padding: 2px 6px;          
  border-radius: 2px;        
  letter-spacing: 0.05em;
  line-height: 1;
}

.pict-page header {
  margin-bottom: 30px;
}

.pict-page header h1 {
  margin-bottom: 10px;
}

/* ===================================================
   🧭 ジャンプバナー
   =================================================== */
.log-banner-section {
  margin-top: 60px;    
}

.log-banner {
  flex: 1;             
  display: block;
  border-radius: 6px;        
  padding: 15px 20px;      
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease; 
}

.log-banner:hover {
  transform: translateY(-2px); 
}

.banner-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.banner-title {
  font-size: 1.05rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.banner-desc {
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.log-banner-section .column-wrapper {
  flex-direction: row;
  gap: 10px;
}

@media (max-width: 767px) {
  .log-banner {
    padding: 12px 5px;
  }
}

/* ===================================================
   📖 ログ（隙間なし縦一列）
   =================================================== */
#comic-container {
  max-width: 700px;    
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
  padding: 0;          
}

.comic-log {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comic-log img {
  width: 100%;         
  height: auto;
  display: block;      
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 20px; /* 💡隙間をあける設定を維持している */
  margin-left: 0;
  padding: 0;
  border-radius: 4px;
}

.comic-divider {
  border: none;
  height: 4px;
  max-width: 150px;
  margin-top: 40px;
  margin-bottom: 40px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 2px;
}

/* ===================================================
   🧭 ログナビゲーション
   =================================================== */
.comic-nav {
  display: flex;
  justify-content: center;    
  align-items: center;
  gap: 15px;                  
  margin-bottom: 60px;        
}

.nav-btn {
  display: inline-block;
  padding: 8px 24px;          
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;         
  transition: all 0.3s ease;  
}

/* ===================================================
   🎪 同人誌（offline）ページのレイアウト
   =================================================== */
.offline-section {
  margin-top: 20px;
}

/* 本を包む大きなカード */
.book-card {
  border-radius: 8px;
  padding: 30px;
  gap: 30px !important;      
  margin-bottom: 40px;
  align-items: flex-start;
}

/* 🖼️ 表紙画像の設定 */
.book-cover {
  flex: 1;                    
  max-width: 400px;           
  margin: 0 auto;             
}
.book-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* 📝 本の情報エリア */
.book-info {
  flex: 1;                    
  display: flex;
  flex-direction: column;
  text-align: left;    
  width: 100%;       
}

/* 「NEW RELEASE」などの小さなタグ */
.book-status {
  display: inline-block;
  align-self: flex-start;     
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.book-info h3 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 10px;
}

/* イベント情報 */
.event-meta {
  margin-bottom: 20px;
}
.event-meta p {
  margin-bottom: 4px;
  font-size: 0.95rem;
}
.event-meta i {
  margin-right: 6px;
}

/* 📋 仕様スペック表 */
.book-spec {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.book-spec th, .book-spec td {
  padding: 8px 10px;
  vertical-align: middle;
}
.book-spec th {
  width: 90px;
  font-weight: bold;
}

/* あらすじエリア */
.book-story h4 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 8px;
}
.book-story p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* 🛒 通販リンクボタンのエリア */
.shop-links {
  display: flex;
  flex-wrap: wrap;            
  gap: 12px;
  margin-top: auto;           /* ボタンを常に一番下に配置する */
  padding-top: 15px;
}

/* 通販ボタン */
.shop-btn {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* 📱 スマホ画面の微調整 */
@media (max-width: 767px) {
  .book-card {
    padding: 15px; 
  }
}

/* ===================================================
   👤 プロフィール（about）ページのレイアウト
   =================================================== */
.profile-section {
  margin-top: 20px;
}

/* プロフィールカード */
.profile-card {
  border-radius: 8px;
  padding: 30px;
  gap: 40px !important;       
  align-items: center;        
}

/* 🖼️ 自画像アイコンの設定 */
.profile-avatar {
  flex-shrink: 0;             /* 画像が絶対に潰れないようにする */
  width: 150px;               /* アイコンの横幅（好きな大きさに変えてね） */
  height: 150px;              /* アイコンの縦幅（横幅と同じにしてね） */
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;          
  border-radius: 50%;        
}

/* 📝 プロフィールのテキストエリア */
.profile-info {
  flex: 1;
  text-align: left;
}

.profile-info h3 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 10px;
}

.profile-bio {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* 好きなモノの箇条書き */
.profile-info h4 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 8px;
}

.profile-info ul {
  list-style: none;           
  padding-left: 0;
  margin: 0;
}

.profile-info li {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.profile-info i {
  margin-right: 8px;          /* ハートマークの右側の隙間 */
}

/* 📱 スマホ画面の時は縦並びにする設定 */
@media (max-width: 767px) {
  .profile-card {
    padding: 20px;
    text-align: center;       
  }
  .profile-info {
    text-align: center;
}
}

/* 🌐 SNS一言リストの骨組み */
.profile-sns-list {
  list-style: none !important; /* ポチ丸を絶対に消す */
  padding-left: 0 !important;
  margin: 0;
  display: flex;
  flex-direction: column;      /* 縦に1行ずつ積む */
  gap: 12px;                   /* 行と行の間の隙間 */
}

.profile-sns-list li {
  display: flex;
  align-items: center;         
  flex-wrap: wrap;             /* スマホで狭くなったら自動折り返し */
  font-size: 0.95rem;
}

.profile-sns-list a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: bold;
  gap: 8px;                    
}

.profile-sns-list i {
  font-size: 1.2rem;
  width: 24px;                 
  text-align: center;
}

.sns-comment {
  margin-left: 4px;            
}

/* 📱 スマホ画面の時の微調整 */
@media (max-width: 767px) {
  .profile-sns-list li {
    justify-content: center;   
  }
}

/* 🔗 リンク集エリアの配置 */
.link-a {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}

.link-a a {
  display: block;
  width: 100%;
}

.link-a img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.link-b {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

/* 💻 ここからPC向け（画面幅 768px 以上）の切り替え設定 */
@media (min-width: 768px) {
  .link-a {
    display: flex;             
    flex-wrap: wrap;           
  }

  .link-a a {
    width: auto;               
  }

  .link-a img {
    width: auto;               
    max-width: 100%;
  }
}

/* 文字リンク（BOOKMARK）の設定 */
.link-b {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}