* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Unifont';
  src: url('https://kokyujene.github.io/fonts/Unifont.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Minecraft';
  src: url('https://kokyujene.github.io/fonts/Minecraft.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Minecraft', 'Unifont', sans-serif;
  font-size: 1.2rem;
  padding: 2em;
  line-height: 1.5;
  cursor: url("images/mouse.cur"), auto;
  background-image: url('https://kokyujene.github.io/https://kokyujene.github.io/images/bg-light.svg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transition: background-image 0.5s ease;
}

body,
html:not(.dark) body {
  background-image: url('https://kokyujene.github.io/images/bg-light.svg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transition: background-image 0.5s ease;
}

/* ダークモードの背景 */
.dark body {
  background-image: url('https://kokyujene.github.io/images/bg-dark.svg');
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.c1_h1, .c2_h1 {
  margin-top: 40px;
  margin-bottom: 16px;
}



h2 {
  font-weight: bold;
  text-shadow: 1px 1px 2px #884400;
}



.visitor-counter {
  font-family: 'Minecraft', 'Unifont', sans-serif;
  font-size: 60px;
  background-color: #ffe4b5;
  text-align: center;
  padding: 10px;
  margin-top: 10px;
  color: #ffaa00;
  border-radius: 10px;
}

.hidden-image {
  position: fixed;
  width: 50px;
  height: 50px;
  z-index: 9999;
  cursor: pointer;
  transition: transform 0.3s;
}

.hidden-image:hover {
  transform: scale(1.2) rotate(10deg);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5em;
}

.nav-links a {
  color: #333;
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

.logo img {
  height: 100px;
  width: auto;
}


/* メイン */
main {
  padding: 2em;
  flex: 1;
}

.center-image {
  display: flex;
  justify-content: center;
}

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

img {
  width: 1000px;
  height: auto;
}

.center-image-left {
    display: flex;
  justify-content: center;
}

.center-image-left img {
  margin-left: -1000px; 
}

header {
  position: fixed;       
  top: 0;                 
  left: 0;
  width: 100%;            
  background-color: #ffe7ba;
  color: #333;
  padding: 1em 2em;
  z-index: 1000;          
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.c1_h1 {
  	color: #ffaa00;
	padding-left:10px;
	border-left: 10px solid #deb02c;
	border-right: 10px solid #deb02c;
  	border-bottom: 2px dashed #deb02c;
}

.c2_h1 {
  	color: #ffaa00;
	padding-left:10px;
	border-left: 10px solid #deb02c;
	border-right: 10px solid #deb02c;
}

 .maru_img{
border-radius:40px;
}


.button-wrapper {
    text-align: center;
    margin-top: 40px;
  }

.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
  }

.soft-box h2 {
    margin-top: 0;
  }

.soft-box h2 {
    margin-top: 0;
  }


.text_c1 {
  color: #858585;
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
  .soft-box {
    width: 95%;
    padding: 16px;
    font-size: 16px;
  }
}

.text_s1 {
  font-size: 20px;
}


main {
  margin-top: 80px;
  padding: 2em;
}

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

.image-container img {
  width: 100%;
  height: auto;
  max-width: 1000px;
  display: block;
  margin: auto;
  position: relative;
}

/* PC画面 */
@media screen and (min-width: 768px) {
  .main-content {
    display: flex;
    gap: 2em;
  }

  .image {
    width: 50%;
  }

  .text {
    width: 50%;
  }
}

   .t_1 {
      font-size: 40px
}

@media screen and (max-width: 767px) {
  .main-content {
    display: block;
  }

  .image,
  .text {
    width: 100%;
  }

  .image img {
    width: 100%;
    height: auto;
  }

    .t_1 {
      font-size: 20px
}

}

.content-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 40px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.side-image {
  width: 250px;
  height: auto;
  flex-shrink: 0;
}

.side-text {
  max-width: 500px;
  line-height: 1.6;
}
  .my-button {
    background-color: #ffaa00;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    margin-top: 30px;
  }

  .my-button2 {
    background-color: #ffaa00;
    color: white;
    padding: 15px 125px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    margin-top: 30px;
  }

.my-button:hover {
  background-color: #ffb92c;
  transform: scale(1.05);
  cursor: url("images/mouse.cur"), pointer;
}

.my-button:active {
  transform: scale(0.95) rotate(-1deg);
}

.my-button2:hover {
  background-color: #ffb92c;
  transform: scale(1.05);
  cursor: url("images/mouse.cur"), pointer;
}

a:hover {
  cursor: url("images/mouse.cur"), pointer;
}

.my-button2:active {
  transform: scale(0.95) rotate(-1deg);
}

header {
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

main h1 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 2.5em;
  text-align: center;
}


html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  cursor: url("images/mouse.cur"), auto;
}

h1 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 2em;
}

.nav-links a:hover {
  color: #ffaa00;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.footer-center {
  flex: 2;
  text-align: center;
}

.footer-link {
  text-decoration: none;
  color: #555;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

@media screen and (max-width: 600px) {
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 12px;
  }

  .footer-left,
  .footer-right,
  .footer-center {
    margin: 5px 0;
    flex: none;
  }
}

.footer {
  padding: 15px 0;
  box-sizing: border-box;
}

.footer-left,
.footer-center,
.footer-right {
  padding: 0;
  margin: 0;
}

.footer-right {
  text-align: right;
  padding-right: 0;
  margin-right: 0;
}

.footer-link {
  margin: 0;
  padding: 0;
  display: inline-block;
}

/*スマホ表示時*/
@media screen and (max-width: 768px) {
  .content-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f5f5f5;
  padding: 16px 31px;
  font-size: 10px;
  flex-wrap: wrap;
}

.visitor-counter {
  font-size: 30px;
}

  .side-text {
    max-width: 150%;
    font-size: 12px;
  }

  .side-image {
    width: 80%;
    max-width: 300px;
  }
    .my-button {
    background-color: #ffaa00;
    color: white;
    padding: 5px 12px;
    border: none;
    border-radius: 8px;
    font-size: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    margin-top: 12x;
  }

  .my-button2 {
    background-color: #ffaa00;
    color: white;
    padding: 5px 12px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    margin-top: 10px;
  }

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffe7ba; 
  color: #333;
  padding: 1em 2em;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 12px;
 }

.logo img {
  height: 30px;
  width: auto;
}

.c1_h1 {
  font-size: 16px;
}

.c2_h1 {
  font-size: 16px;
}

}

.gyo_1 {
  word-break: keep-all;
  line-height: 1.6;  
  flex-wrap: wrap;     
}



@media screen and (max-width: 768px) {
  .content-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .side-image {
    width: 500%;
  }

  .side-text {
    max-width: 500%;
  }
}

.box1 {
  width: 140%;
  margin-left: -20%;
  box-sizing: border-box;
  background-color: #ffefcf;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.parent-container {
  display: flex;
  justify-content: center;
}

@media screen and (max-width: 768px) {
  .soft-box {
    width: 140%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* フッター */
.footer {
  background-color: #ffe4b5;
  padding: 10px 30px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 40px;
}

.footer-left,
.footer-right {
  flex: 0 0 auto;
  z-index: 1;
}

.footer-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 0;
}

.footer-icon {
  height: 24px;
  width: auto;
}

.footer-link {
  text-decoration: none;
  color: inherit;
  margin-left: 10px;
}

.text_c1 {
  color: #858585;
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
  .footer {
    flex-direction: column;
    height: auto;
    padding: 20px 10px;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    position: static;
    transform: none;
    width: 100%;
    margin: 5px 0;
    justify-content: center;
  }
}

.footer-button {
  margin-left: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
}

.footer-separator {
  margin: 0 8px;
  color: #999;
}

.theme-toggle-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.theme-toggle-icon:hover {
  transform: scale(1.1);
}

.dark .member-card {
    background-color: #333;
    color: #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  }

.dark .footer {
    background-color: #222;
    color: #ccc;
  }

.dark a {
    color: #ffcc66;
  }

.dark .divider {
    border-color: #666;
  }

.dark .box1 {
  background-color: #362400;
}

.dark .visitor-counter {
  background-color: #362400;
  color: #f5f5f5;
}

.dark header {
  background-color: #2c2317;
  color: #f5f5f5;
}

.dark .nav-links a {
  color: #f5f5f5;
  text-decoration: none;
}
.dark .my-button:hover {
  background-color: #ffb92c;
  transform: scale(1.05);
  cursor: url("images/mouse.cur"), pointer;
}

.dark .my-button:active {
  transform: scale(0.95) rotate(-1deg);
}

.dark .my-button2:hover {
  background-color: #ffb92c;
  transform: scale(1.05);
  cursor: url("images/mouse.cur"), pointer;
}

.dark .my-button {
    background-color: rgb(255, 184, 41);
    color: white;
  }

.dark .my-button2 {
    background-color: rgb(255, 184, 41);
    color: white;
  }
