@charset "utf-8";

/* ==========================================================================
   1. 全体共通設定（メインサイト同期・1カラム最適化）
   ========================================================================== */
html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    color: #444444;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.75;
}

/* リンク装飾 */
a:link, a:visited {
    color: #555555;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}
a:hover {
    color: #111111;
    text-decoration: underline;
}

.url {
    word-break: break-all;
}

/* 1カラム用コンテナ */
.container {
    max-width: 650px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ==========================================================================
   2. ヘッダー・上部ナビゲーション領域
   ========================================================================== */
.site-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 25px;
}
.site-header h1.maintitle {
    font-size: 1.8rem;
    letter-spacing: 0.15em;
    margin: 0 0 10px 0;
}
.site-header h1.maintitle a {
    color: #222222;
}
.catchphrase {
    font-size: 0.8rem;
    color: #999999;
    margin: 0 0 20px 0;
}

/* 管理・投稿リンク */
.headcontrol .control-links a {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 14px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    color: #666666;
    margin: 0 2px;
}
.headcontrol .control-links a:hover {
    background: #f2f4f5;
    border-color: #bbbbbb;
    color: #111111;
    text-decoration: none;
}

/* 新設：上部ナビゲーション（横並び設定） */
.top-navigation {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 35px;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.top-navigation .nav-block {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}
.top-navigation .nav-title {
    font-weight: bold;
    color: #888888;
    margin-right: 10px;
    flex-shrink: 0;
    min-width: 90px;
}
.top-navigation .nav-body {
    flex: 1;
}

/* てがろぐ固有のリストを横並びにする（ul/liの解除） */
.inline-tags ul, .inline-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline;
}
.inline-tags li, .inline-categories li {
    display: inline;
    margin-right: 12px;
}
.inline-tags li:after, .inline-categories li:after {
    content: ",";
    color: #ccc;
    margin-left: 4px;
}
.inline-tags li:last-child:after, .inline-categories li:last-child:after {
    content: "";
}
.top-navigation .num {
    color: #b2b2b2;
    font-size: 0.7rem;
    margin-left: 2px;
}

/* ==========================================================================
   3. メイン（投稿ログ表示）領域
   ========================================================================== */
.situation {
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #222222;
    padding: 8px 12px;
    background: #eeeeee;
    border-radius: 4px;
}

.dateseparator {
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: #999999;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
    margin: 50px 0 25px 0;
}

.onelogbox {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
}

.comment {
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.85;
}
.comment blockquote {
    margin: 24px 0;
    padding: 15px 20px;
    background: #eeeeee;
    border-left: 3px solid #555555;
    color: #555555;
    font-size: 0.85rem;
}

.oneloginfo {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px dashed #f0f0f0;
    font-size: 0.75rem;
    color: #b2b2b2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.oneloginfo a {
    color: #999999;
}
.oneloginfo a:hover {
    color: #222222;
}
.editlink a {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 2px 8px;
    border-radius: 4px;
}

.pagenavi {
    margin: 40px 0;
    padding: 15px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    font-size: 0.85rem;
}
.pagenums a {
    padding: 4px 8px;
    margin: 0 2px;
}
.pagenums a.pagenumhere {
    background: #222222;
    color: #ffffff;
    border-radius: 3px;
    font-weight: bold;
}

/* ==========================================================================
   4. 下部ダッシュボード領域
   ========================================================================== */
.dashboard-area {
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}
.dashboard-area .section-title {
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.15em;
    color: #999999;
    margin: 0 0 25px 0;
    text-align: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media all and (min-width: 600px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dashboard-grid .cornertitle {
    font-size: 0.75rem;
    font-weight: bold;
    color: #333333;
    margin: 0 0 10px 0;
    letter-spacing: 0.05em;
}

/* 検索窓 */
.queryinput {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e8e8e8;
    background: #ffffff;
    padding: 6px 10px;
    font-size: 0.85rem;
    border-radius: 4px;
    color: #444;
}
.searchbox .submitbutton {
    width: 100%;
    margin-top: 5px;
    background: #222222;
    color: #ffffff;
    border: none;
    padding: 6px;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* 新着画像リスト */
.imagelistbox {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 0;
}
.imagelistitem {
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid #eaeaea;
    border-radius: 3px;
    background: #ffffff;
}
.imagelistbox .oneimage {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 白背景ボックス共通 */
.datelimitlist, .freespacebody {
    background: #ffffff !important;
    border: 1px solid #eaeaea !important;
    border-radius: 4px !important;
    padding: 12px !important;
    font-size: 0.85rem;
}
.datelimitlist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.datelimitlist li {
    margin-bottom: 6px;
}
.datelimitlist .num {
    color: #b2b2b2;
    font-size: 0.75rem;
    margin-left: 5px;
}

/* ==========================================================================
   5. クイックポスト（投稿フォーム）
   ========================================================================== */
.postform {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 30px;
}
textarea.tegalogpost {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 10px;
    font-size: 0.9rem;
    color: #444;
    width: 100%;
    box-sizing: border-box;
}
.postbutton {
    background: #222222;
    color: #ffffff;
    border: none;
    padding: 6px 20px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
}
.decoBtns input {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #444;
    border-radius: 3px;
}

/* ==========================================================================
   6. フッター領域
   ========================================================================== */
.site-footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.8rem;
    color: #b2b2b2;
}
.site-footer .control-links a {
    margin: 0 8px;
    color: #888888;
}
.site-footer .poweredby {
    margin-top: 15px;
    font-size: 0.7rem;
    opacity: 0.5;
}
/* ==========================================================================
   2. ヘッダー・上部ナビゲーション領域
   ========================================================================== */
.top-navigation {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 35px;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 10px;

    /* ▼ スクロールバーを非表示にする設定を追加 */
    overflow-x: auto;            /* 横方向にはみ出た場合はスクロール可能にする */
    white-space: nowrap;         /* 途中で意図しない改行が起きるのを防ぐ */
    scrollbar-width: none;       /* Firefox用のスクロールバー非表示設定 */
    -ms-overflow-style: none;    /* IE/Edge用のスクロールバー非表示設定 */
}

/* Chrome、Safari用のスクロールバー非表示設定 */
.top-navigation::-webkit-scrollbar {
    display: none;
}
/* 日付のアーカイブ見出しと、その横のリンク（時系列・ファイル出力）を非表示にする */
.dateinfo, 
.dateinfomenu {
    display: none !important;
}
/* 投稿内の画像が枠線からはみ出さないように自動調整 */
.comment img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin-top: 10px;
    border-radius: 4px; /* ついでに画像の角も少し丸めて優しく */
}