/*
Theme Name: mnmnmu
Author: すぎもとさちよ
Description: 縦スクロール中央＋左右固定サイド
Version: 1.1
*/

body,
html {
  margin: 0;
  height: 100%;
  overflow: hidden;
  /* ← 全体スクロールを止める */
  background-color: #d9d9d9;
}

h1, h2, h3, h4 {
  font-family: "Montserrat", "Murecho", sans-serif;
  font-weight: 100;
}

p  {
  font-family: "Montserrat", "Murecho", sans-serif;
  font-weight: 100;
}

ul, li {
  font-family: "Montserrat", "Murecho", sans-serif;
  font-weight: 100;
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}


/* ヘッダー固定 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: #333;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

header h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 100;
}

/* レイアウト全体（headerの下から始める） */
.layout {
  display: flex;
  justify-content: center;
  position: relative;
  height: calc(100vh - 0px);
  padding-top: 100px;
  box-sizing: border-box;
}

/* スマホ レイアウト全体（headerの下から始める） */
@media (max-width: 768px) {
  .layout {
    display: flex;
    justify-content: center;
    /* 中央に配置 */
    position: relative;
    /* サイドを中央に相対配置させるため */
    height: calc(100vh - 0px);
    padding-top: 50px;
    /* header分 */
    box-sizing: border-box;
  }
}

/* 中央カラム固定幅 */
.main-content {
  width: 600px;
  /* 常に600px */
  background: #fff;
  padding: 20px;
  height: 100%;
  overflow-y: auto;
  /* 中央のみスクロール */
  box-sizing: border-box;
  z-index: 1;
  /* サイドより上に出す場合 */
}

/* 左右サイド（中央カラム基準で可変） */
.sidebar {
  position: absolute;
  /* 中央カラムを基準に位置決め */
  top: 0;
  bottom: 0;
  width: calc((100% - 600px)/2);
  /* 画面幅から中央幅を引いて左右均等に */
  background: #f5f5f5;
  padding-top: 100px;
  /* header分 */
  overflow-y: auto;
  z-index: 0;
}

.sidebar.left {
  left: 0;
}

.sidebar.right {
  right: 0;
}

/* スマホではサイド非表示 */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .main-content {
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
  }
}

.side-h3 {
  letter-spacing: 0.4em;
}

.section {
  padding: 10px 20px;
  box-sizing: border-box;
  text-align: center;
  opacity: 0;
  /* 初期フェードアウト */
  transform: translateY(30px);
  /* スライド量 */
}

.section-title {
  text-align: center;
  font-weight: 200;
  letter-spacing: 0.4em;
}

.section img {
  display: block;
  max-width: 60%;
  height: auto;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.section h3 {
  font-weight: 300;
  letter-spacing: 0.4em;
}

.side-h3 {
  color: #333;
  padding: 20px;
  margin: 0 auto;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .section img {
    max-width: 90%;
  }
}

/*----------右サイド内メニュー----------------*/


/* セクション自体を中央寄せ */
/* 右サイドバー全体をFlexboxにして下寄せ */
.sidebar.right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100vh;
  padding-bottom: 30px;
  box-sizing: border-box;
}

/* セクション自体の幅を指定して中央寄せ */
.sidebar.right .menu-section {
  width: 200px;  /* 好きな幅に調整 */
  margin-bottom: 20px; /* sectionの下の余白 */
}

/* タイトルやリストの文字は左寄せ */
.sidebar.right .menu-section h4,
.sidebar.right .menu-section ul {
  text-align: left;
}

.sidebar.right .menu-section h4 {
  font-weight: 400;
}

/* ul のインデント調整（必要なら） */
.sidebar.right .menu-section ul {
  padding-left: 0px; /* デフォルトのインデントを調整 */
}

.sidebar.right .menu-section .side-ui li {
  margin-bottom: 10px; /* 下だけ余白 */
}


.side-line {
  border-top: 1px dotted #424242;
  margin-top: 10px;
  padding-top: 10px;
}




/*----------------  フッター  ----------------------*/


footer {
  font-family: "Montserrat", sans-serif;
  font-weight: 100;
  color: #2d2d2d;
  font-size: small;
  letter-spacing: 0.3em;
}

footer {
font-size: medium;
}

/*---------------- テキストアニメーション ----------------------*/

.smooth-typing span {
  opacity: 0;
  display: inline-block;
  animation: fadeIn 0.6s ease forwards;
}

.smooth-typing span:nth-child(1) { animation-delay: 0s; }
.smooth-typing span:nth-child(2) { animation-delay: 0.1s; }
.smooth-typing span:nth-child(3) { animation-delay: 0.2s; }
.smooth-typing span:nth-child(4) { animation-delay: 0.3s; }
.smooth-typing span:nth-child(5) { animation-delay: 0.4s; }
.smooth-typing span:nth-child(6) { animation-delay: 0.5s; }
.smooth-typing span:nth-child(7) { animation-delay: 0.6s; }
.smooth-typing span:nth-child(8) { animation-delay: 0.7s; }
.smooth-typing span:nth-child(9) { animation-delay: 0.8s; }
.smooth-typing span:nth-child(10) { animation-delay: 0.9s; }
.smooth-typing span:nth-child(11) { animation-delay: 1s; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px); /* 下から少し浮かせる */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideIn 1s ease forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

