/*
 Theme Name:   kirinbooks Child
 Theme URI:    
 Description:  kirinbooks Child Theme
 Author:       symmri
 Author URI:   
 Template:     kirinbooks
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         
 Text Domain:  kirinbooks_theme-child
*/

/*
 Theme Name:   kirinbooks Child
 Theme URI:    http://example.com/twenty-fifteen-child/
 Description:  kirinbooks Child Theme
 Author:       ecrit
 Author URI:   
 Template:     kirinbooks 
 Version:      1.0.0
 License:      ecrit
 License URI:  https://e-ecrit.com
 Tags:         ecrit
 Text Domain:  kirinbooks-child
*/

/* ===========================
   木林文庫メンバーシップ 共通カラー設定
   =========================== */

:root {
  --color-main: #1b462a;     /* メインカラー（深緑） */
  --color-sub: #826d36;
  --color-limited: #47544c;
  --color-kinrin: #906e90;
  --color-text: #000000;     /* 基本文字色（黒） */
  --color-text-w: #ffffff;     /* 基本文字色（白） */
  --color-link: #888888;     /* リンク色（水色系） */
  --color-link-h: #999999;     /* リンク色（水色系） */
  --color-bg: #ffffff;       /* 背景色（白） */
  --color-subtle-bg: #f5f5f5;/* 補助背景色（薄グレー） */
  --color-border: #e0e0e0;   /* 境界線（薄グレー） */

  --color-leaf: #26653c; /* 木の葉プラン */
  --color-nuts: #826d36; /* 木の実プラン */
  --color-forest: #47544c; /* 森のプラン */
}

/* ====== 木林文庫：フォント設定（Adobe Fonts / kit: ixl3beh） ======
   使う書体
   - 日本語明朝：fot-tsukuaoldmin-pr6n（筑紫Aオールド明朝 PR6N） → 300
   - 欧文：garamond-premier-pro-display → 400 / 400 italic / 700 / 700 italic
   - 日本語ゴシック：ryo-gothic-plusn → 400 / 700
============================================================== */

:root {
  /* 日本語 明朝 */
  --jp-serif: "fot-tsukuaoldmin-pr6n", "Tsukushi A Old Mincho",
              "Hiragino Mincho ProN", "YuMincho", "Yu Mincho",
              "MS PMincho", serif;

  /* 欧文 Garamond */
  --latin-garamond: "garamond-premier-pro-display", "Adobe Garamond Pro",
                    "Garamond", "Times New Roman", serif;

  /* 日本語 ゴシック */
  --jp-gothic: "ryo-gothic-plusn", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  /* ウェイト定義 */
  --weight-light: 300;
  --weight-normal: 400;
  --weight-bold: 700;
}

/* ====== 基本設定 ====== */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--jp-serif);
  font-weight: var(--weight-light);
  font-feature-settings: "palt" 1, "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 3px;
  line-height: 1.4;
}

/* ====== 欧文（Garamond） ====== */
/* 欧文を Garamond に強制したい箇所（英語見出し等） */
:lang(en),
.latin {
  font-family: var(--latin-garamond), var(--jp-serif);
  font-weight: var(--weight-normal);
  font-variant-ligatures: common-ligatures;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}

/* Garamond のウェイト＆スタイル明示ユーティリティ */
.font-garamond { font-family: var(--latin-garamond), var(--jp-serif); font-weight: 400; }
.font-garamond-italic { font-family: var(--latin-garamond), var(--jp-serif); font-weight: 400; font-style: italic; }
.font-garamond-700 { font-family: var(--latin-garamond), var(--jp-serif); font-weight: 700; }
.font-garamond-700i { font-family: var(--latin-garamond), var(--jp-serif); font-weight: 700; font-style: italic; }

/* ====== ゴシック（Ryo Gothic PlusN） ====== */
/* UI・ボタン・FAQ・ナビ・サブテキストなどに使用 */
.font-gothic {
  font-family: var(--jp-gothic);
  font-weight: var(--weight-normal);
  letter-spacing: 0.05em;
}

.font-gothic-bold {
  font-family: var(--jp-gothic);
  font-weight: var(--weight-bold);
  letter-spacing: 0.05em;
}

/* UIラベルやFAQタイトルに自動適用する例 */
.ui, .label, .button, .faq__qtext, nav, .member-btn a {
  font-family: var(--jp-gothic);
  font-weight: var(--weight-normal);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-main);
  font-family: var(--jp-serif);
  font-weight: 300;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover, a:focus {
  color: var(--color-link-h);
}

.button, button, input[type="submit"] {
  background-color: var(--color-main);
  color: #fff;
  padding: 0.6em 1.2em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button:hover, button:hover, input[type="submit"]:hover {
  background-color: #14371f; /* メインカラーを少し濃く */
}

.card {
  background: var(--color-subtle-bg);
  border: 1px solid var(--color-border);
  padding: 1.2em;
  border-radius: 6px;
  margin-bottom: 1.5em;
}


html {
  scroll-behavior: smooth;
}

a {
  color: #888888;
  text-decoration: none;
}

p {
  line-height: 1.8rem;
}

a:visited {
  color: #888888;
}

a:active {
  color: #888888;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

dt {
  font-weight: 500;
  margin-bottom: 20px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  padding: 0;
}

h2 {
    font-size: 1.8rem;
    margin: 0 0 1rem;
    letter-spacing: .08em;
}

h2.post-list {
  text-align: center;
}

h1.entry-title,
h1.page-title,
h2.entry-title,
.article_txt h2,
h2.entry-subtitle,
h3.entry-subtitle {
  font-family: "fot-tsukuaoldmin-pr6n", sans-serif;
  font-weight: 300;
  font-style: normal;
  letter-spacing: 2px;
}

h2.entry-subtitle,
h3.entry-subtitle {
  font-style: italic;
}

h2.entry-subtitle {
  margin: 5px 0 15px;
}

h3.entry-subtitle {
  margin: 5px 0 10px;
}

.header {
  background: #fff;
  width: 100%;
  height: 68px;
  position: relative;
  z-index: 1000;
}


header .site-branding {
  display: flex;
  align-items: center;
  max-width: 100%;
  height: 68px;
}

.site-branding {
  width: 100%;
  height: 68px;
  position: absolute;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* site branding right */
/* 
  header .site-branding a.custom-logo-link {
      margin-right: auto;
  }
  */

header .site-branding .header_menu {
  display: flex;
  height: 32px;
}

/* ===== Header Auth Buttons (右寄せ配置) ===== */

.header-auth{
  position: absolute;
  top: 14px;          /* 見た目に合わせて微調整可 */
  right: 180px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  font-family: var(--jp-gothic);
}

/* ボタンの見た目（既存から流用/上書き） */
.header-auth .auth-btn{
  font-size: .95rem;
  padding: 8px 18px;
  border: 1px solid var(--color-main, #1d3b2a);
  border-radius: 10px;
  color: #fff;
  background: var(--color-main, #1d3b2a); /* マイページ/新規登録は緑塗り */
  text-decoration: none;
  transition: .2s;
}
.header-auth .auth-btn.logout{
  background: transparent;
  color: var(--color-main, #1d3b2a);
}
.header-auth .auth-btn:hover{
  filter: brightness(0.95);
}

/* モバイルは非表示（重なり回避） */
@media (max-width: 1024px){
  .header-auth{ display: none; }
}

/* menu */
/* Nav items */
.menu {
  list-style: none;
  position: absolute;
  width: 100%;
  height: auto;
  top: 0;
  margin-top: 100px;
  padding: 0 0 10px 0;
  clear: both;
  background: #fff;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
  transform: scale(1, 0);
  transform-origin: top;
}

@media screen and (max-width: 768px) {
  .menu {
    margin-top: 110px;
  }
}

/* Hamburger menu button */
.menu-btn:checked~.menu {
  transform: scale(1, 1);
  transform-origin: top;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

/* Hamburger menbu text */
.menu a {
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 2px;
  font-size: 16px;
  text-transform: capitalize;
  color: #222;
  opacity: 0;
  transition: 0.5s;
}

.menu li {
  border-top: 1px solid #999;
  padding: 15px 0;
  margin: 0 54px;
  opacity: 0;
  transition: 0.5s;
}

.menu-btn:checked~.menu a,
.menu-btn:checked~.menu li {
  opacity: 1;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.2s;
}

.menu-btn {
  display: none;
}

.menu-icon {
  display: inline-block;
  position: absolute;
  right: 0;
  cursor: pointer;
  padding: 24px 14px;
  -webkit-tap-highlight-color: #222;
}

.navicon {
  background: #222;
  display: block;
  height: 1px;
  width: 26px;
  position: relative;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.navicon:before,
.navicon:after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  background: #222;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.navicon:before {
  top: 9px;
}

.navicon:after {
  bottom: 9px;
}

/* Hamburger Menu Animation Start */
.menu-btn:checked~.menu-icon .navicon:before {
  transform: rotate(-45deg);
}

.menu-btn:checked~.menu-icon .navicon:after {
  transform: rotate(45deg);
}

.menu-btn:checked~.menu-icon:not(.steps) .navicon:before {
  top: 0;
}

.menu-btn:checked~.menu-icon:not(.steps) .navicon:after {
  bottom: 0;
}

.menu-btn:checked~.menu-icon .navicon {
  background: rgba(0, 0, 0, 0);
  transition: 0.2192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

/* Hamburger Menu Animation End */

/* Navbar Container */
.navtext-container {
  width: 100%;
  height: 52px;
  position: absolute;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Navbar Text */
.navtext {
  position: absolute;
  text-transform: uppercase;
  color: #ddd;
  letter-spacing: 4px;
  font-size: 20px;
}

.custom-logo-link img {
  width: 203px;
  height: 38px;
}

.site-title {
  display: none;
}

/* humber */
.header {
  display: flex;
  padding: 0 20px;
  background: #fff;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  margin: 5px 0 0;
}

.logo {
  font-size: 24px;
  padding: 8px 0 0;
}

.logo a {
  background: url(https://kirinbooks.jp/membership/common/images/logo_kirinbooks.svg);
  background-repeat: no-repeat;
  background-size: 428px 60px;
  width: 428px;
  height: 60px;
  display: block;
}

.concept {
  margin-left: 20px;
  font-size: .8rem;
}

.concept p {
  margin: -8px 0 0;
}

.nav {
  position: fixed;
  right: 7px;
}

.btn-contact {
  position: absolute;
  right: 80px;
  top: 18px;
}

.btn-contact a {
  margin-left: 5px;
}

/* checkbox */
.drawer_hidden {
  display: none;
}

/* icon space */
.drawer_open {
  display: flex;
  height: 60px;
  width: 60px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  z-index: 2000;
}

/* icon */
.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
  content: '';
  display: block;
  height: 1px;
  width: 44px;
  border-radius: 3px;
  background: var(--color-main);
  transition: 0.5s;
  position: absolute;
}

/* line top */
.drawer_open span:before {
  bottom: 8px;
}

/* line bottom */
.drawer_open span:after {
  top: 8px;
}

/* clicked, line middle opacity */
#drawer_input:checked~.drawer_open span {
  background: rgba(255, 255, 255, 0);
}

/* rotate x */
#drawer_input:checked~.drawer_open span::before {
  bottom: 0;
  transform: rotate(45deg);
  background: #222;
}

#drawer_input:checked~.drawer_open span::after {
  top: 0;
  transform: rotate(-45deg);
  background: #222;
}

/* menu design */
.nav_content {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0%;
  right: 100%;
  z-index: 99;
  background: var(--color-main);
  opacity: .9;
  transition: .5s;
  text-align: center;
  padding-top: 20px;
}

li.nav_item {
  padding: 10px 0;
}


/* menu black-color hidden */
.nav_list {
  list-style: none;
  padding: 5rem 0 0;
}

.nav_list a, .nav_list a:visited {
  color: var(--color-text-w);
}

/* clicked icon, menu */
#drawer_input:checked~.nav_content {
  right: 0;
}

/* insta icon */
.btn-contact img {
  height: 30px;
}

/* wrapper */
.wrapper {
  display: flex;
  width: 98%;
  width: 100%;
  margin: 30px auto;
  flex-direction: column;

}
.single .wrapper {
  display: block;
  width: 80%;
  margin: 30px auto;
}

.single .wrapper {
  display: block;
  width: 100%;
  margin: 30px auto;
}

main {
  flex: 3;
  padding: 0;
}

main.post-column, main.post-diary, main.post-limited {
  width: 96%;
  margin: 50px 2%;
}

main.post-default {
  width: 96%;
  margin: 50px 2%;
}

main.post-column .post-container {
  width: 90%;
  margin: 0 5%;
  background-color: var(--color-sub);
  border-radius: 30px;
  padding: 3% 5%;
}

main.post-diary .post-container {
  width: 90%;
  margin: 0 5%;
  background-color: var(--color-main);
  border-radius: 30px;
  padding: 3% 5%;
}

main.post-limited .post-container {
  width: 90%;
  margin: 0 5%;
  background-color: var(--color-limited);
  border-radius: 30px;
  padding: 3% 5%;
}

main.post-default .post-container {
  width: 90%;
  margin: 0 5%;
  background-color: #eeeeee;
  border-radius: 30px;
  padding: 3% 5%;
}

main.post-column .post.category-column {
  background-color: #fff;
  padding: 60px 120px;
}

main.post-diary .post.category-diary {
  background-color: #fff;
  padding: 60px 120px;
}

main.post-limited .post.category-limited {
  background-color: #fff;
  padding: 60px 120px;
}

main.post-default .post.category-gakudai-info {
  background-color: #fff;
  padding: 60px 120px;
}


main.post-column h1.entry-title, main.post-column h2.entry-subtitle {
  text-align: center;
}

main.post-default h1.entry-title, main.post-default h2.entry-subtitle {
  text-align: center;
}

main.post-diary h1.entry-title, main.post-diary h2.entry-subtitle {
  text-align: center;
}

main.post-limited h1.entry-title, main.post-limited h2.entry-subtitle {
  text-align: center;
}

main.post-kinrin h1.entry-title, main.post-kinrin h2.entry-subtitle {
  text-align: center;
}

.column-logo {
  background: url(../../../common/images/logo_column.svg);
  background-repeat: no-repeat;
  width: 200px;
  height: 200.3px;
  margin: 0 auto 30px;
}

.diary-logo {
  background: url(../../../common/images/logo_kirin_w.svg);
  background-repeat: no-repeat;
  width: 120px;
  height: 136.72px;
  margin: 0 auto 30px;
}

.limited-logo {
  background: url(../../../common/images/logo_limited.png);
  background-repeat: no-repeat;
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  background-size: 120px;
}

.kinrin-logo {
  background: url(../../../common/images/logo_kinrin.svg);
  background-repeat: no-repeat;
  width: 200px;
  height: 200.3px;
  margin: 0 auto 30px;
}

.single aside {
  padding: 0 7%;
}

.column-single-title, .diary-single-title, .limited-single-title, .kinrin-single-title {
  text-align: center;
  font-weight: 700;
}

.column-single-title p, .diary-single-title p, .limited-single-title p, .kinrin-single-title p {
  margin: 0;
  color: var(--color-text-w);
}

.column-single-title span, .diary-single-title span, .limited-single-title span, .kinrin-single-title span {
  display: inline-block;
  font-size: .8rem;
  margin-bottom: 20px;
  color: var(--color-text-w);
}

.column-single-title span a, .diary-single-title span a, .limited-single-title span a, .kinrin-single-title span a  {
  color: var(--color-text-w);
  margin: 0 0 20px;
}

@media screen and (min-width:1200px) {
  main.post-column, main.post-diary, main.post-limited, main.post-kinrin {
    width: 90%;
    margin: 80px 5%;
  }

  main.post-default, main.post-gaudai-info {
    width: 90%;
    margin: 80px 5%;
  }
  
  main.post-column .post-container {
    width: 90%;
    margin: 0 5%;
    background-color: var(--color-sub);
    border-radius: 30px;
    padding: 30px 5%;
  }

  main.post-diary .post-container {
    width: 90%;
    margin: 0 5%;
    background-color: var(--color-main);
    border-radius: 30px;
    padding: 30px 5%;
  }

   main.post-limited .post-container {
    width: 90%;
    margin: 0 5%;
    background-color: var(--color-limited);
    border-radius: 30px;
    padding: 30px 5%;
  }

     main.post-kinrin .post-container {
    width: 90%;
    margin: 0 5%;
    background-color: var(--color-kinrin);
    border-radius: 30px;
    padding: 30px 5%;
  }

  main.post-default .post-container {
    width: 90%;
    margin: 0 5%;
    background-color: #eeeeee;
    border-radius: 30px;
    padding: 30px 5%;
  }
  
  main.post-column .post.category-column, main.post-diary .post.category-diary, main.post-limited .post.category-limited, main.post-kinrin .post.category-kinrin {
    background-color: #fff;
    padding: 60px 180px;
  }

  main.post-default .post.category-diary {
    background-color: #fff;
    padding: 60px 180px;
  }
}

@media screen and (max-width:1201px) {
  main.post-column h2.entry-subtitle, main.post-diary h2.entry-subtitle, main.post-limited h2.entry-subtitle, main.post-kinrin h2.entry-subtitle {
    margin: 2px 0 10px;
    font-size: 1.2rem;
    text-align: center!important;
  }

  main.post-default h2.entry-subtitle, main.post-default h2.entry-subtitle {
    margin: 2px 0 10px;
    font-size: 1.2rem;
    text-align: center!important;
  }

  main.post-column h1, main.post-diary h1, main.post-limited h1, main.post-kinrin h1  {
    font-size: 1.8rem
  }

  main.post-default h1 {
    font-size: 1.8rem
  }

  main.post-column, main.post-diary, main.post-limited, main.post-kinrin {
    width: 92%;
    margin: 80px 4%;
  }

  main.post-default {
    width: 90%;
    margin: 80px 5%;
  }
  
  main.post-column .post-container {
    width: 100%;
    margin: 0;
    background-color: var(--color-sub);
    border-radius: 30px;
    padding: 30px 5%;
  }

  main.post-diary .post-container {
    width: 96%;
    margin: 0 2%;
    background-color: var(--color-main);
    border-radius: 30px;
    padding: 30px 5%;
  }

  main.post-limited .post-container {
    width: 96%;
    margin: 0 2%;
    background-color: var(--color-limited);
    border-radius: 30px;
    padding: 30px 5%;
  }

    main.post-kinrin .post-container {
    width: 96%;
    margin: 0 2%;
    background-color: var(--color-kinrin);
    border-radius: 30px;
    padding: 30px 5%;
  }

  main.post-default .post-container {
    width: 96%;
    margin: 0 2%;
    background-color: #eeeeee;
    border-radius: 30px;
    padding: 30px 5%;
  }
  
  main.post-column .post.category-column, main.post-diary .post.category-diary, main.post-limited .post.category-limited, main.post-kinrin .post.category-kinrin {
    background-color: #fff;
    padding: 20px;
  }

  main.post-default .post.category-gakudai-info {
    background-color: #fff;
    padding: 20px;
  }

  .column-logo {
    background: url(../../../../common/images/column-logo.svg);
    background-repeat: no-repeat;
    width: 152.66px;
    height: 124px;
    margin: 0 auto 20px;
  }

  .author-area {
    float: none;
  }
  .author-img {
    margin: 15px 15px 15px 15px;
    text-align: center!important;
  }
}

aside {
  flex: 1;
  padding: 0 0 0 0.5%;
}

/* index */
.home .site-main {}

.home .site-main ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.home .site-main ul.faq__list {
    justify-content: left;
}

.home .site-main ul li {
  width: calc(49% - 10px);
  margin: 0 5px 30px;
}

.home .top-image {
  position: relative; 
  width: 100%;
  margin: 0 auto 20px;
  background: url(https://kirinbooks.jp/community/images/top-image.jpg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  aspect-ratio: 3 / 2;
}

.home .top-image .subtitle {
  padding: 10% 5% 0 5%;
  color: var(--color-text-w);
  font-size: 3rem;
  letter-spacing: 7px;
}

.home .top-image .subtitle p {
  font-size: 1.5rem;
  padding: 0 0 0 0.5rem;
  letter-spacing: 5px;
}

.home .top-image-sp {
  display: none;
}

.home .top-image .member-btn {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.member-btn a {
  font-family: var(--jp-gothic);
  font-weight: var(--weight-bold);
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: 6px;
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 15px 35px 15px 35px;
  color: #333;
  line-height: 1.4;
  text-decoration: none;
  transition: 0.3s ease-in-out;
  font-weight: 700;
  font-size: 1.2rem;
}
.member-btn a:hover {
    background: #333;
    color: #FFF;
    background-color: var(--color-main);
    color: var(--color-text-w);
}
.member-btn a::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
  transform: rotate(45deg);
  transition: 0.3s ease-in-out;
  vertical-align: middle;
}
.member-btn a:hover:after {
    border-color: #FFF;
}

.arrow-article {
  width: 98%;
}

.arrow-article a {
  background-image: url(../../../../common/images/arrow-article.svg);
  background-repeat: no-repeat;
  width: 35px;
  height: 61.2px;
  background-size: 35px 61.2px;
  display: block;
  margin: 0 auto 20px;
}

@media screen and (max-width:767px) {
  .home .top-image {
    width: 100%;
    margin: 0 auto 20px;
    background: url(https://kirinbooks.jp/community/images/top-image.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    aspect-ratio: 3 / 2;
  }

  .home .top-image-sp {
    width: calc(98% - 10px);
    margin: 0 10px 50px;
    display: block;
  }

  .home .top-image .subtitle {
    width: 100%;
    padding: 10% 5% 0 5%;
    font-size: 1.8rem;
    letter-spacing: 6px;
  }

  .home .top-image .subtitle p {
    font-size: 1.1rem;
    padding: 0 0 0 0.5rem;
    letter-spacing: 5px;
    margin: 1rem 0;
  }

  .arrow-article {
    width: 100%;
  }

  .member-btn a {
    border-radius: 6px;
    margin: 0 auto;
    padding: 5px 15px 5px 15px;
    line-height: 1.4;
    font-weight: 700;
    font-size: .8rem;
}
}

@media screen and (max-width:1000px) { 
  .home .top-image .member-btn {
    bottom: 10%;
  }
}

/* category */

.category .site-main ul {
  display: flex;
  flex-wrap: wrap;
  width: 98%;
  margin: 0 auto;
}

.category .site-main ul li {
  width: 49%;
  margin: 0 5px 30px;
}

/* tag */

.archive .site-main ul {
  display: flex;
  flex-wrap: wrap;
}

.archive .site-main ul li {
  width: calc(49% - 10px);
  margin: 0 5px 30px;
}

.archive.date .site-main ul li {
  width: 100%;
}

.archive.date .kb-lock {
    position: relative;
    top: -0.2rem;
    vertical-align: middle;
}

.kb-locked-actions a {
  margin-right: 10px;
}

.archive.date a:visited {
  color: var(--color-text);
}

/* post */
.post,
.page {
  padding: 10px;
}

.page {
  padding: 0;
  margin-bottom: 0;
}

.nav-links .nav-previous a span.nav-subtitle {
  background: url(../../../common/images/arrow-left_w.svg);
  background-repeat: no-repeat;
  width: 42px;
  height: 8px;
  background-size: 42px 8px;
  display: inline-block;
}

.nav-links .nav-previous a span.nav-title {
  padding: 0 0 0 2px;
  color: var(--color-text-w);
}


.nav-links .nav-next a span.nav-subtitle {
  background: url(../../../common/images/arrow-right_w.svg);
  background-repeat: no-repeat;
  width: 42px;
  height: 8px;
  background-size: 42px 8px;
  display: inline-block;
}

.nav-links .nav-next a span.nav-title {
  padding: 0 2px 0 0;
  color: var(--color-text-w);
}

.article_txt h2 {
  margin: 0;
  padding: 7px 3px 0;
}

@media screen and (max-width: 796px) {
.nav-links .nav-previous a span.nav-subtitle {
    background: url(../../../common/images/arrow-left_w.svg);
    background-repeat: no-repeat;
    width: 31.5px;
    height: 6px;
    background-size: 31.5px 6px;
    display: inline-block;
}
.nav-links .nav-next a span.nav-subtitle {
    background: url(../../../common/images/arrow-right_w.svg);
    background-repeat: no-repeat;
    width: 31.5px;
    height: 6px;
    background-size: 31.5px 6px;
    display: inline-block;
}
.nav-links .nav-previous a span.nav-title {
    font-size: 14px;
}
.nav-links .nav-next a span.nav-title {
    font-size: 14px;
}
}

/* side */

aside {
  padding: 20px;
}

h2.wp-block-heading {
  font-weight: 300;
  margin: 0 0 10px;
}

input[type="search"] {
  color: #fff;
  border: 0;
  border-radius: 0;
  padding: 3px;
  border-bottom: 1px solid #222;
  outline: 0;
  background-color: #fff;
}

input[type="search"]:focus,
input[type="search"]:active,
input[type="search"]:hover {
  color: #666;
  border: 0;
  border-radius: 0;
  padding: 3px;
  border-bottom: 1px solid #222;
}

.wp-block-search__inside-wrapper button {
  border: 0;
  border-color: #ccc #ccc #bbb;
  border-radius: 0;
  background: #fff;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1;
  padding: 0.6em 1em 0.4em;
  border-bottom: 1px solid #222;
  background: url(https://gaku-dai.com/wp/wp-content/uploads/2023/09/btn-search-1.svg);
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 0;
}

.wp-block-image.size-large p {
  margin: 5px 0 0;
  font-size: .8rem;
}

.wp-block-latest-posts.wp-block-latest-posts__list li,
.wp-block-categories-list.wp-block-categories li {
  line-height: 2rem;
}

/* footer */

footer {
  padding: 20px 0;
}

.site-footer {
  background: var(--color-main);
  color: var(--color-text-w);
}

.site-footer .site-info {
  text-align: center;
  font-size: .8rem;
}

.site-footer .site-logo {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.site-footer .site-logo a {
  display: block;
  background: url(https://kirinbooks.jp/community/images/logo_kirinbooks_footer.svg);
  width: 200px;
  height: 71px;
  background-size: 200px 71px;
}

.site-copyright {
  text-align: center;
  font-size: .8rem;
  padding: 2px 0;
}

.site-footer .menus {
  font-size: 1.2rem;
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

.site-footer .menus .menu-item {
  padding: 0 20px;
  position: relative;
  font-size: .8rem;
  line-height: 1.8rem;
}

.site-footer .menus .menu-item:after {
  position: absolute;
  top: 0;
  right: -8px;
  content: "\FF5C";
}

.site-footer .menus .menu-item:last-child {}

.identity-area .identity {
  margin: 4rem 0 2rem;
  display: flex;
  justify-content: center;
}

.identity-area .identity .id-item {
  padding: 0 40px 10px;
  position: relative;
  font-size: .8rem;
  line-height: 1.8rem;
}

.identity-area .identity .id-item img {
  max-width: 110px;
  height: 50px;
  object-fit: contain;
}

.identity-area .identity .id-item img.montfantome_logo {
  height: 60px;
}

.identity-area .identity .id-item:after {
  position: absolute;
  top: 0;
  right: -8px;
  content: "";
}

.site-footer .menus .menu-item:last-child {}

.site-footer .menus .menu-item:last-child:after {
  content: "";
}

/* archive - category */

.site-main .page-header {
  padding: 0 20px;
}

.category-column .site-main .page-header {
  padding: 0 5px 0 5px;
  margin: 0 0 30px;
  width: 98%;
  margin: 0 auto;
}

.archive .site-main .page-header {
  padding: 0 5px 0 5px;
  margin: 0 0 30px;
  width: 98%;
}

/* archive - cate - kinrin */
.category-column .site-main .page-header h1 {
  font-size: 3em;
}

.navigation.post-navigation {
  padding: 0 20px;
}

.cat-links {
  margin-right: 10px;
  background-color: var(--color-text);
  color: var(--color-text-w);
}

.article_txt .article_data {
  padding: 0 0 0 2px;
}

.article_data .cat,
.cat-links a {
  background-color: rgba(34, 34, 34, 1);
  color: #fff;
  display: inline;
  font-size: 1.1em;
}

.archive.tag .page-title::before {
  content: "#";
}

.par-l {
  margin: 60px 0 0 0;
}

.post-credit {
  padding: 20px;
  border: 1px dotted #222222;
  margin-bottom: 2rem;
}

.shop-credit {
  width: 100%;
  padding: 40px;
  margin: 0;
  border: 1px dotted #888;
}

.shop-credit td {
  padding: 12px 10px;
}

.shop-credit td.ttl {
  width: 25%;
}

.cate-discription {
  line-height: 1.8rem;
  width: 96%;
  margin: 20px 2%;
}

.cate-discription .text-pc {
  display: block;
}

.cate-discription .text-sp {
  display: none;
}

/* search */

.page-content p {
  padding: 0 20px;
}

/* privacy */
#content .about .content.privacy,
#content .about .condition dd {
  font-size: .8rem;
  line-height: 2rem;
  padding-left: 20px;
}

#content .about .condition.privacy dt {
  line-height: 2em;
  font-weight: normal;
  padding-left: 20px;
}

#content .about .condition dt {
  line-height: 2em;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 1px solid #000;
}

/* contact */

.contact-area {
  width: 100%;
}

.contact-area td {
  border-bottom: 1px solid #222;
  border-top: 1px solid #222;
  padding: 6px 4px 6px;
  font-size: .8rem;
}

.mail {
  width: 100%;
  margin: 8px 0 4px;
}

.mail img {
  width: 40%;
  margin: 0 30%;
}

.post-thumbnail img {
  width: 100%;
  max-width: 100%;
}

.img-credit {
  font-size: .8rem;
  text-align: center;
}

.tags-links a {
  background-color: #fff;
}

.tags-links a::before {
  content: "#";
}

.tag-list li {
  display: inline-block;
  padding-right: 5px;
}

.tag-list li::after {
  content: ;
}

@media (min-width: 768px) {
  #content .about .condition {
    margin: 40px 0 0 40px;
    font-size: .8rem;
  }

  /* post */
  .aligncenter {
    padding: 1.5em 0;
    width: 60%;
  }

  .aligncenter.vertical-img {
    width: 40%;
  }
}

.img-flex-2w {
  display: flex;
  padding: 20px 0 40px;
  flex-wrap: wrap;
}

.img-flex-2w img {
  width: 49%;
  padding: 0 0.5% 2%;
  margin-bottom: 0;
}

.img-flex-2w .wp-caption {
  width: 50% !important;
}

.img-flex-2w #attachment_553 {
  width: 40% !important;
}

.img-flex-2w #attachment_554 {
  width: 60% !important;
}

@media screen and (max-width:599px) {
  .img-flex-2w .wp-caption {
    width: 100% !important;
  }
  .img-flex-2w .aligncenter {
    padding: 0;
  }
}

.img-flex-2w .wp-caption img {
  width: 100%;
  padding: 0 0.5% 2%;
  margin-bottom: 0;
}

/*
.wp-caption {
  width: 100%!important;
}
*/

.wp-caption {
  width: 85% !important;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
  font-size: .8rem;
}

@media screen and (max-width:768px) {

  .header {
    display: flex;
    padding: 0 20px;
    background: #fff;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    margin: 5px 0 0;
    flex-direction: column;
  }

  main {
    flex: 3;
    padding: 0;
  }

  .logo {
    font-size: 24px;
    padding: 18px 0 0;
  }

  .logo a {
    background: url(https://kirinbooks.jp/membership/common/images/logo_kirinbooks_sp.svg);
    background-repeat: no-repeat;
    background-size: 125.96px 40px;
    width: 125.96px;
    height: 40px;
    background-position: 0;
  }

  .concept {
    margin-left: 0;
    margin-top: 20px;
    font-size: .8rem;
  }

  .concept p {
    font-size: .7rem;
  }

  .btn-contact {
    position: absolute;
    right: 80px;
    top: 16px;
  }

  .wrapper {
    flex-direction: column;
    margin: 10px auto 30px;
  }

  .home .site-main ul {
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }

  .home .site-main ul li {
    width: 100%;
    margin: 0 10px 10px;
  }

  .category .site-main ul li {
    width: 100%;
    margin: 0 10px 30px;
  }

  .category-column .site-main .page-header {
    padding: 0 5px 0 5px;
    margin: 0 0 30px;
    width: 100%;
  }

  .archive .site-main ul li {
    width: 100%;
    margin: 0 10px 30px;
  }

  .article_txt h2 {
    margin: 5px 0;
  }

  h2.entry-subtitle {
    margin: 2px 0 10px;
  }

  .identity-area .identity {
    margin: 4rem auto 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
  }

  .wp-block-image.size-large p {
    text-align: right;
  }

  input[type="search"] {
    -webkit-border-radius: 0;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }

  .cate-discription {
    line-height: 1.8rem;
    width: 86%;
    margin: 20px 7%;
  }

  .cate-discription .text-pc {
    display: none;
  }

  .cate-discription .text-sp {
    display: block;
  }

  /* post */
  .aligncenter {
    padding: 1.5em 0;
  }

  .aligncenter.vertical-img {
    width: 65%;
    padding: 1.5em 0;
  }

  .shop-credit {
    padding: 12px;
    overflow-wrap: anywhere;
  }

  .wp-caption {
    width: 92% !important;
  }

}


/* 著作者カード */

.author-card {
  border: 1px solid #888;
  margin-top: 2rem;
  display: inline-block;
}

.author-name {
  background-color: #e2ff6e;
  color: #222;
  padding: 8px;
}

.author-area {
  float: left;
}

@media screen and (max-width: 768px) {
  .author-area {
      float: none;
  }
}

.author-img {
  margin: 15px 15px 15px 15px;
}

.author-info {
  font-size: 14px;
  line-height: 26px;
  padding: 15px;
  overflow: hidden;
}

.author-info a {
  color: #3366ff;
}

.author-info a:hover {
  color: #3366ff;
}

/* SNSアイコンの間隔 */
.author-sns {
  padding: 5px 0 22px 10px;
}

/* SNSアイコンの装飾 */
.btn-sns {
  font-family: "Font Awesome 6 Brands";
  border-radius: 50%;
  display: inline-block;
  width: 40px;
  height: 40px;
  font-size: 25px;
  transition: .5s;
  text-decoration: none !important;
  color: #222;
}

/* アイコンホバー時のカラー */
.btn-sns:hover {
  color: #888 !important;
}

/* アイコンの位置 */
.btn-follow {
  display: flex;
  flex-flow: row wrap;
}

/* 各アイコン同士の余白 */
.btn-follow li {
  flex: 0 0 20%;
  text-align: center !important;
}

/* ボタンレイアウト調整 */
ul.btn-follow {
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0
}

/* .著作者カード */


/* post list */

.wp-block-latest-posts.wp-block-latest-posts__list li,
.wp-block-categories-list.wp-block-categories li {
  line-height: 1.6rem;
  margin-bottom: 0.6rem;
}

.wp-block-latest-posts.wp-block-latest-posts__list li {
  position: relative;
  padding-left: 22px;
}

.wp-block-latest-posts.wp-block-latest-posts__list li::before {
  content: '\f138';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  top: 0;
  left: 0;
  color:var(--color-main);
  padding-right: 0;
  position: absolute;
}

.wp-block-categories-list.wp-block-categories li a {
  background-color: #222;
  color: #fff;
}

/* pagenation */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

a.page-numbers,
span.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #15bcaa;
  background-color: #fff;
  border: 1px solid #15bcaa;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 8px;
  transition: color 0.3s ease, background 0.3s ease;
}

.prev.page-numbers,
.next.page-numbers,
.page-numbers.dots {
  border: none;
  margin: 0;
}

.prev.page-numbers .nav-prev {
  background: url(https://gaku-dai.com/wp/wp-content/uploads/2023/09/arrow-left.svg);
  background-repeat: no-repeat;
  width: 42px;
  height: 8px;
  background-size: 42px 8px;
}

.next.page-numbers .nav-next {
  background: url(https://gaku-dai.com/wp/wp-content/uploads/2023/09/arrow-right.svg);
  background-repeat: no-repeat;
  width: 42px;
  height: 8px;
  background-size: 42px 8px;
}

.next.page-numbers {
  margin-right: 10px;
}

.prev.page-numbers {
  margin-left: 10px;
}

a.page-numbers:hover {
  background-color: #15bcaa;
  border: 1px solid #15bcaa;
  color: #fff;
}

a.prev.page-numbers:hover,
a.next.page-numbers:hover {
  background-color: #fff;
  color: #15bcaa;
  border: none;
}

.page-numbers.current {
  color: #fff;
  background-color: #15bcaa;
  border: 1px solid #15bcaa;
}

@media screen and (max-width: 768px) {
  .pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 40px;
  }

  .wp-embedded-content {
    height: revert-layer !important;
  }

  .wp-embed-featured-image.square {
    float: none !important;
    max-width: 100% !important;
    margin-right: 0;
  }
}


/* h2 h3.. */
.entry-content h2 {
  font-size: 2rem;
  padding: 0.5em 0;
  margin: 0 0 0.8em;
  text-align: center;
}

/* （H1）を非表示にする */
.page-id-19 .entry-header, .page-id-36 .entry-header {
  display: none;
}

.post-column .entry-content h2 {
  font-size: 1.6rem;
  border-top: none;
  border-bottom: none;
  padding: 0.5em 0 0;
  margin: 2em 0 0em;
  text-align: center;
}

.entry-content h3 {
  font-size: 2rem;
  font-weight: 500;
  margin: 0;
}

.entry-content iframe {
  width: 100%;
}

/* 引用 */

blockquote {
  padding: 1.3rem 2rem;
  font-size: 1.5rem;
  border-left: 0;
  background-color: #eee;
  margin: 0 0 4rem;
}

blockquote p,
blockquote footer {
  font-size: .8rem !important;
  line-height: 1.6rem;
  font-weight: 400;
  margin-bottom: 20px !important;
}

/* list */

.post .entry-content ul {
  border: 1px dotted #15bcaa;
  padding: 10px;
  margin: 0 0 20px;
}

.post .entry-content li {
  line-height: 2rem;
}


/* 目次 */
#toc_container {
  width: 100%;
  background: #eee;
  border: none;
  padding: 0;
}

#toc_container p.toc_title {
  background-color: #D4E46E;
  padding: 0.5rem;
}

#toc_container p.toc_title+ul.toc_list {
  margin: 0;
  padding: 1.5rem 1.5rem 1rem;
}

#toc_container.no_bullets ul li {
  margin-bottom: 1rem;
}

#toc_container.no_bullets ul li li {
  margin-bottom: 0.5rem;
}

.toc_list li a {
  font-size: 1.2rem;
  color: #222;
  font-weight: bold;
}

.toc_list li ul li a {
  font-size: 1rem;
  font-weight: 500;
  padding: 0 0 0 18px;
  background-image: url(https://cuba-study.com/wp/assets/images/arrow-icon.svg);
  background-repeat: no-repeat;
  background-position: 0 3px;
  background-size: 10px;
}

.post-column #toc_container {
  display: none;
}

@media screen and (max-width:599px) {
  #toc_container {
    width: 100%!important;
  }
  #toc_container p.toc_title+ul.toc_list {
    margin: 0;
    padding: 1.5rem 0.7rem 1rem;
  }
}

@media screen and (min-width:600px) {
  #toc_container {
    width: 100%!important;
  }
}


.post .entry-content .no_bullets ul {
  border: none;

}

.entry-content .no_bullets ul {
  border: none;
}

.entry-content .no_bullets ul li {
  border-bottom: none;
}

/* table */

table {
  font-size: .8rem;
  border-collapse:  collapse;
  margin: 20px 0;
}

table td, table th {
  border: 1px solid var(--color-link);
  padding: 5px;
}

.table-color {
  background-color: #ccc;;
}

/* banner */

.side-banner {
  display: flex;
  justify-content: space-between;
}

.home .side-banner {
  display: block;
}

figure {
  width: 49%;
}

figure.plan-card__image {
  width: 100%;
}

.home figure {
  width: 100%;
}

@media screen and (max-width:768px) {
  .side-banner {
    flex-direction: column;
  }

  figure {
    width: 100%;
  }
}

/* 1) wrapper を画像幅にフィットさせる */
.post-thumbnail-wrapper {
  position: relative;
  display: inline-block;   /* ブロック→インラインブロックに */
  vertical-align: top;     /* 下にずれるのを防ぐ */
}

/* 2) 画像自体もブロック化 */
.post-thumbnail-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

/* 3) 右下に赤三角バッジ */
.limited-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;    /* お好みで調整 */
  height: 60px;
  background: #e30b17;
  clip-path: polygon(100% 100%, 100% 0, 0 100%);
  pointer-events: none;
  z-index: 5;
}

/* 4) テキストは水平に右寄せ */
.limited-badge span {
  position: absolute;
  bottom: 6px;
  right: 6px;
  transform: none;
  color: #fff;
  font-size: 0.65em;
  line-height: 1.2em;
  white-space: nowrap;
}


/* ===== Member Benefits ===== */

/* ===== メンバー特典エリア ===== */
.perks {
  width: min(1200px, 96%);
  margin: 40px auto 100px;
}

.perks__title {
  font-size: 1.8rem;
  margin: 0 0 1rem;
  text-align: center;
  letter-spacing: .08em;
  color: var(--color-main);
}

.perks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .perks-grid {
    grid-template-columns: 1fr 1fr; /* PCは2列 */
    gap: 24px;
  }
}

.perk-card {
  position: relative;
  background: var(--color-subtle-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 10px;
}

.perk-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.badge {
  font-family: var(--jp-gothic);
  font-weight: var(--weight-bold);
  display: inline-block;
  font-size: .75rem;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 999px;
  background: #eee;
  color: #222;
  border: 1px solid rgba(255, 255, 255, .6);
}

/* プラン色（必要なら調整） */
.badge--eda {            /* 枝プラン */
  background: var(--color-main);
  color: var(--color-text-w);
}
.badge--mi {             /* 実プラン */
  background: var(--color-sub);
  color: var(--color-text-w);
}

.perk-card__media {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: #fff;
  overflow: hidden;
}
.perk-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.perk-card__title {
  font-size: 1.1rem;
  margin: 12px 14px 4px;
  color: var(--color-main);
  line-height: 1.5;
}

.perk-card__desc {
  font-size: .8rem;
  margin: 0 14px 12px;
  font-family: var(--jp-gothic);
  border-top: 1px dotted var(--color-link);
  padding: 5px 0 0;
  margin-top: 10px;
  color: var(--color-link);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}

.perk-card__more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  margin: 0 14px 6px;
  padding: 6px 2px;
  color: var(--color-link);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
  font-family: var(--jp-gothic);

  border: 1px solid #888;
  padding: 5px 15px 5px 15px;
  background-color: var(--color-text-w);
  border-radius: 6px;
}
.perk-card__more::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.perk-card__more:hover {
  color: var(--color-link-h);
  border-bottom-color: var(--color-link-h);
}

/* ===== カードのホバーアニメーション ===== */
.perk-card {
  position: relative;
  background: var(--color-subtle-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.perk-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}


/* ===== プラン案内セクション ===== */
.plans {
  width: min(1200px, 96%);
  margin: 60px auto;
  text-align: center;
}

.plans__title {
  font-size: 1.8rem;
  color: var(--color-main);
  margin-bottom: 2rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .plans-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.plan-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 2px solid #ccc;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.plan-card__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.plan-card__content {
  padding: 20px 24px 30px;
  text-align: left;
}

.plan-card__name {
  font-size: 1.4rem;
  color: var(--color-main);
  margin-bottom: .4em;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.plan-card__price {
  font-size: 1rem;
  color: #666;
  font-weight: normal;
}

.plan-card__desc {
  font-size: .95rem;
  color: #333;
  margin-bottom: 1.5em;
  line-height: 1.7;
  font-family: var(--jp-gothic);
}

.plan-card__features {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
}

.plan-card__features li {
  position: relative;
  padding-left: 28px; /* チェックアイコンの余白を少し広めに */
  list-style: none;
  width: 45%;
  margin-bottom: 15px;
  font-family: var(--jp-gothic);
}

.plan-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em; /* テキストの中央寄せ調整 */
  width: 16px;
  height: 16px;
  background-image: url("https://kirinbooks.jp/community/images/check-box.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}


.plan-card__btn {
  font-family: var(--jp-gothic);
  font-weight: var(--weight-bold);
  display: inline-block;
  text-align: center;
  background: var(--color-leaf);
  color:var(--color-text-w)!important;
  border-radius: 5px;
  padding: 10px 24px;
  text-decoration: none;
  font-weight: 600;
  transition: background .3s ease;
  width: 100%;
}
.plan-card__btn:hover {
  background: var(--color-leaf);
}

.plan-card__btn--premium {
  background: var(--color-nuts);
}
.plan-card__btn--premium:hover {
  background: var(--color-nuts);
}

/* 1) PCのみ 等高 → ボタン下揃え */
@media (min-width: 900px) {
  /* グリッドの各カードを等高に */
  .plans-grid {
    align-items: stretch;
  }
  /* カード自体は既に flex-column なので高さを100%に */
  .plan-card {
    height: 100%;
  }
  .plan-card__btn {
    margin-top: auto;   /* 下揃え */
  }
}

/* 2) モバイルは自然に縦積み（必要なら軽く間を空ける） */
@media (max-width: 899px) {
  .plan-card__btn {
    margin-top: 16px;   /* 自然な余白（好みで調整） */
  }
}

/* 画像の見出し部分を等比で固定（必要な比率に調整可） */
.plan-card__image {
  aspect-ratio: 16 / 6;     /* 例：横長。合わなければ 16/9 や 3/1 などに変更 */
  overflow: hidden;
}
.plan-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* トリミングOKなら cover に */
  display: block;
}

/* 本文エリアを縦flexにして、ボタンを最下部に押し下げる */
.plan-card__content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;             /* まれなはみ出し防止 */
}

/* 特典リストの下マージンはflexに任せる（任意） */
.plan-card__features { 
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* ボタンを最下部に張り付ける肝 */
.plan-card__btn { margin-top: auto; }

/* PCはカード等高にしてレイアウトを揃える */
@media (min-width: 900px) {
  .plans-grid { align-items: stretch; }
  .plan-card   { height: 100%; }  /* grid 子要素の等高化 */
}

/* アクション行を最下部に固定＆ボタンと「詳細」の縦間隔 */
.plan-card__action {
  margin-top: auto;              /* ここが肝：カード下部に押し下げる */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ボタンの高さを統一＆中央揃え（テキスト量で崩さない） */
.plan-card__btn,
.plan-card__btn--premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;              /* 高さを揃える数値（好みで 44〜52px などに） */
  line-height: 1;
}

/* 「プラン詳細を見る」が有無で高さ差が出ないよう最低高を確保 */
.plan-card__more {
  min-height: 1.25rem;           /* 1行ぶん確保。リンクが無くても高さキープ */
  text-align: center;
}



/* ===== FAQ ===== */
.faq {
  margin: 60px auto;
  padding: 0 16px;
  /* max-width: 920px; ← 削除 */
}

.faq__title {
  font-size: 1.8rem;
  margin: 0 0 1.2rem;
  text-align: left;
  color: var(--color-main);
  text-align: center;
}

.faq__category {
  margin: 2.2rem 0 0.6rem;
  font-size: 1.2rem;
  color: #333;
  border-left: 4px solid var(--color-main);
  padding-left: 8px;
}

.faq__list {
  margin: 0;
  padding: 0;
  width: 100%; /* ← 100%幅に拡張 */
}

.faq__item {
  list-style: none;
  border-bottom: 1px solid var(--color-border, #e0e0e0);
  width: 100%; /* ← 明示的に追加 */
}

.faq__q {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 14px 8px;
  background: #fff;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
}

.faq__q:hover { background: #fafafa; }

.faq__icon {
  width: 20px;
  height: 20px;
  position: relative;
  display: inline-block;
}

/* ＋ の描画 */
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: #333;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.faq__icon::before {
  width: 14px; height: 2px;   /* 横線 */
}

.faq__icon::after {
  width: 2px; height: 14px;   /* 縦線 */
}

/* 開いたら − に */
.faq__q[aria-expanded="true"] .faq__icon::after {
  display: none;
}

/* 質問テキスト */
.faq__qtext {
  font-weight: 600;
  color: var(--color-text); /* ← 修正：統一テーマカラーに追従 */
}

/* 回答部 */
.faq__a {
  display: none;
  padding: 0 8px 14px 38px;
  font-size: 0.95rem;
  color: var(--color-text);
  background: #fff;
}

.faq__a[aria-hidden="false"] {
  display: block;
}

.faq__a p {
  font-family: var(--jp-gothic);
}

@media (hover: hover) {
  .faq__q:focus-visible {
    outline: 2px solid var(--color-link, #0c9cbb);
    outline-offset: 2px;
  }
}

.entry-meta--diarydate {
  text-align: right;
  margin: 20px 0 5px;
}

.entry-meta.entry-meta--column {
  text-align: right;
  margin: 20px 0;
  font-family: var(--jp-gothic);
}

.entry-meta.entry-meta--limited {
  text-align: right;
  margin: 20px 0;
  font-family: var(--jp-gothic);
}

.pmpro-locked {padding:24px;border-radius:12px;background:#fff;border:1px solid #eaeaea;box-shadow:0 6px 20px rgba(0,0,0,.06);margin: 20px 0;}
.pmpro-locked__title{font-size:1.2rem;margin-bottom:.6rem;}
.pmpro-locked__teaser{color:#444;line-height:1.8;}
.pmpro-locked__message{color:#666;margin:.75rem 0;}
.pmpro-locked__cta .btn{display:inline-block;padding:12px 22px;border-radius:6px;background:var(--color-main);color:#fff;text-decoration:none}
.pmpro-locked__cta .btn:hover{opacity:.9}

.lock-icon {
  margin-right: .4em;
  font-size: .95em;
  line-height: 1;
  vertical-align: -0.05em;
}
.screen-reader-text {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* 鍵アイコン（タイトル左に小さく） */
.lock-icon{
  width: 22px;
  height: 22px;
  vertical-align: 0;
  margin-right: 8px;
}

/* 網掛け */
/* ▼ 記事一覧（.post-thumbnail-wrapper）＆ single/column（.post-thumbnail）で共通 */
.post-thumbnail-wrapper.is-locked,
.post-thumbnail.is-locked {
  position: relative;
  background: #fff;

  /* 元の例は filter が2行あり後者で上書きされていました。
     まとめて適用（順序は重要：先にグレースケール → その後コントラスト強調） */
  filter: grayscale(60%) contrast(3);

  /* フェード用マスク（下方向を薄く） */
  --mask: linear-gradient(#000 30%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: var(--mask);
  mask-image: var(--mask);

  /* 角丸等がある場合は ::before も含めて内側におさめたい場合のみ有効化 */
  /* overflow: hidden; */
}

/* ドット網掛け（内側に 0.5rem の余白を取る） */
.post-thumbnail-wrapper.is-locked::before,
.post-thumbnail.is-locked::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(#666, transparent 40%) 0 0 / 0.4em 0.4em space;

  /* コンテナと同じマスクを継承してフェード */
  -webkit-mask: var(--mask);
  mask: var(--mask);

  pointer-events: none;   /* クリックを邪魔しない */
  z-index: 1;
}

/* 念のため：画像は下層に置く */
.post-thumbnail-wrapper.is-locked img,
.post-thumbnail.is-locked img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 0;
}


/* /網掛け */

/* single のリボン（左上の三角） */
.corner-ribbon{
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;      /* 三角の外枠（見えない） */
  height: 140px;
  pointer-events: none;
  z-index: 30;
}
.corner-ribbon::before{
  content:"";
  position:absolute;
  top:0; left:0;
  border-top: 90px solid #c63b2d;
  border-right:90px solid transparent;
}

.corner-ribbon::after{
  content:"会員\A限定";
  white-space: pre;
  position:absolute;
  top: 10px;
  left: 1px;
  width: 52px;
  transform: none;
  color:#fff;
  text-align: center;
  font-family: var(--jp-gothic, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif);
  font-weight:700;
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: .2em;
}

@media (max-width: 600px){
  .corner-ribbon{ width: 120px; height: 120px; }
  .corner-ribbon::before{
    border-top: 60px solid #c63b2d;
    border-right: 60px solid transparent;
  }
  .corner-ribbon::after{
    top: 8px; left: 0; width: 36px;
    font-size: 10px; letter-spacing: .18em;
  }
}

.single .post-column article,
.post-column .post-container article {
  position: relative;
  z-index: 0;
}

.single .post-limited article,
.post-limited .post-container article {
  position: relative;
  z-index: 0;
}


/* levels */
.entry-header {
  padding: 0;
}
.kb-image {
	width: 100%;
	aspect-ratio: 3 / 1; /* 比率を統一したい場合 */
	overflow: hidden;
}
.kb-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
  padding: 10px;
}

/* --- Active (current user's plan) --- */
.kb-card.is-active {
  background: var(--card-color);
  color: var(--color-text-w); /* 白文字（テーマ変数） */
  border-color: var(--card-color);
}

.kb-card.is-active .kb-name,
.kb-card.is-active .kb-price,
.kb-card.is-active .kb-exp,
.kb-card.is-active .kb-desc,
.kb-card.is-active .kb-meta {
  color: var(--color-text-w);
}

.kb-card.is-active .kb-btn {
  background: #fff;
  color: var(--card-color);
  border: none;
}

.kb-card.is-active .kb-btn:hover {
  background: #f2f2f2;
}

.kb-card.is-active .kb-btn--outline {
  background: #fff;
  color: var(--card-color);
  border: none;
}

.kb-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255,255,255,.9);
  color: var(--card-color);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}
.kb-card {
  position: relative; /* バッジのために追加 */
}

/* ====== My Account (kb_account) ====== */
/* 会員マイページでは記事タイトル（H1）を非表示にする */
#post-19 .entry-header {
  display: none;
}

.page-id-16 .entry-header {
  display: none;
}
.page-id-52 .entry-header {
  display: none;
}
.page-id-50 .entry-header {
  display: none;
}
.page-id-55 .entry-header {
  display: none;
}
.page-id-57 .entry-header {
  display: none;
}
.page-id-66 .entry-header {
  display: none;
}

.kb-account__hero{
  text-align:center;
  margin: 10px auto 24px;
}
.kb-account__title{
  font-size:1.6rem;
  color: var(--color-main);
  margin: 0 0 .25em;
}
.kb-account__subtitle{
  font-size:.95rem;
  color: var(--color-text);
  opacity:.8;
  letter-spacing:.08em;
}

.kb-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0 auto 24px;
}
@media (min-width: 900px){
  .kb-grid{ grid-template-columns: 1fr 1fr; gap: 28px; }
}

.kb-card{
  background:#fff;
  border: 2px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 1px 1px rgba(0,0,0,.08);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.kb-card__hd{
  font-size:1.1rem;
  color: var(--color-main);
  margin: 0 0 .75rem;
}

.kb-card--plan .kb-plan__name{
  font-size:1.4rem;
  margin: 0 0 .5rem;
  color: var(--color-main);
}

.kb-plan__meta{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 12px;
  margin: 10px 0 14px;
}
.kb-plan__meta dt{
  font-family: var(--jp-gothic);
  color:#666;
}
.kb-plan__meta dd{ margin:0; }

.kb-actions{ display:flex; flex-wrap:wrap; gap:10px;justify-content: center; }
.kb-btn{
  font-family: var(--jp-gothic);
  display:inline-block;
  background: var(--color-main);
  color: var(--color-text-w);
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: .2s ease;
}
.kb-btn:hover{ filter: brightness(0.95); }
.kb-btn:visited {color: var(--color-text-w);}
.kb-btn.kb-btn--outline:visited {color: var(--color-text-w);}
.kb-btn.kb-btn--link {color:var(--color-link)}
.kb-btn--ghost{
  background: transparent;
  color: var(--color-main);
  border: 2px solid var(--color-main);
}
.kb-btn.kb-btn--ghost {
  border: none;
  background: none;
  text-decoration: underline;
  color: var(--color-link-h);
}
.kb-btn--link{
  background: transparent;
  color: var(--color-link);
  padding: 10px 0;
  text-decoration: underline;
}

.kb-list--invoices{
  list-style:none; margin:0; padding:0;
}
.kb-list--invoices li{
  display:flex; align-items:center; gap:12px;
  padding: 10px 0; border-bottom: 1px dashed #ddd;
}
.kb-inv__date{ min-width: 9em; color:#666; }
.kb-inv__total{ margin-left:auto; font-weight:700; }
.kb-inv__link{ margin-left:10px; color: var(--color-link); }

.kb-more{ margin-top:10px; text-align:right; }
.kb-muted{ color:#777; }

.kb-card--links .kb-links{
  display:flex; gap:16px; flex-wrap:wrap;
  list-style:none; padding:0; margin: 6px 0 0;
}
.kb-card--links .kb-links a{
  color: var(--color-link);
  text-decoration: underline;
}

.kb-card--account .kb-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}
.kb-card--account .kb-btn--link{
  text-decoration: underline;
}
.kb-card--invoices{
  margin-top: 28px;
}

/* マイページ */
:root {
  --color-main: #1b462a;     /* メインカラー（深緑） */
  --color-sub: #826d36;      /* サブカラー（木の実色） */
  --color-text: #000000;     /* 本文（黒） */
  --color-text-w: #ffffff;   /* 白文字 */
  --color-link: #888888;
  --color-link-h: #999999;
  --color-bg: #ffffff;
  --color-subtle-bg: #f5f5f5;
  --color-border: #e0e0e0;

  --color-leaf: #26653c;
  --color-nuts: #826d36;
  --color-forest: #47544c;
}

/* 基本構造 */
.kb-account {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  color: var(--color-text);
  background: var(--color-bg);
}

.kb-accountinfo__actions {
  display: flex;
}

.kb-accountinfo__actions a {
  margin-right: 20px;
}

.kb-account__title {
  font-size: 1.6rem;
  text-align: center;
  color: var(--color-main);
  letter-spacing: .1em;
  margin-bottom: 1rem;
}

.kb-account__hello {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-main);
  font-weight: 500;
}

/* 各セクション共通 */
.kb-block {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.8rem 1.5rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.kb-block__title {
  font-size: 1.05rem;
  color: var(--color-main);
  font-weight: 600;
  margin-bottom: 1rem;
  border-left: none;
  padding-left: 0;
}

/* 現在のプラン */
.kb-plan__name {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-main);
  margin-bottom: .5rem;
}

.kb-plan__meta,
.kb-plan__mail {
  color: #444;
  margin-bottom: .4rem;
}

.kb-plan__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}

/* ボタン */
.kb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1.3rem;
  border-radius: 30px;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
}

.kb-btn--primary {
  background: var(--color-main);
  color: var(--color-text-w);
  border: 1px solid var(--color-main);
}

.kb-btn--primary:hover {
  opacity: 0.9;
}

.kb-btn--ghost {
  background: var(--color-subtle-bg);
  border: 1px solid var(--color-border);
  color: var(--color-main);
}

.kb-btn--outline {
  background: var(--color-main);
  border: 1px solid var(--color-border);
  color: var(--color-text-w);
}

.kb-btn--text {
  background: none;
  border: none;
  color: var(--color-main);
  text-decoration: underline;
  padding: 0;
}

.kb-btn--text:hover {
  color: var(--color-sub);
}

/* ラベル（旧kb-badge） */
.kb-label {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .75rem;
  line-height: 1;
}

.kb-label--green {
  background: var(--color-text-w);
  color: var(--color-main);
}

.kb-label--gray {
  background: #f0f0f0;
  color: #666;
}

/* アカウント情報 */
.kb-accountinfo {
  background: #fff;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.kb-accountinfo__name {
  font-weight: 600;
  color: var(--color-main);
  margin-bottom: .5rem;
}

.kb-accountinfo__item {
  color: #444;
  font-size: .9rem;
}

/* 登録日テーブル */
.kb-tablewrap {
  overflow-x: auto;
}

.kb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.kb-table th,
.kb-table td {
  padding: .65rem .5rem;
  text-align: left;
}

.kb-table thead th {
  color: var(--color-main);
  font-weight: 500;
}

.kb-table tbody tr:nth-child(even) {
  background: var(--color-subtle-bg);
}

/* レスポンシブ */
@media (max-width: 640px) {
  .kb-plan__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .kb-btn {
    width: 100%;
    text-align: center;
  }
}

/* プランごとの背景色 */
.kb-account.kb-plan--leaf .kb-block--plan {
  background-color: rgba(38, 101, 60, 0.08);  /* 木の葉プラン */
  border-color: var(--color-leaf);
}

.kb-account.kb-plan--nuts .kb-block--plan {
  background-color: rgba(130, 109, 54, 0.08); /* 木の実プラン */
  border-color: var(--color-nuts);
}

.kb-account.kb-plan--forest .kb-block--plan {
  background-color: rgba(71, 84, 76, 0.08);   /* 森のプラン */
  border-color: var(--color-forest);
}

/* ラベルと値を揃える共通行 */
.kb-info-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.kb-info-label {
  flex: 0 0 7.2em; /* 「登録メール：」「ユーザー名：」がちょうどの幅 */
  color: #555;
  font-weight: 500;
}

.kb-info-value {
  flex: 1;
  color: #222;
  word-break: break-all;
}

.kb-account--guest {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.8rem 1.6rem 1.4rem;
  max-width: 540px;
  margin: 0 auto;
}

.kb-account__lead {
  margin-bottom: 1.2rem;
  color: #555;
  text-align: center;
}

.kb-block--login {
  margin-bottom: 1rem;
  border: none;
  box-shadow: none;
}

.kb-block--login p label {
  display: block;
}

.kb-account__actions {
  text-align: center;
}

.kb-btn.kb-btn--primary {
  background: none;
  color: var(--color-main);
  padding: 0.55rem 1.2rem;
  border-radius: 9999px;
  display: inline-block;
  text-decoration: none;
  border: none;
}

.kb-btn.kb-btn--link {
  display: inline-block;
  margin-left: 1rem;
  color: var(--color-link);
  text-decoration: underline;
  font-size: 0.95rem;
}

.kb-btn.kb-btn--link:hover {
  color: var(--color-link-h);
}


/* タイトル色もプランに応じて変化 */
.kb-account.kb-plan--leaf .kb-block__title { color: var(--color-leaf); border-left-color: var(--color-leaf); }
.kb-account.kb-plan--nuts .kb-block__title { color: var(--color-nuts); border-left-color: var(--color-nuts); }
.kb-account.kb-plan--forest .kb-block__title { color: var(--color-forest); border-left-color: var(--color-forest); }


/* checkout */

.kb-register {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg);
}

.kb-form__group {
  margin-bottom: 1.2rem;
}

.kb-form__group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.kb-form__group input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.kb-form__group input[type=checkbox] {
  width: auto;
}

.kb-form__submit {
  text-align: center
}

.kb-form__submit button.kb-btn.kb-btn--primary {
  background: var(--color-main);
  color: var(--color-text-w);
  padding: 0.55rem 1.2rem;
  border-radius: 9999px;
  display: inline-block;
  text-decoration: none;
  border: none;
}

.kb-register__footer {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.kb-required {
  color: red;
  font-size: .75rem;
}

.kb-banner {
  border: 1px solid var(--color-main);
  background: #f6fbf8;
  padding: 1.5em;
  border-radius: 8px;
  margin-bottom: 2em;
  text-align: center;
}

.kb-banner--success p {
  margin: 0.5em 0;
}

.kb-btn--primary {
  background-color: var(--color-main);
  color: #fff;
  padding: 0.6em 1.2em;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}
.kb-btn--primary:hover {
  background-color: var(--color-sub);
}

.kb-checkout {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.8rem 1.6rem 2rem;
}

.kb-banner {
  padding: 1rem 1.1rem;
  margin-bottom: 1.4rem;
  text-align: center;
  border: none;
  background: none;
}
.kb-banner--warn {
  border-color: #c77;
  background: #fff5f5;
  margin: 20px 0;
  text-align: left;
}

.kb-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.kb-plan {
  border: 1px solid var(--color-border);
  background: var(--color-subtle-bg);
  border-radius: 8px;
  padding: 1rem 1rem 1.3rem;
}
.kb-plan__title {
  font-weight: 700;
  margin-bottom: .4rem;
}
.kb-plan__price {
  font-size: 1.05rem;
  margin-bottom: .4rem;
}
.kb-plan__desc {
  font-size: .9rem;
  color: #555;
  margin-bottom: .6rem;
}
.kb-plan__note {
  font-size: .8rem;
  color: #a00;
}

.kb-btn.kb-btn--primary {
  background: var(--color-main);
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: .95rem;
  margin-top: 0;
}

.kb-checkout.kb-checkout--guest p {
  text-align: center;
}

.kb-plans.kb-plans--cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1rem;
}

.kb-plan-card {
  background: var(--color-subtle-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.1rem 1rem 1.3rem;
}

.kb-plan-card__title {
  font-weight: 700;
  margin-bottom: .4rem;
}

.kb-plan-card__price {
  font-size: 1.05rem;
  margin-bottom: .4rem;
}

.kb-plan-card__desc {
  font-size: .9rem;
  margin-bottom: .8rem;
  font-family: var(--jp-gothic);
}

/* プラン別カラー */
.kb-plan-card.kb-plan--leaf {
  border-color: var(--color-leaf);
}
.kb-plan-card.kb-plan--fruit {
  border-color: var(--color-nuts);
}
.kb-plan-card.kb-plan--trial {
  border-style: dashed;
}

.plan-card--active {
  border: 2px solid var(--color-leaf);
  position: relative;
}
.plan-card__badge {
  position: absolute;
  top: .6rem;
  right: .6rem;
  background: var(--color-leaf);
  color: #fff;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .7rem;
}

/* プロフィール編集 */
.kb-form-row input[id="user_login"] {
  display: block;
  width: 100%;
}

.kb-form-row input[type="password"] {
  display: block;
  width: 100%;
}

.kb-form-actions {
  margin: 10px 0;
}

.login-username input[type="text"], .login-password input[type="password"] {
  width: 100%;
}

p.login-submit {
  text-align: center;
}

ul.kb-badge-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  margin: 0 auto;
  width: 80%;
}

ul.kb-badge-list li.kb-badge-item {
  margin: 0 10px;
}

li.kb-badge-item figure {
    display: inline-block;
    width: auto;
    text-align: center;
}

li.kb-badge-item figcaption {
    text-align: center;
}


/* ===== About / 木林文庫について ===== */
.site-about { --gap: clamp(16px, 2vw, 24px); --wrap: min(1100px, 94vw); }

/* Hero */
.about-hero { position: relative; display: grid; gap: var(--gap); margin: 40px auto 24px; width: var(--wrap); }
.about-hero__image img { width: 100%; height: clamp(260px, 46vw, 520px); object-fit: cover;}
.about-hero__text { 
  position: relative; 
  margin-top: -72px;
  margin-left: 16px;
  padding: 20px 24px; 
  background: rgba(255,255,255,.9); 
  backdrop-filter: blur(6px); 
  width: min(780px, 90%); 
  box-shadow: 0 8px 24px rgba(0,0,0,.08); 
}
.about-title { font-size: clamp(24px, 3vw, 36px); margin: 0 0 6px; }
.about-lead { margin: 0; line-height: 1.8; }

/* Sections */
.about-section { width: var(--wrap); margin: 48px auto; }
.about-h2 { font-size: clamp(20px, 2.2vw, 28px); margin: 0 0 12px; }

/* Grid */
.about-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: clamp(18px, 2.4vw, 28px); align-items: start; }
.about-col p { line-height: 1.95; margin: 0 0 1em; }
.about-col--image { display: grid; gap: var(--gap); }
.about-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover;}

/* Photo strip（横スクロール） */
.about-strip { background: #faf8f4; padding: 28px 0; margin: 56px 0; }
.about-strip__inner { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gap); }
.about-strip__item { scroll-snap-align: start; }
.about-strip__item img { width: 100%; object-fit: cover; }

/* Visit */
.about-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 10px; }
.about-slot { background: #f3f4ee; border: 1px solid #e5e6de; padding: 10px 12px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.about-slot span { font-weight: 600; margin-right: 4px; }

.about-notice { font-size: .95rem; color: #555; background: #fff8ef; border: 1px dashed #f0c890; padding: 12px 14px; border-radius: 10px; }

.about-cta { display: flex; gap: 10px; margin-top: 14px; }
.kb-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; transition: .15s ease; }
.kb-btn--primary { background: #2b8a3e; color: #fff; }
.kb-btn--primary:hover { filter: brightness(1.06); }
.kb-btn--ghost { background: #fff; color: #222; border-color: #ddd; }
.kb-btn--ghost:hover { background: #f7f7f7; }

/* Responsive */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-hero__text { 
    width: min(960px, 95%);
    margin: -48px auto 0;
  }
  .about-slots { grid-template-columns: 1fr; }
}

/* ===== Membership Plans (Perks Detail) ===== */
.site-plans { --wrap: min(1100px, 94vw); --gap: clamp(20px, 3vw, 40px); }
.plans-hero { text-align: center; margin: 60px auto 40px; width: var(--wrap); }
.plans-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; color: var(--color-main,#333); }
.plans-lead { color: #555; line-height: 1.9; }

/* Perk section */
.perk-detail { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; margin: 60px auto; width: var(--wrap); }
.perk-detail:nth-child(even) { grid-template-columns: 1fr 1fr; }
.perk-detail__images { display: grid; gap: 12px; }
.perk-detail__images img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.perk-detail__title { font-size: clamp(22px,2.6vw,30px); margin: 0 0 8px; }
.perk-detail__badges { margin-bottom: 8px; }
.badge { display: inline-block; border-radius: 999px; font-size: .85rem; padding: 4px 10px; margin-right: 4px; color:#fff; }
.badge--eda { background: var(--color-main); }
.badge--mi { background: var(--color-nuts); }
.perk-detail__content p { line-height: 1.9; }

/* CTA */
.plans-cta { text-align: center; padding: 80px 20px; background: #faf8f4; margin-top: 100px; }
.plans-cta__title { font-size: 1.8rem; margin-bottom: 0.5rem; }
.kb-btn--primary { background: var(--color-main); color: #fff; padding: 12px 28px; border-radius: 999px; text-decoration: none; transition: .2s ease; }
.kb-btn--primary:hover { filter: brightness(1.1); }

@media (max-width:900px) {
  .perk-detail { grid-template-columns: 1fr; }
  .perk-detail:nth-child(even) { grid-template-columns: 1fr; }
}

/* =========================
   Contact (kb_contact)
   ========================= */
.kb-contact{
  width:min(960px, 94%);
  margin:60px auto;
}
.kb-contact__title{
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin: 0 0 10px;
  color: var(--color-main, #1b462a);
  font-weight: 700;
}
.kb-contact__intro{
  margin: 0 0 24px;
  line-height: 1.9;
  color: var(--color-text, #222);
}
.kb-contact__intro a{
  color: var(--color-main, #1b462a);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* エラー枠 */
.kb-contact__errors{
  border:1px solid #f0c9c9;
  background:#fff6f6;
  color:#7a2b2b;
  padding:.9rem 1rem;
  border-radius:12px;
}

/* フォーム */
.kb-form{
  background: var(--color-bg, #fff);
  border: 1px solid var(--color-border, #e8e8e8);
  border-radius: 16px;
  padding: clamp(14px, 2.5vw, 22px);
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.kb-form__row{ margin: 0 0 16px; }
.kb-form__label{
  display:block;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--color-text, #222);
}

/* 入力 */
.kb-form__input,
.kb-form__textarea{
  width:100%;
  background:#fff;
  color: var(--color-text, #111);
  border:1px solid var(--color-border, #ddd);
  border-radius: 12px;
  padding: .7rem .85rem;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.kb-form__textarea{ min-height: 160px; resize: vertical; }
.kb-form__input:focus,
.kb-form__textarea:focus{
  outline:none;
  border-color: color-mix(in oklab, var(--color-main, #1b462a) 60%, #ffffff);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-main, #1b462a) 15%, transparent);
}

/* 入力のエラー時ハイライト（PHP側で .is-error を付けるなら） */
.kb-form__row.is-error .kb-form__input,
.kb-form__row.is-error .kb-form__textarea{
  border-color:#e07070;
  box-shadow: 0 0 0 3px rgba(224,112,112,.12);
}

/* ボタン（既存の kb-btn 系を前提に微調整） */
.kb-form__actions{
  display:flex; gap:.6rem; flex-wrap:wrap; align-items:center;
}
.kb-btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:.5rem; padding:.6rem 1rem; border-radius: 12px;
  border:1px solid transparent; cursor:pointer; font-size:.95rem;
  transition: transform .02s ease, opacity .2s ease;
}
.kb-btn:active{ transform: translateY(1px); }
.kb-btn--primary{ background: var(--color-main, #1b462a); color:#fff; }
.kb-btn--primary:hover{ opacity:.92; }
.kb-btn--ghost{ background: transparent; border-color: var(--color-border, #ddd); color: var(--color-text, #111); }
.kb-btn--ghost:hover{ background:#fafafa; }

/* 確認画面 */
.kb-confirm{ margin-top:.6rem; }
.kb-confirm__title{
  font-size:1.1rem; margin: 0 0 10px; color: var(--color-main, #1b462a);
}
.kb-confirm__list{
  display:grid; grid-template-columns: 160px 1fr; gap:.5rem .9rem;
  background:#fafafa; border:1px solid var(--color-border, #eee);
  border-radius: 12px; padding: 1rem;
}
.kb-confirm__list dt{ font-weight:600; color:#444; }
.kb-confirm__list dd{ margin:0; white-space:pre-wrap; }

/* 完了メッセージ */
.kb-thanks{
  border:1px solid color-mix(in oklab, var(--color-main, #1b462a) 25%, #ffffff);
  background: color-mix(in oklab, var(--color-main, #1b462a) 6%, #ffffff);
  padding: 1rem; border-radius: 12px;
}
.kb-thanks h3{ margin:0 0 .4rem; color: var(--color-main, #1b462a); }

/* モバイル */
@media (max-width: 640px){
  .kb-contact{ margin: 40px auto; }
  .kb-confirm__list{ grid-template-columns: 1fr; }
}

.about-hero figure,
.about-strip figure,
.about-section figure {
  width: auto;
  margin: 0;
}

/* ===== KB Static Pages (Terms/Privacy/About) ===== */
.kb-static{
  width:min(1100px, 94%);
  margin:60px auto 80px;
}
.kb-static__hero{
  text-align:center;
  margin-bottom:24px;
}
.kb-static__title{
  font-size:clamp(1.6rem, 2.2vw, 2.2rem);
  color:var(--color-main);
  letter-spacing:.02em;
  margin:0 0 .25rem;
}
.kb-static__lead{
  color:var(--color-text,#111);
  opacity:.8;
  margin:0;
}
.kb-static__body{
  background:var(--color-bg,#fff);
  border:1px solid var(--color-border,#eee);
  border-radius:16px;
  padding:min(6vw,40px);
  box-shadow:0 6px 18px rgba(0,0,0,.03);
}

/* 目次 */
.kb-toc{
  border:1px dashed var(--color-border);
  border-radius:12px;
  padding:16px 18px;
  margin:0 0 28px;
  background:rgba(27,70,42,.03);
}
.kb-toc__title{
  font-size:1rem;
  margin:0 0 .25rem;
  color:var(--color-main);
}
.kb-toc ol{
  margin:.25rem 0 0 1.2rem;
  line-height:1.8;
}
.kb-toc a{ text-decoration:underline; }

/* 本文タイポ（既存kb-proseを補強） */
.kb-prose h2{
  font-size:clamp(1.15rem, 1.6vw, 1.4rem);
  border-left:4px solid var(--color-main);
  padding-left:.6rem;
  margin:2rem 0 .6rem;
}
.kb-prose p, .kb-prose li{
  line-height:1.9;
  font-size:1rem;
}
.kb-prose ul, .kb-prose ol{ margin: .6rem 0 .6rem 1.2rem; }
.kb-prose strong{ font-weight:700; }

/* 日付・CTA */
.kb-static__date{
  margin-top:28px;
  font-size:.92rem;
  color:#666;
}
.kb-static__cta{
  margin-top:22px;
  display:flex;
  gap:10px;
  justify-content:center;
}
.kb-btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:.5rem; padding:.6rem 1rem; border-radius:10px;
  border:1px solid transparent; cursor:pointer; font-size:.95rem;
}
.kb-btn--primary{ background:var(--color-main); color:#fff; }
.kb-btn--primary:hover{ opacity:.92; }
.kb-btn--ghost{ background:transparent; border-color:var(--color-border,#e0e0e0); color:var(--color-text,#111); }
.kb-btn--ghost:hover{ background:rgba(0,0,0,.035); }

.kb-notice.success {
  text-align: center;
  margin: 20px 0;
}

.kb-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
}
.kb-notice--success { background: #e6f7ee; color:#0f5132; border:1px solid #badbcc; }
.kb-notice--error   { background: #fde7e9; color:#842029; border:1px solid #f5c2c7; }
.kb-notice--info    { background: #eef6ff; color:#084298; border:1px solid #b6d4fe; }


/* post */

.post-limited .kb-photo-article {
  width: 100%;
  margin: 2rem auto;
  line-height: 1.7;
}

.post-limited .kb-intro {
  max-width: 780px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.05rem;
}

.post-limited .kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 2rem auto;
}

.post-limited .kb-item {
  width: 100%;
}

.post-limited .kb-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.post-limited .kb-cap {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.4rem;
  text-align: left;
}

.post-limited.kb-photo-article-2v4h {
  width: 100%;
  margin: 2rem auto;
  line-height: 1.7;
}

.post-limited.kb-photo-article-2v4h .kb-intro {
  max-width: 780px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.05rem;
}

/* 横写真（3:2） */
.post-limited.kb-photo-article-2v4h .horizontal img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
}

/* 縦写真（2:3） */
.post-limited.kb-photo-article-2v4h .vertical img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.post-limited .kb-item .kb-cap {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.4rem;
}

/* 全体のラッパー：行を縦に並べる */
.post-limited.kb-photo-article-2v4h .kb-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 2rem auto;
}

/* 各行ごとの小さなグリッド（2枚1組） */
.kb-photo-article-2v4h .kb-grid-row {
  display: grid;
  gap: 26px;
}

/* 1行目など：縦 左 / 横 右（細い＋太い） */
.kb-photo-article-2v4h .kb-grid-row.kb-row-v-left {
  grid-template-columns: 0.4444fr 1fr;
}

/* 2行目など：横 左 / 縦 右（太い＋細い） */
.kb-photo-article-2v4h .kb-grid-row.kb-row-v-right {
  grid-template-columns: 1fr 0.4444fr;
}

/* 横＋横の行（3行目） */
.kb-photo-article-2v4h .kb-grid-row.kb-row-2h {
  grid-template-columns: 1fr 1fr;
}

/* アイテム共通 */
.kb-photo-article-2v4h .kb-item {
  width: 100%;
}

/* スマホ：全部1列に崩す */
@media (max-width: 768px) {
  .kb-photo-article-2v4h .kb-grid-row {
    grid-template-columns: 1fr;
  }
}
