/* =========================================
   Welcome page: 「管理人について」
   2026.01.15
   NOTE: This CSS assumes .tw-admin-about-section group wrapper exists

   Tea World / Welcome page
   ----------------------------------------
   1. Legacy styles
   2. tw-admin-about-section based styles
   3. page-id-6596 stabilizer
   4. profile block overrides
======================================== */
/* ========================================
   1. page-id-6596 stabilizer
   welcomeページ全体の左切れ・横ずれ対策
======================================== */

body.page-id-6596 {
  overflow-x: hidden;
}

body.page-id-6596 .site,
body.page-id-6596 .site-content,
body.page-id-6596 .content-area,
body.page-id-6596 .site-main,
body.page-id-6596 main,
body.page-id-6596 article,
body.page-id-6596 .entry-content {
  width: auto;
  max-width: 100%;
  margin-left: 0;
  transform: none;
}


/* ========================================
   2. profile block
   管理人紹介 2カラム安定化
   HTML前提:
   .tw-admin-about-section
     └ .welcome-profile-block
         ├ .welcome-profile-block__text
         └ .welcome-profile-block__image
             └ .welcome-profile-block__figure
                 └ img
======================================== */

.post-6596 .welcome-profile-block {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
  margin: 2.5rem 0;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.post-6596 .welcome-profile-block__text,
.post-6596 .welcome-profile-block__image {
  min-width: 0;
}


/* ----------------------------------------
   2-1. text area
   文章側の文字サイズ・行間・色
---------------------------------------- */

.post-6596 .welcome-profile-block__text {
  font-size: 1rem;
  line-height: 1.9;
  color: #222;
  font-weight: 400;
}

.post-6596 .welcome-profile-block__text p {
  margin: 0 0 1.2rem;
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 400;
  color: #222;
}

.post-6596 .welcome-profile-block__text h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.post-6596 .welcome-profile-block__text h3 {
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 1.5rem 0 0.75rem;
  color: #5a3e2b;
  font-weight: 700;
}


/* ----------------------------------------
   2-2. image area
   右カラム全体の位置調整
---------------------------------------- */

.post-6596 .welcome-profile-block__image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-left: 1rem;
}

.post-6596 .welcome-profile-block__figure {
  margin: 0;
  width: 100%;
  text-align: center;
}


/* ----------------------------------------
   2-3. icon image size
   森のくまアイコン画像の大きさに効く本体
   ここだけ見ればサイズ調整できます
---------------------------------------- */

.post-6596 .welcome-profile-block__figure img {
  display: block;
  width: 100%;
  max-width: 180px !important; /* ← 実際の最大表示サイズ
 ※ 上位の img max-width と競合するため !important を使用*/
  height: auto;
  margin: 0 auto;
}


/* ========================================
   2-4. responsive
   スマホ時の1カラム化
   ※ 画像サイズは通常時の max-width:180px をそのまま使う
======================================== */

@media (max-width: 768px) {
  .post-6596 .welcome-profile-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .post-6596 .welcome-profile-block__image {
    justify-content: flex-start;
    padding-left: 0;
  }

  .post-6596 .welcome-profile-block__figure {
    text-align: left;
  }

  .post-6596 .welcome-profile-block__figure img {
    margin: 0;
  }
}

/* =========================================
   資料室カード
========================================= */
body.page .wp-block-post-template {
  gap: 1.2rem;
}

body.page .library-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 14px 16px;
}

body.page .library-card .wp-block-post-title {
  margin: 0 0 0.35rem;
}

body.page .library-card .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
}

body.page .library-card .wp-block-post-excerpt {
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0.25rem 0 0.4rem;
}

body.page .library-card .wp-block-post-date,
body.page .library-card .wp-block-post-terms {
  font-size: 0.88rem;
  opacity: 0.85;
}

body.page .library-card .wp-block-post-date {
  opacity: 0.8;
}

body.page .library-card a.wp-block-read-more {
  display: inline-block;
  margin-top: 0.2rem;
}