@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+JP:wght@100;200;300;400;500;600;700&display=swap');

:root {
  --bg-color: #fdfaf7;
  --text-color: #333333;
  --text-muted: #5c5c5c;
  --link-color: #000000;
  --card-bg: #ffffff;
  --card-border: #f0e6e1;
  --acc-color: #ffaf91;
  /* 鮮やかなピーチ色 */
  --acc-hover: #ff9166;
  --grad-primary: linear-gradient(135deg, #ffaf91, #ffcba4);
}

/**************************************

       PukiWiki Additional CSS

***************************************/

/**************  BASE *****************/

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  overflow-y: scroll;
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
  font-size: 100%;
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-weight: normal;
  line-height: 1.8;
  position: relative;
  background-image:
    radial-gradient(#f0e6e6 20%, transparent 20%),
    radial-gradient(#ffebeb 20%, transparent 20%);
  background-size: 10px 10px;
  background-position: 0 0, 5px 5px;
}

.background-blobs {
  position: fixed;
  /* スクロールしても背景位置を固定 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  /* ★ここが重要：はみ出した装飾をカットする */
  z-index: -1;
  /* コンテンツの背面に配置 */
  pointer-events: none;
  /* マウス操作を邪魔しない */
}

/* Background dynamic blobs (柔らかい雰囲気) */
.background-blobs::before,
.background-blobs::after {
  content: "";
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  animation: float 15s ease-in-out infinite alternate;
}

.background-blobs::before {
  background: rgba(255, 175, 145, 0.2);
  top: -50px;
  left: -100px;
}

.background-blobs::after {
  background: rgba(255, 203, 164, 0.2);
  bottom: -100px;
  right: -100px;
  animation-delay: -7s;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(40px, 40px);
  }
}

a:link,
a:visited,
a:active {
  text-decoration: none;
  background-color: transparent;
  color: var(--link-color);
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  color: var(--acc-color);
  opacity: 0.8;
}

#main .contents ul li a {
  text-decoration: none;
  background-color: transparent;
  color: var(--link-color);
  font-weight: 600;
}

#main .contents ul li a:hover {
  color: var(--acc-hover);
}

#main a:link.note_super {
  text-decoration: none;
  background-color: transparent;
  color: crimson;
}

a:link.note_super {
  text-decoration: none;
  background-color: transparent;
  color: crimson;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  border: none;
  padding: 0;
  margin-bottom: 0.5rem;
  font-family: inherit;
  background-color: transparent;
  color: var(--text-color);
}

p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text-color);
  word-break: break-word;
}

dl.list1 {
  margin: 1rem 0;
  padding: 0;
}

dt {
  margin: 0;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

dd {
  margin-left: 1rem;
  margin-bottom: 20px;
}

pre {
  margin: 1rem 0;
  margin-bottom: 1rem;
  border: none;
  border-radius: 8px;
  padding: 1rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow: auto;
  color: #333333;
  background: #FFF9F5;
}

#main h3 {
  padding-bottom: 0.5rem;
  border-bottom: 2px dashed var(--acc-color);
  text-align: left;
}

ul,
ol {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  margin-left: 0px !important;
  padding-left: 16px;
}

a.note_super {
  font-size: 0.75rem;
  vertical-align: top;
}

div.jumpmenu {
  visibility: hidden;
}

hr {
  border: none;
  border-top: dotted 1px #CCCCCC;
  height: 1px
}

hr.note_hr {
  visibility: hidden;
}

/* aname.inc.php */
.anchor_super {
  visibility: hidden;
}

/* hr.inc.php */
hr.short_line {
  width: 100%;
  height: 1px;
  margin-top: 0;
  margin-bottom: 1rem;
  background-color: #afafaf;
  border: none;
}

/* image.inc.php ref.inc.php */
div.img_margin {
  margin: 1rem;
}

/* ライトボックスのCSS設定 */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background-color .6s cubic-bezier(0.95, 0.05, 0.795, 0.035),
    backdrop-filter .6s cubic-bezier(0.95, 0.05, 0.795, 0.035);
}

.modal-content {
  display: flex;
  flex-direction: column-reverse;
  margin: auto;
  width: 70vh;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity .4s cubic-bezier(0.95, 0.05, 0.795, 0.035),
    transform .4s cubic-bezier(0.95, 0.05, 0.795, 0.035);
}

.modal-content img {
  height: auto;
}

.close {
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  text-align: right;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}


/***************** LAYOUT ******************/


#searchBox {
  height: auto;
  margin: 1rem auto;
  max-width: 180px;
  /* 少しだけ幅を広く */
}

#searchBox form div {
  height: 2rem;
  /* 高さを少し出す */
  display: flex;
  margin: 0;
  padding: 0;
}

#searchBox form label {
  display: none;
}

#searchBox input[name="word"] {
  width: 85% !important;
  box-sizing: border-box;
  background-color: #ffffff;
  border: 1px solid var(--card-border);
  border-right: none;
  /* ボタンとの隙間・二重線を消す */
  border-radius: 4px 0 0 4px;
  /* 角丸を控えめに */
  padding: 0 12px;
  color: var(--text-color);
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#searchBox input[name="word"]:focus {
  border-color: var(--acc-color);
  box-shadow: 0 0 8px rgba(255, 175, 145, 0.3);
  /* フォーカス時にふんわり光る */
}

#searchBox button[type="submit"] {
  width: 25%;
  /* アイコンを入れるため少し余裕を */
  background-color: var(--acc-color);
  border: 1px solid var(--acc-color);
  border-radius: 0 4px 4px 0;
  /* 角丸を控えめに */
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
  margin: 0;
  padding: 0;
}

#searchBox button[type="submit"]:hover {
  background-color: var(--acc-hover);
  border-color: var(--acc-hover);
}

#searchBox button[type="submit"] i {
  /* position, top, transform等はflexで中央寄せにしたので不要 */
  color: #000;
  /* 視認性の良い暗い色 */
  font-size: 1rem;
}

@media screen and (max-width: 768px) {
  #searchBox {
    height: auto;
    margin: 1rem auto;
    max-width: 160px;
  }
}

/***** READ MODE CONTAINER *****/

#readMode {
  width: 100%;
  max-width: 960px;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: row-reverse;
}

#buttonTray {
  top: 10.5rem;
  left: auto;
  right: 1rem;
  width: 24px;
  height: auto;
  display: block;
  padding: 16px 0;
  font-size: 16px;
  box-shadow: none;
  background-color: transparent;
  position: fixed;
  opacity: 0.7;
  z-index: 6;
}

#expandButton {
  display: block;
}

#expandButton.expandButton {
  display: none;
}

#compressButton {
  display: none;
}

#compressButton.compressButton {
  display: block;
}

.style_table {
  width: 100%;
}

tr:nth-child(even) td {
  background: #ffffff;
}

tr:nth-child(odd) td {
  background: #f5f5f5;
  /* 薄い灰色 */
}

@media screen and (max-width: 768px) {
  #readMode {
    min-width: 16rem;
    display: block;
  }

  #expandButton {
    display: none;
  }
}

/* NAVIGATION */

#menuButton {
  position: fixed;
  top: .7rem;
  right: 3rem;
  z-index: 9999;
}

#menuButton a {
  font-size: 2rem;
  color: #333333;
}


#menuList {
  width: 10rem;
  padding: 3rem;
  white-space: nowrap;
  font-size: 0.8rem;
  z-index: 998;
  overflow-x: hidden;
}

#menuList.compress {
  display: none;
}

#menuList hr.short_line {
  margin: .8rem 0 .3rem 0;
}

#menuList h2 {
  font-size: .95rem;
}

#menuList h5 {
  font-size: .95rem;
}

#menuList ul {
  font-size: .95rem;
}

#menuList li {
  text-decoration: none;
}


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

  #nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 3.5rem;
    height: 3.5rem;
    z-index: 999;
  }

  #nav_toggle {
    display: block;
    position: relative;
    margin: auto;
    top: 0;
    width: 1.75rem;
    height: 1.5rem
  }

  #nav_toggle i {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000;
    position: absolute;
    transition: transform .5s, opacity .5s, background-color .8s cubic-bezier(0.95, 0.05, 0.795, 0.035);
  }

  #nav_toggle.modalopen i {
    background-color: #fff;
  }

  #nav_toggle i:nth-child(1) {
    top: 0
  }

  #nav_toggle i:nth-child(2) {
    top: 0;
    bottom: 0;
    margin: auto
  }

  #nav_toggle i:nth-child(3) {
    bottom: 0
  }

  #nav_toggle.nav_toggle i {
    background-color: #000;
  }

  #nav_toggle.nav_toggle i:nth-child(1) {
    transform: translateY(10px) rotate(-45deg)
  }

  #nav_toggle.nav_toggle i:nth-child(2) {
    opacity: 0
  }

  #nav_toggle.nav_toggle i:nth-child(3) {
    transform: translateY(-12px) rotate(45deg)
  }

  #menuList {
    position: fixed;
    /* absolute から fixed に変更して画面に固定する */
    top: 3.5rem;
    /* ヘッダーの下に配置 */
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100svh - 3.5rem);
    width: 100%;
    /* 横幅いっぱいにする、またはお好みで調整 */
    box-sizing: border-box;
    /* paddingを含めた高さ・幅にする */
    overflow: scroll;
    padding: 3rem 8% 6rem 8%;
    /* 下部に余裕を持たせて見切れ防止 */
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    /* 少し背景を濃くして読みやすく */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    z-index: 998;
  }

  #menuList.navigation {
    opacity: 1;
    visibility: visible;
  }
}

#menuList h2 {
  font-size: .8rem;
}

#menuList h5 {
  font-size: .8rem;
}

#menuList ul {
  margin-bottom: 0.5rem;
  font-size: .8rem;
}

#menuList li {
  margin-bottom: 0.25rem;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

#menuList li:hover {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

#logo {
  margin: auto .5rem;
}

/* MAIN CONTENT */

article {
  width: 100%;
  padding: 40px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 30px;
  border-left: 6px solid #ffcba4;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
  margin-top: 30px;
  margin-bottom: 30px;
}

#main.expanded {
  margin: 5rem auto;
}

#main.expanded h2 {
  font-size: 2rem;
}

#main.expanded h3 {
  font-size: 1.7rem;
}

#main.expanded h4 {
  font-size: 1.5rem;
}

#main.expanded p {
  font-size: 1.2rem;
}

#main.expanded ul li {
  font-size: 1.2rem;
}

@media only screen and (max-width: 768px) {
  article {
    width: 84%;
    padding: 30px 20px;
    border-radius: 20px;
    margin-top: 15px;
    margin-bottom: 80px;
    /* Increased margin to prevent bottom content from being cut off */
    margin-left: auto;
    margin-right: auto;
  }
}

#main {
  width: 100%;
}

#main div {
  line-height: 180%;
}

#main h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-color);
  position: relative;
  padding-bottom: 15px;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  border-left: none;
}

#main h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--acc-color);
  border-radius: 2px;
}

#main h3 {
  font-size: 1.25rem;
  color: var(--text-color);
  margin: 35px 0 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 0;
  border-bottom: none;
}

#main li,
#main p {
  margin-top: 0rem;
  line-height: 180%;
  text-align: justify;
}

#main img {
  max-width: 100%;
  height: auto;
}

#main iframe {
  display: block;
}

#main textarea,
#main input {
  max-width: 90% !important;
}

/* note attach lastmodified related */

#note {
  margin-bottom: 1rem !important;
}

#attach {
  margin-bottom: 1rem;
  font-size: 0.75rem;
}

#lastmodified {
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

#related {
  padding: 0 3rem;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}


/***** EDIT MODE CONTAINER *****/

#editMode {
  width: 70%;
  max-width: 960px;
  margin: 3rem auto;
}

#editMode textarea {
  display: block;
  width: 100% !important;
  line-height: 150%;
}

#editMode li:first-child {
  list-style-type: none;
}

#editMode input[name="preview"] {
  display: none;
}

/***** FOOTER *****/

footer {
  padding: 3rem;
  /* ヘッダーのほっこりグラデーション */
  color: #333;
  /* Site admin: などの通常のテキスト背景色 */
  font-size: 80%;
  text-align: center;
}

@media only screen and (max-width: 768px) {
  footer {
    text-align: left;
  }
}

#title a {
  color: #000;
  font-size: 75%;
}

div#toolbar {
  margin-bottom: 1rem;
  text-align: center;
}

div#toolbar a {
  color: #000;
  margin: 0 .5rem;
}

div#toolbar a:hover {
  color: #333;
}

@media only screen and (max-width: 768px) {
  div#toolbar {
    text-align: left;
  }

  div#toolbar a {
    color: #000;
    margin: 0 1rem 0 0;
  }
}

div#signature {
  font-size: 0.75rem;
  text-align: center;
}

div#signature a {
  color: #000;
}

div#signature a:hover {
  color: #333;
}

@media only screen and (max-width: 768px) {
  div#signature {
    text-align: left;
  }
}

/* EOF */