@charset "utf-8";

/* ===========================================================
    Dictionary Layout (2-column with Sidebar)
   =========================================================== */

/* 全体コンテナ */
.dictionary-container {
    display: flex;
    gap: 40px;
    padding-top: 50px;
    padding-bottom: 80px;
    align-items: flex-start;
}

/* メインコンテンツ */
.dictionary-main {
    flex: 1;
    min-width: 0;
}

/* サイドバー全体の幅と調整 */
.dictionary-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* ===========================================================
    Common Design (Title & Links)
   =========================================================== */

/* 大見出し：用語集 */
.dc-ttl {
    text-align: center;
    font-size: 26px !important;
    font-weight: bold !important;
    color: #7e6b2e !important;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 0.05em;
}

/* 用語集見出しの上の英語（DICTIONARY） */
#contents_wrap .dc-ttl::before {
    content: "DICTIONARY" !important;
    color: #333 !important;
    display: block !important;
    font-size: 16px !important;
    font-weight: bold !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 5px !important;
}

.dc-ttl::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #7e6b2e;
}

/* オートリンク（記事本文中のリンク） */
.p-dictionary-autolink {
    color: #7e6b2e !important;
    text-decoration: underline;
    font-weight: bold;
    transition: opacity 0.2s;
}

.p-dictionary-autolink:hover {
    opacity: 0.7;
    text-decoration: none;
}

/* ===========================================================
    Dictionary Archive (A-I-U-E-O Index List)
   =========================================================== */

/* リスト全体の枠組み */
.dic-list-wrap {
    border-top: 1px solid #e0e0e0;
    background: #fff;
}

/* 五十音の各行 */
.dic-row {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

/* 左側：見出し（あ行など） */
.dic-row-head {
    width: 90px;
    background-color: #f9f7f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7e6b2e;
    font-weight: bold;
    font-size: 16px;
    border-right: 1px solid #e0e0e0;
    flex-shrink: 0;
}

/* 右側：単語リストエリア */
.dic-row-body {
    padding: 20px 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}

/* 個別の単語リンク */
.dic-item {
    color: #333 !important;
    text-decoration: none !important;
    font-size: 15px;
    line-height: 1.4;
    transition: color 0.2s;
}

.dic-item:hover {
    color: #7e6b2e !important;
    text-decoration: underline !important;
}

/* ===========================================================
    Dictionary Single (Detailed Page)
   =========================================================== */

/* 詳細ページの「よみ」 */
.p-dictionary-single__reading {
    font-size: 14px;
    color: #7e6b2e;
    margin-bottom: 8px;
    display: block;
    font-weight: bold;
}

/* 詳細ページの単語タイトル */
.p-dictionary-single__title {
    font-size: 28px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin-bottom: 35px;
    padding-bottom: 15px;
    border-bottom: 2px solid #7e6b2e;
    text-align: left;
}

/* 本文エリア */
.p-dictionary-single__content {
    line-height: 1.9;
    font-size: 16px;
    color: #444;
    margin-bottom: 60px;
}

.p-dictionary-single__content p {
    margin-bottom: 1.5em;
}

/* 一覧へ戻るボタン */
.p-dictionary-single__footer {
    text-align: center;
    margin-top: 60px;
}

.p-dictionary-single__footer a.c-button {
    display: inline-block;
    text-decoration: none;
    padding: 14px 50px;
    background-color: #7e6b2e;
    color: #fff !important;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.p-dictionary-single__footer a.c-button:hover {
    background-color: #5c4e21;
}

/* ===========================================================
    Sidebar Design (Matched with blog page)
   =========================================================== */

/* ウィジェットの見出し装飾（左側の横線） */
#contents_wrap .dictionary-sidebar .widget_tit {
    margin: 0 0 5px;
    padding: 0 0 0 30px;
    position: relative;
    font-size: 22px;
    font-weight: bold;
    color: #7e6b2e;
}

#contents_wrap .dictionary-sidebar .widget_tit::before {
    content: '';
    width: 20px;
    height: 1px;
    position: absolute;
    top: 50%;
    left: 0;
    background: #7e6b2e;
}

/* 各ウィジェットの囲み */
#contents_wrap .dictionary-sidebar .widget_box + .widget_box {
    margin: 50px 0 0;
}

/* ウィジェット内のリスト形式 */
#contents_wrap .dictionary-sidebar .widget_box ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

#contents_wrap .dictionary-sidebar .widget_box li {
    padding: 10px 20px;
    border-bottom: 1px dashed #999;
}

#contents_wrap .dictionary-sidebar .widget_box li a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

#contents_wrap .dictionary-sidebar .widget_box li a:hover {
    color: #7e6b2e;
}

/* ===========================================================
    Responsive Adjustments
   =========================================================== */

@media screen and (max-width: 1024px) {
    .dictionary-container {
        flex-direction: column;
        padding: 30px 20px;
    }
    
    .dictionary-sidebar {
        width: 100% !important;
        margin-top: 60px;
    }

    /* サイドバー見出し調整 */
    #contents_wrap .dictionary-sidebar .widget_tit {
        padding-left: 20px;
        font-size: 18px;
    }

    #contents_wrap .dictionary-sidebar .widget_tit::before {
        width: 15px;
    }

    /* 辞書リストを縦並びにする */
    .dic-row {
        flex-direction: column;
    }

    .dic-row-head {
        width: 100%;
        padding: 10px 20px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        justify-content: flex-start;
        font-size: 14px;
    }

    .dic-row-body {
        padding: 15px 20px;
        gap: 10px 20px;
    }

    .dic-item {
        font-size: 14px;
    }
}
/* ===========================================================
    辞書詳細ページ：逆引き（関連記事）カードデザイン
   =========================================================== */

/* カードのリスト構造 */
#contents_wrap .p-related__list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin-top: 16px !important;
  padding: 0 !important;
  list-style: none !important;
}

/* カード本体 */
#contents_wrap .p-related__link {
  display: block !important;
  background: #fff !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.08) !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}

#contents_wrap .p-related__link:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 22px 55px rgba(0,0,0,.12) !important;
}

/* サムネイル領域 */
#contents_wrap .p-related__thumb {
  position: relative !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  background: #f3f3f3 !important;
}

#contents_wrap .p-related__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* カテゴリラベル（左上） */
#contents_wrap .p-related__cat {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  background: #fff !important;
  border-radius: 999px !important;
  padding: 8px 12px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.12) !important;
  z-index: 2 !important;
}

/* 日付バッジ（左下） */
#contents_wrap .p-related__date {
  position: absolute !important;
  left: 14px !important;
  bottom: 14px !important;
  width: 64px !important;
  border-radius: 14px !important;
  background: #7e6b2e !important; /* 指定の金茶色に変更 */
  color: #fff !important;
  text-align: center !important;
  padding: 10px 0 !important;
  line-height: 1 !important;
  z-index: 2 !important;
}

#contents_wrap .p-related__date .m { font-size: 16px !important; font-weight: 800 !important; display:block !important; }
#contents_wrap .p-related__date .d { font-size: 26px !important; font-weight: 900 !important; display:block !important; margin: 4px 0 !important; }
#contents_wrap .p-related__date .y { font-size: 14px !important; font-weight: 800 !important; display:block !important; opacity: .95 !important; }

/* カード下部のテキスト本文 */
#contents_wrap .p-related__body {
  padding: 18px 18px 20px !important;
}

#contents_wrap .p-related__title {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #222 !important;
  line-height: 1.5 !important;
}

#contents_wrap .p-related__tag {
  margin: 14px 0 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #222 !important;
  opacity: .9 !important;
}

/* モバイル対応：1カラム化 */
@media (max-width: 768px) {
  #contents_wrap .p-related__list {
    grid-template-columns: 1fr !important;
  }
  #contents_wrap .p-related__date {
    width: 58px !important;
  }
}