@charset "UTF-8";
/* 一番後ろ（赤） */
body {
  background-color: #B11226;
  margin: 0;  /* 余白を消す */
}

/* 中央のページ部分 */
.wrapper {
  background: linear-gradient(
    180deg,
    #fffaf0 0%,
    #fff8e7 60%,
    #f7efd7 100%
  );
  
  margin: 0 60px;
  min-height: 100vh;
  padding: 40px;

  box-shadow:
    0 0 30px rgba(0,0,0,0.08),
    inset 0 0 20px rgba(255,255,255,0.6);

  border-radius: 20px;
}


.hajime {
    font-size: 22px;
    font-family: "Hiragino Mincho ProN", serif;
  display: flex;
  align-items: center; /* 上下そろえる */
  gap: 25px; /* 画像と文章の間 */
}


.slideshow{
  width: 95%;        /* ← 90% から少し下げる */
  max-width: 950px;  /* ← 上限も少し下げる */
  margin: 35px auto;
  aspect-ratio: 4 / 5;  /* ← ここはそのまま */
  position: relative;
  overflow: hidden;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fade 16s infinite;

  border-radius: 20px; /* ←丸み */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); /* ←影 */
}


.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 4s; }
.slide:nth-child(3) { animation-delay: 8s; }
.slide:nth-child(4) { animation-delay: 12s; }

@keyframes fade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  25% { opacity: 1; }
  30% { opacity: 0; }
  100% { opacity: 0; }
}

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}
.mitanuki {
    display: flex;
     gap: 270px; 
}
.mitanuki img {
width: 200px;
  height: 200px;
}
/* ===== 目次 ===== */
.mitajitsu-menu {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.mitajitsu-menu li {
  margin: 8px 0;
}

.mitajitsu-menu a {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: black;
  font-size: 28px;   /* 今の約1/4サイズ */
  font-family: "Yu Mincho", "游明朝", "YuMincho", serif;
  padding: 5px 0;
}

.mitajitsu-menu img {
  width: 30px;
  height: 30px;
  object-fit: cover;
}



  .mitajitsu-menu li {
    margin: 0;
  }

  .mitajitsu-menu a {
    
    gap: 5px;
  }

.num {
  color: #B11226;
  font-size: 50px;
font-family: "Yu Mincho", "游明朝", "YuMincho", serif;
}

 
#composition h1{
    font-size: 40px;
    font-family: "Yu Mincho", "游明朝", "YuMincho", serif;
}

#chart h1{
    font-size: 40px;
    font-family: "Yu Mincho", "游明朝", "YuMincho", serif;
}
#info h1{
    font-size: 40px;
    font-family: "Yu Mincho", "游明朝", "YuMincho", serif;
}
#info p{
    font-size: 19px;
    font-family: "Yu Mincho", "游明朝", "YuMincho", serif;
}

.graph1 img{
  width: 400px;
  height: auto;
}
.graph1 img:nth-child(1){
width:405px;
}

.graph1 img:nth-child(2){
width:360px;
margin-left: 15px;
}

.graph1 img:nth-child(3){
width:415px;
}
.graph2 img{
  width: 400px;
  height: auto;
}
.graph2 img:nth-child(1){
width:400px;
}

.graph2 img:nth-child(2){
width:378px;
margin-left: 20px;

}

.graph2 img:nth-child(3){
width:355px;
margin-left: 30px;
}
/* 4つ横並び */
.image-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
  flex-wrap: wrap; /* 画面が狭いと折り返す */
}

/* 画像ボックス */
.img-box {
  position: relative;   /* 文字を重ねるため必須 */

  width: 270px;
  height: 200px;

  overflow: hidden;
  display: block;

  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  text-decoration: none; /* リンクの下線消す */
}

/* 画像 */
.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  filter: brightness(50%);
  transition: 0.3s;
}

/* 中央の文字 */
.img-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  color: white;
  font-family: "Yu Mincho", "游明朝", "YuMincho", serif;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 2px;
  text-align: center;

  text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

/* ホバー演出 */
.img-box:hover img {
  transform: scale(1.05);
  
}
.outer {
  background-color: #B11226;   /* 外側の赤 */
  padding: 10px 20px;          /* 赤を見せる幅 */
  display: inline-block;       /* 文字幅だけにする */
}

header {
font-size: 30px;
 color: #B11226;
  font-family: "Yu Mincho", "游明朝", "YuMincho", serif;
text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);


  
  
}



#chart img {
  width: 450px;
  height: auto;

  display: block;
  margin: 0 auto;
}
.space {
  height: 100px;
}
.space2{
  height:70px
}

#chart img{
  width: 700px;
  height: auto;
}

/*スマホ*/
@media (min-width:1px) and (max-width: 767px) {
    .mitanuki {
     gap: 27px; 
}
 .mitajitsu-menu {
    display: flex;
  flex-direction: column;
 }

 #chart img {
  width: 250px;
  height: auto;
}

header {
font-size: 14px;
}

.wrapper {
  margin: 0 30px;

}
.mitanuki {
    display: flex;
  flex-direction: column;
}


#composition h1{
    font-size: 30px;
}

.hajime{
    flex-direction: column;
  }

  .slideshow{
    order: -1;
  }
 .graph1 img,
.graph2 img{
width:70% !important;   /* ← 全体を小さく */
height:auto;
margin:0;
}

.graph1,
.graph2{
display:flex;
flex-direction:column;
align-items:center; /* 中央 */
gap:20px;
margin:0;
padding:0;
}
.graph1 img:nth-child(1){
width:355px;
}

.graph1 img:nth-child(2){

margin-left: 0px;
}

.graph1 img:nth-child(3){
width:400px;
}

.graph2 img:nth-child(1){
width:355px;
}

.graph2 img:nth-child(2){
margin-left: 0px;

}

.graph2 img:nth-child(3){
margin-left: 0px;
}


.space2{
  height:0px
}
}
/*タブレット*/
/* タブレット */
@media (min-width:768px) and (max-width:1350px) {
  .mitanuki {
    gap: 5px;
  }


.mitajitsu-menu {
  font-size:12px;
    display: flex;
  flex-direction: column;
 }

 

 #chart img {
  width: 250px;
  height: auto;
}

header {
font-size: 14px;
}

.wrapper {
  margin: 0 30px;

}
.mitanuki {
    display: flex;
     gap: 2px; 
}

#composition h1{
    font-size: 30px;
}

.wrapper h1{
  font-size: 50px;
}

  
  .graph1 img{
  width: 100px;
  height: auto;
}
.graph2 img{
  width: 100px;
  height: auto;
}
.matome{
  width: 765px;
}
.mitanuki img {
width: 150px;
  height: 150px;
}
.mitajitsu-menu img{
width: 40px;
  height: 40px;
}
.graph1 img{
  width: 350px;
  height: auto;
  
}
.graph2 img{
  width: 350px;
  height: auto;
  
}
.space2{
  height:0px
}
.graph1 img,
.graph2 img{
margin-bottom:50px;
display:flex;
justify-content:center; /* 横中央 */
align-items:center;   

}

#chart img{
width: 550px;
  height: auto;
}

}


/*header*/
.menu-toggle {
  position: fixed;
  right: 20px;
  top: 20px;
  width: 50px;
  height: 30px;
  cursor: pointer;
  z-index: 300;
  font-weight: bold;
  font-size: 40px;
  z-index: 20000;
}
.menu {
  display: none;
  position: absolute;
  top: 60px;
  right: 20px;
  background:rgba(0, 0, 0, 0.836);
  color: white;
  width: 150px;
  box-shadow: 0 4px 6px rgba(0, 0, 0);
  z-index: 20000;
  

}
.menu a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: white;
  border-bottom: 1px solid #ddd;
  z-index: 20000;
}
.menu a:last-child {
  border-bottom: none;

}



@media screen and (max-width: 640px){
  .menu-toggle {
  position: fixed;
  right: 20px;
  top: 20px;
  width: 20px;
  height: 30px;
  cursor: pointer;
  z-index: 300;
  font-weight: bold;
  font-size: 20px;
}
}