@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Kaisei+Opti:wght@400;700&family=Zen+Kaku+Gothic+New&family=Zen+Kurenaido&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sawarabi+Gothic&display=swap');


/*------------------------------------------------------------
  基本設定
------------------------------------------------------------*/
html, body {
    min-height: 100%;
    height: auto;
    background: #f6f6f6;
    color: #0d1b17;
    font-size: 1rem;
    font-family: '游ゴシック', sans-serif;
    font-weight: normal;
    letter-spacing: 0.2em;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: #66cda3;
}

a:hover {
  text-decoration: underline;
}

p {
    line-height: 1.7;
}

ruby {
    ruby-position: over;
    font-size: 1rem;   
    line-height: 1.5;    
}

ruby rt {
    font-size: 0.6rem;         
    letter-spacing: 0.05em;     
}

ruby rp {
    display: none; 
}

.term {
  color: #2f2f2f; 
  background: #f6f6f6;
  padding: 2px 6px;  
  border-left: 6px solid #4da88b;
}

@media (max-width: 1024px) {
 html, body {
        letter-spacing: 0.15em;
    }
}

@media (max-width: 768px) {
 html, body {
        font-size: 0.9rem;  
        letter-spacing: 0.1em;
    }

  ruby rt {
        font-size: 0.5rem;  
    }
}

@media (max-width: 480px) {
    ruby rt {
        font-size: 0.45rem;
    }
}



main {
    flex: 1;
}




/* 見出し */
h2, h3, h4 {          
    font-family: "Kaisei Decol", "Sawarabi Mincho", serif;
    letter-spacing: 0.2em;
    line-height: 1.4;
    color: #2f2f2f;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin: 30px 0 50px;
    position: relative;
    color: #2f2f2f;
}

h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 150px;
    height: 1.5px;
    background: linear-gradient(90deg, #66cdaa, #c9a24d);
    transform: translateX(-50%);
}

h3 {
    /*font-family: "Zen Kaku Gothic New", sans-serif;*/
    font-size: 1.5rem;
    margin: 40px 0 20px;
    color: #444;
    position: relative;
    padding-left: 12px;
}

h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 4px;
    height: 1.2em;
    background: #66cdaa;
    pointer-events: none;
}

h4 {
    /*font-family: "Zen Kaku Gothic New", sans-serif;*/
    font-size: 1.1rem;
    margin: 25px 0 12px;
    color: #555;
    border-left: 3px solid #c9a24d;
    padding-left: 12px;
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.8rem;
        margin: 30px 0 40px;
    }

    h3 {
        font-size: 1.3rem;
    }

    h4 {
        font-size: 1rem;
    }
}


/* セクション */
section {
    padding: 40px 20px;
    margin-bottom: 5px;
    margin: 0 auto 5px; 
    max-width: 1200px;
}


section p {
    padding-left: 2rem;
    padding-right: 2rem;
}
    


section > p {
    margin-bottom: 2rem;
}



/* 2カラム */
.two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.two-column_item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    word-break: break-word;
    overflow-wrap: break-word;

}

.two-column_item img {
  max-width: 100%;
  height: auto;
  display: block;
}

.two-column_item > * + * {
    margin-top: 2rem;
}

.two-column h3 {
    position: relative;
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    padding-left: 18px;
}

.two-column h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 4px;
    height: 1.4em;
    background: #66cdaa;
}

.two-column h4 {
    position: relative;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .two-column {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .two-column h3 {
      font-size: 1.3rem;
      margin-bottom: 10px;
      padding-left: 18px;
    }

    .two-column h4 {
      font-size: 0.99rem;
    }
    
    .two-column p {
      line-height: 1.8;
    }
}




/* カード */
.card {
    position: relative;
    background: #ffffff;
    border-radius: 1px;
    padding: 28px 24px;
    box-shadow: 0 12px 20px rgba(0,0,0,0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #66cdaa;
}

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

.card h3 {
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.card h4 {
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.card__image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.card__image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.01),
        rgba(0,0,0,0.05)
    );
    pointer-events: none;
}

.card__image::after {
    display: none;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
    justify-content: center; 
}



@media (max-width: 768px) {
    .card {
        box-shadow: 0 6px 16px rgba(0,0,0,0.06);
        transform: none;
    }

    .card__body {
        padding: 20px 18px 22px;
    }

    .card__image {
        height: 140px;
    }

    .cards {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .card__image {
        height: 120px;
    }

     .cards {
        gap: 16px;
    }
}

@media (hover: none) {
    .card:hover {
        transform: none;
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }

    .card:hover .card__image img {
        transform: none;
    }
}



/* ボタン */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #66cdaa;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.button:hover {
    background-color: #4da88b;
}



/* アコーディオン */
.accordion-wrapper {
    margin-bottom: 10px;
    display: block;
    letter-spacing: normal;

}

.accordion-title {
    display: flex;                  
    justify-content: space-between; 
    align-items: center;           
    font-size: 1.4rem;
    margin: 15px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #66cdaa; 
}

.accordion-title h3 {
    margin: 0;
    padding-left: 12px;
    color: #444;
    position: relative;
    cursor: pointer;
}

.accordion-title h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 4px;
    height: 1.2em;
    background: #66cdaa;
    pointer-events: none;
}

.accordion-title h3,
.accordion-title h4 {
  margin: 0;
  cursor: pointer; 
}

.accordion-btn {
  cursor: pointer;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #66cdaa;
    cursor: pointer;
    transition: transform 0.3s ease;
    line-height: 1;
}

.accordion-summary {
    display: block;
    width: 100%;
}

.accordion-btn.is-open {
    transform: rotate(45deg);
}


.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding-top 0.4s ease;
    opacity: 0;
    padding-left: 16px;
    padding-top: 10px;
    padding-bottom: 5px;
}

.accordion-content.is-open {
    max-height: 1000px;
    opacity: 1;
    padding-top: 8px;
    padding-bottom: 8px;
}

/*
.accordion-content p {
    margin: 10px 0;
    line-height: 1.7;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 16px;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}

.accordion-content.is-open {
  max-height: 2000px; 
  opacity: 1;
  padding-top: 8px;
  padding-bottom: 8px;
}


@media (max-width: 768px) {
    .accordion-wrapper{
      margin-bottom: 5px;
    }

    .accordion-title h3 {
        font-size: 1.4rem; 
        margin: 10px 0 10px;
        padding-left: 12px;
    }

    .accordion-btn {
        font-size: 1.2rem;
    }

    .accordion-content {
        padding-left: 12px;
    }
}


/* h4版アコーディオン*/
.accordion-title--h4 {
    border-bottom: 1px solid #c9a24d;

}

.accordion-title--h4 h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #555;
    padding-left: 12px;
    border-left: 3px solid #c9a24d;
    pointer-events: none;
}

.accordion-title--h4 .accordion-btn {
    color: #c9a24d;
}

.accordion-title--h4.is-green {
    border-bottom-color: #66cdaa;
}

.accordion-title--h4.is-green h4 {
    border-left-color: #66cdaa;
}

.accordion-title--h4.is-green .accordion-btn {
    color: #66cdaa;
}





.resizeimage {
  max-width: 400px;  /* 最大幅を100%にして親要素に合わせる */
  min-width: 240px; /* 最小幅は240px */
  display: block;
  margin: 20px auto; /* 上下のマージンを追加して画像とテキストを離す */
}

.resizeimage img {
  width: 60%; /* 画像を親要素にフィットさせる */
  height: auto; /* アスペクト比を維持して高さを自動調整 */
}

@media (max-width:850px) {

  .resizeimage {
    max-width: 60%; /* 画面幅に応じて画像の最大幅を100%に設定 */
    min-width: 100px; /* 100pxまで縮小可能 */
    display: block;
    margin: 20px auto; /* 画像の上下マージン */
  }

  .resizeimage img {
    width: 100%; /* 画像が親要素に合わせてリサイズ */
  }
}



/*------------------------------------------------------------
  トップ画像
------------------------------------------------------------*/
.site-top {
    max-width: none;  
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
       
}

.site-top img {
    position: absolute;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
    overflow: hidden;
    top: 0;
    left: 0;
}

.site-top-title{
    position: absolute;
    z-index: 2; 
    font-family: "Kaisei Opti", serif;
    color: #66cdaa;
    font-size: 5.0rem;
    text-shadow:0 0 5px rgba(255, 255, 255, 0.7);
    top: 75%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.site-top-title {
    opacity: 0;
    animation: fadeInUp 1.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 1024px) {
    .site-top-title {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .site-top-title{
        font-size: 4rem;   
        text-shadow: 0 0 3px rgba(255, 255, 255, 0.7);
    }
}

@media (max-width: 480px) {
    .site-top-title{
        font-size: 3rem;      
    }
}


/*------------------------------------------------------------
  下層ページ ヘッダー
------------------------------------------------------------*/
.page-header {
    position: relative;
    height: 40vh;
    min-height: 260px;
    overflow: hidden;
    margin: 0;
}

.page-header img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.page-header__inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.page-title {
    font-family: "Kaisei Opti", serif;
    font-size: 3rem;
    letter-spacing: 0.25em;
    color: #f6f6f6;
    margin: 0;
}

.page-subtitle {
    margin-top: 10px;
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: #c8f5e5;
}

@media (max-width: 768px) {
    .page-header {
        height: 25vh;
    }

    .page-title {
        font-size: 2.2rem;
        letter-spacing: 0.18em;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }
}


/*------------------------------------------------------------
  メニューバー
------------------------------------------------------------*/
header {
  background-color: #dbdbdb;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.hamburger {
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 999;
}

.hamburger.colorchange {
  background-color: #dbdbdb;
  transition: 0.4s;
  -webkit-transition: 0.4s;
  -moz-transition: 0.4s;
  -ms-transition: 0.4s;
  -moz-transition: 0.2s;
  -o-transition: 0.4s;
}

.hamburger._active.colorchange {
  background-color: transparent;
}

.hamburger__line {
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}

.hamburger__line,
.hamburger__line::before,
.hamburger__line::after {
  content: "";
  display: block;
  width: 25px;
  height: 2px;
  background-color: #2f2f2f;
  position: absolute;
  left: 50%;
  transition: 0.3s ease;
  transform: translateX(-50%);
}

.hamburger__line::before {
  top: -8px;
}

.hamburger__line::after {
  bottom: -8px;
}


.hamburger._active .hamburger__line {
  background: transparent;
}

.hamburger._active .hamburger__line::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}

.hamburger._active .hamburger__line::after {
  bottom: 0;
  transform: translateX(-50%) rotate(-45deg);
}

@media screen and (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

.mainmenu {
  width: 100%;
  top: 0;
  height: 65px;
}

.mainmenu__main {
  font-size: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: center;
  height: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.mainmenu__item {
  height: 100%;
  position: relative;
  color: #dbdbdb;
  text-align: center;
  list-style: none;
}

.mainmenu__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-decoration: none;
  background-color: #dbdbdb;
  transition: 0.3s;
  color: #2f2f2f;
  font-size: 1em;
  font-weight: 400;
  box-sizing: border-box;
  border-left: 2px solid transparent;
}

.mainmenu__item a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #c9a24d;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.mainmenu__item a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mainmenu__item a:hover {
  background-color: #f3f3f3;
  color: #66cdaa;
}

.mainmenu__item a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #c9a24d;
  transform: scaleX(1);
  transform-origin: left;
}

.mainmenu__child {
  font-size: 0.9rem;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #dbdbdb;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 10;
  width: 100%;
  text-align: center;
}

.mainmenu__item._has-child:hover .mainmenu__child {
  visibility: visible;
  opacity: 1;
}

.mainmenu__child li a {
  font-weight: bold;
  display: flex;
  position: relative; 
  color: #666666;
  height: 50px;
  align-items: center;
  justify-content: center;
}

.mainmenu__child li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #c9a24d; 
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.mainmenu__child li a:hover {
  background-color: #f3f3f3;
  color: #66cdaa;
}

.mainmenu__item a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}


@media screen and (min-width: 769px) {
  #js-mainmenu {
    position: sticky;
    top: 0;
    width: 100%;  
    z-index: 1000;
    background-color: #dbdbdb; 
  }

 
  .mainmenu__main {
    display: flex;
    justify-content: space-around;
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

   .mainmenu__item {
    flex: 1;      
    position: relative;
  }
 .mainmenu__child {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;   
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    background-color: #dbdbdb;
  }

  .mainmenu__item._has-child:hover .mainmenu__child {
    visibility: visible;
    opacity: 1;
  }
}

@media screen and (max-width: 768px) {
  .mainmenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(245, 245, 243, 0.97);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    padding-top: 100px;
    padding-bottom: 100px;
    box-sizing: border-box;
  }
  
  .mainmenu._active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  .mainmenu__main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 200px;
    height: auto;
    min-height: auto;
  }
  
  .mainmenu__item {
    display: block;
    width: 100%;
    margin-bottom: 0;
    position: relative;
  }
  
  .mainmenu__item a {
    display: block;
    background: none;
    color: #2f2f2f;
    font-size: 1em;
    padding: 12px 15px;
    text-align: center;
    text-decoration: none;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
  }
  
  .mainmenu__item a:hover {
    background: #dbdbdb;
    opacity: 0.5;
  }

  .mainmenu__item._has-child .mainmenu__child {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .mainmenu__item._has-child .mainmenu__child.active {
    display: block;
    max-height: 300px;
  }

  .mainmenu__item._has-child a {
    position: relative; 
  }

  .mainmenu__item._has-child a.active::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #c9a24d;
    transform: scaleX(1);
    transform-origin: left;
  }

  .mainmenu__child {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .mainmenu__child li {
    display: block;
    width: 100%;
  }
  
  .mainmenu__child li a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2a2f55;
    font-size: 0.9em;
    text-align: center;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    box-sizing: border-box;
    height: auto;
    min-height: 40px;
  }
  
  .mainmenu__child li a:hover {
    background: #f3f3f3;
    opacity: 0.5;
    color: #66cdaa;
  }
  
  .mainmenu__child li:last-child a {
    border-bottom: none;
  }
  
  .mainmenu__child li a::after {
    display: none;
  }
}



/*------------------------------------------------------------
  サブメニュー
------------------------------------------------------------*/
.submenu {
    display: flex;
    justify-content: space-between; 
    padding: 0 20px;
    margin-top: 10px;
    background-color: #efefef; 
}

.submenu a {
    position: relative;
    flex: 1; 
    text-align: center;
    padding: 8px 0;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: #2f2f2f;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.submenu a::before,
.submenu a::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0.5px;
    background-color: rgba(0,0,0,0.08);
}

.submenu a::before { left: 0; }
.submenu a::after { right: 0; }

.submenu a:hover {
    color: #479279;
    background-color: #e3f0df;
}

.submenu a.active {
    color: #fff;
    background-color: #66cdaa;
}

@media (min-width: 769px) {
    .submenu {
        margin-top: 50px;
    }
}


@media (max-width: 768px) {
    .submenu {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 10px;
    }

    .submenu a {
        padding: 5px 0;
        font-size: 0.95rem;
    }
}



/*------------------------------------------------------------
  フッター
------------------------------------------------------------*/
footer {
    background-color: #f6f6f6;
    padding: 10px 0; 
    color: #888;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

footer p {
    margin: 0;
}

@media (max-width: 768px) {
    footer {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/*------------------------------------------------------------
  更新履歴セクション
------------------------------------------------------------*/
.update-history {
    background-color: #fefefe;
    padding: 20px 20px 20px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto 60px;
}

.update-history h2 {
    font-size: 1.4rem;
    margin: 10px 0 10px 0;
    margin-bottom: 30px;
    text-align: center;
    color: #2f2f2f;
}

.update-history ul {
    list-style: none;
    padding: 20px;
    margin: 0;
    max-height: 200px; 
    overflow-y: auto; 
    padding-right: 10px;
}

.update-history ul::-webkit-scrollbar {
    width: 8px;
}

.update-history ul::-webkit-scrollbar-thumb {
    background-color: rgba(102, 205, 170, 0.6);
    border-radius: 4px;
}

.update-history ul::-webkit-scrollbar-track {
    background-color: rgba(0,0,0,0.05);
}

.update-history li {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.update-history li:last-child {
    border-bottom: none;
}

.update-history .date {
    font-weight: bold;
    color: #66cdaa;
    margin-bottom: 5px;
}

.update-history .content {
    color: #0d1b17;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .update-history {
        padding: 10px 15px;
        margin: 0 10px 40px;
    }
    
    .update-history h2 {
        font-size: 1.5rem;
    }
}

/*------------------------------------------------------------
  トップに戻るボタン
------------------------------------------------------------*/
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #66cdaa, #4da88b);
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    text-decoration: none;
    z-index: 9999;
    transition: transform 0.2s ease;
}

#backToTop:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    #backToTop {
        width: 40px;
        height: 40px;
        font-size: 20px;
        line-height: 40px;
        bottom: 20px;
        right: 20px;
    }
}


/*------------------------------------------------------------
  サイト・自己紹介欄
------------------------------------------------------------*/
.about-lines {
  margin-top: 20px;
}

.about-line {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: 12px 0;
  margin: auto;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.about-line:last-child {
  border-bottom: none;
}

.about-line .label {
  letter-spacing: 0.15em;
  color: #888;
  text-transform: lowercase;
}

.about-line .value {
  line-height: 1.7;
}

.about-intro {
  max-width: 600px;
  margin-top: 20px;
  padding-top: 20px;
}

.about-intro {
  max-width: 600px;
  margin-top: 20px;
  padding-top: 0; 
}

.profile-header {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.profile-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #66cdaa;
}

.profile-name {
  font-weight: bold;
  font-size: 1.2em;
  margin: 0 0 5px 0;
}

.profile-text {
 /* margin: 3px 0;*/
  color: #333;
}

.bookmark-banners {
    display: flex;           
    flex-wrap: wrap; 
    gap: 10px;                       
}

.bookmark-banners a img {
    display: block;
    max-width: 200px;
    max-height: 40px;
}

.bookmark-section {
    padding: 10px 20px;
    margin: 0; 
}

@media (max-width: 768px) {
  .about-line {
    grid-template-columns: 1fr;
  }
}


/*------------------------------------------------------------
  チャート図

svg {
  pointer-events: none;
}

svg text {
    font-family: '游ゴシック', sans-serif;
    font-size: 1rem; 
  }

  svg .if-text {
    font-size: 0.9rem;
  }

  @media (max-width: 768px) {
    svg text {
      font-size: 0.95rem; 
    }
    svg .if-text {
      font-size: 0.95rem;
    }
  }

  @media (max-width: 480px) {
    svg text {
      font-size: 1rem; 
    }
    svg .if-text {
      font-size: 1rem;
    }
  }
------------------------------------------------------------*/


/*------------------------------------------------------------
  キャラ一覧ページ
------------------------------------------------------------*/
.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  margin: 30px auto 25px;
}

.filter-panel label {
  font-size: 0.9rem;
  color: #444;
  white-space: nowrap;
}

.filter-panel select {
  appearance: none;      
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 4px 24px 4px 6px; 
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  background-color: #fff;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23444" height="12" viewBox="0 0 24 24" width="12" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>'); 
  background-repeat: no-repeat;
  background-position: right 6px center; 
  background-size: 12px;
  cursor: pointer;
}

.char-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto 60px;
  padding: 0 15px;
}

.char-tile {
  display: block;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.char-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #eaeaea;
}

.char-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.char-tile:hover img {
  transform: scale(1.05);
}

.char-name {
  margin-top: 6px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  color: #2f2f2f; 
  font-weight: 500;
  text-decoration: none; 
}


.char-sub {
  margin-top: 2px;
  font-size: 0.75rem;
  color: #9aa3a0; 
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-decoration: none;
}

.char-tile:hover .char-name,
.char-tile:active .char-name {
  color: #66cdaa; 
  text-decoration: none; 
}

.char-tile:hover .char-sub,
.char-tile:active .char-sub {
  text-decoration: none; 
}


@media (max-width: 768px) {
  .char-tiles {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .char-name {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .char-tiles {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .char-name {
    font-size: 0.8rem;
  }
}



/*------------------------------------------------------------
  キャラ紹介ページ
------------------------------------------------------------*/
.char-profile {
    padding: 60px 20px;
}

.char-content {
    display: grid;
    grid-template-columns: 350px 1fr; 
    gap: 40px; 
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.char-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.char-info { 
  display: flex; 
  flex-direction: column; 
  gap: 0.5rem;
}

.char-description p {
    color: #0d1b17;
}

.char-details {
    list-style: none;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.char-details li {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    padding-left: 0.5rem;
    position: relative;
    padding-right: 20px;
    border-left: none;
}

.char-details li:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); 
}

.char-details .detail-title {
    font-weight: bold;
    color: #66cda3;
    min-width: 90px;
    text-align: right;
    margin-right: 10px; 
}

@media (max-width: 768px) {
    .char-profile .char-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .char-image {
        max-width: 100%;
        position: center;   
    }

    .char-info {
        gap: 1rem; 
    }

    .char-details {
        grid-template-columns: 1fr; 
    }
}



/*------------------------------------------------------------
  用語集本体
------------------------------------------------------------*/
#link_word .term {
  display: block;
  min-width: 6.5em;
  margin: 1.4em 0 0.3em;
  padding-left: 10px;
  font-family: "Kaisei Decol", "Sawarabi Mincho", serif;
  font-weight: bold;
  letter-spacing: 0.15em;
  color: #2f2f2f;
  border-left: 5px solid #66cdaa;
  background: linear-gradient(
    to right,
    rgba(102,205,170,0.1),
    transparent 70%
  );
}

#link_word ruby rt {
  font-size: 0.55rem;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  html, body {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
  }

  #link_word .term {
    display: block;
    min-width: auto;
    margin: 1.6em 0 0.4em;
    padding-left: 8px;
  }

  #link_word p {
    line-height: 2;
  }
}



/*------------------------------------------------------------
  novel一覧ページ
------------------------------------------------------------*/
.novel-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
  gap: 6px;
}

.novel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.novel-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.novel-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.novel-title a:hover {
  color: #479279;
}

.novel-date {
  font-size: 0.85rem;
  color: #999;
  white-space: nowrap;
}

.novel-summary {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .novel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .novel-title {
    font-size: 1.1rem;
  }

  .novel-summary {
    font-size: 0.9rem;
    -webkit-line-clamp: 4;
  }
}
