html{
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: sans-serif;
  line-height: 1.6;

  color: #4d4d4d;
}

.sp{
  display: none;
}

.fade-in-target.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

header{
    width: 100%;
    background-color: #fff;
    height: auto;
    position: fixed;
    z-index: 99;
}


header img{
    padding: 5px 10px 5px 20px;

}

.top {
  color: #333333;
  text-align: center;
  padding: 60px 20px;
  position: relative;
  background-image: url(img/topimg.png);
   background-position: center center;
  background-size:cover;
}
.top h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  animation: fadeIn 1s ease-in-out;
}

.top .leaf {

  animation: fadeIn 2s ease-in-out;

}

h1 img{
  max-width: 100%;
}

.top .top_copy{
    font-weight: bold;
    font-size: 1.5em;
    animation: fadeIn 1.5s ease-in-out;
    color: #4d4d4d;
}
.scroll-indicator {
  font-size: 1em;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: #fff;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.message{
  text-align: center;
    width: 100%;
  background: linear-gradient(to bottom, #f4d7c1, #f2f2f2,#ffffff);
  margin-bottom: -135px;
}

.message_1{
margin: auto;
padding-top:45px;
}
.message h2{
color: #9e6c30;
}

.message_2{
  padding-top:30px;
}


.message .anniversary-banner {
  
  position: relative;
  width: 470px;
  max-width: 100%;
  padding-top:50px;
  text-align: center;
  font-family: sans-serif;
  overflow: hidden;
  animation: fadeIn 1s ease-in-out;
  margin: 0 auto;
}

.banner-img {
  width: 100%;
  display: block;
  height: 227px;
}

.banner-text {
  position: absolute;
  top: 53%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #8B5E3C; /* ブラウン系 */
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1;
  font-size: 20px;
}

.banner-text .big {
  font-size: 2rem;
}


.fade-in-target {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
  visibility: hidden; 
}

.heart-message{
  transition: all 1.3s ease;
}


/* 光彩エリア */
.glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse at center, white 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
  transform: translate(-50%, -50%);
  filter: blur(30px);
  z-index: 0;
}

.leaf {
  position: absolute;
  top: 41%;
  transform: translateY(-50%);
  height: 100px;
  z-index: 1;

}

.left {
  left: 410px;
}

.right {
  right: 410px;
}

.text {
  position: relative;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
}

.text .small {
  font-size: 18px;
}

.text .large {
  font-size: 24px;
}

.text .large strong {
  font-size: 32px;
  color: #8B5E3C;
  margin-right: 5px;
}

.message_1 span{
  background-color: #bf8840;
  color:#fff;
  padding: 5px;
  line-height: 40px;
}

.message_2 p{
  margin-bottom: 30px;
  line-height: 40px;
}

.heart-message{
  position: relative;
  text-align: center;
  padding: 80px 20px;
  background: url("img/heart.png") no-repeat center center;
  background-size: 200px auto; 
  font-family: sans-serif;
}

.heart-message p{
  font-weight: bold;
  margin: 0;
  font-size: 21px;
  line-height: 1.8;

}

.break{
  position: relative;
  text-align: center;
  background: url("img/break.png") no-repeat center center;
  background-size: 100% auto;
  height: 400px;
  transform: translateY(-30%);
}

h2 {
  text-align: center;
  margin-bottom: 20px;

}

.history .strong{
  font-size: 35px;
}

.history h2{
  color: #ef6a5b;
}

.wave-title {
  position: relative;
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  padding-bottom: 50px;
  margin: 0 auto;

}

.wave-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px; 
  max-width: 90%;
  height: 30px;
  background: url('data:image/svg+xml;utf8,<svg width="100%" height="30" viewBox="0 0 100 30" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,20 C25,40 75,0 100,20" stroke="%23ef6a5b" stroke-width="2" fill="transparent"/></svg>') no-repeat bottom center;
  background-size: 100% 100%;
  margin: auto;
}


.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}
.cta div {
  background: white;
  padding: 20px;
  border-radius: 10px;
  flex: 1 1 300px;
}
.cta a {
  display: block;
  background: #007ACC;
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: 10px;
  text-decoration: none;
  border-radius: 5px;
}
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #777;
}



.timeline {
  width: 100%;
  max-width: 1000px;
  margin: auto;
  font-family: sans-serif;
  margin-top:100px;
}

.header {
  display: flex;

  font-weight: bold;
  text-align: center;


  justify-content: space-between;
  background: linear-gradient(to right, #ff9a9e, #fad0c4);
  padding: 1rem;

  color: white;
}

.company-title {

  padding: 10px;
    width: 60%;
}

.world-title {

  padding: 10px;
    width: 40%;
}

.timeline-row {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  align-items: flex-start;
}

.year {
  width: 60px;
  text-align: center;
  font-weight: bold;
  color: #555;
  margin-top: 1rem;
}
.year{
    flex: 2;
    font-size: 30px;
    color: #ff9a9e;
}
.company-event {
  flex: 4;
  padding: 0 10px;
}
.world-event {
  flex: 4;
font-size: 13px;
color: #777;

}
.world-event ul {

  padding-left: 0;
  margin: 0 20px;

}
.world-event li {
  list-style: none;
  background-color: #e6e6e6;
  border-radius: 5px;
  padding: 7px 10px 7px 30px;
  margin: 10px;
}

.company-event img {
  max-width: 100%;
  height: auto;
  margin-top: 5px;
}

.label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  background-color: #e55;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.red {
  color: #e55;
  font-size: 20px;
  font-weight: bold;
      margin-top: 10px;

}



.middle-logo {
  text-align: center;
  font-size: 40px;
  font-style: italic;
  margin: 40px 0;
  color: #d33;
}

.event-image{
  margin:20px 0;
color: #b9b9b9;
font-size: 12px;
max-width: 100%;
}


.event-image img {

    max-width: 100%;
  height: auto;
  border-radius: 4px; 
}

.event-text{
  margin-block-start: 1em;
    margin-block-end: 1em;
}

.event-text div{
  margin-top: 10px;
}

.logos{
  margin-top: 200px;
}
.logos img{
  width: 900px;
max-width: 100%;
}
.logos_img{
  text-align: center;
}

.button-section {
  text-align: center;
  font-family: sans-serif;
  padding: 20px;
  margin: 100px 0;
}

.buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.buttons .btn {
  flex: 1 1 200px; 
  max-width: 300px; 
  box-sizing: border-box;
}

.btn {
  display: inline-block;
  padding: 15px 20px;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  border-radius: 2px;
  transition: 0.3s;
  width: 100%;
}

.solid {
  background-color: #f06b5a;
  color: white;
}

.solid:hover {
  background-color: #e35948;
}

.outline {
  border: 1px solid #f06b5a;
  color: #f06b5a;
}

.outline:hover {
  background-color: #f06b5a;
  color: white;
}

.seminar-link {
  display: flex;
  justify-content: center;
}

.seminar-link .btn.outline {
  max-width: 300px;
  width: 100%;
  box-sizing: border-box;
  padding: 15px 20px;
  text-align: center;
}

footer img{
 margin-bottom: 20px;
}

footer span a{
  text-decoration: none;
  color: #777;
}



@media (max-width: 768px) {
  .buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .buttons .btn {
    max-width: none;
  }

  .seminar-link {
    margin-top: 10px;
  }

  .timeline-row {
    display: block;
  }

  .timeline-row .year,
  .timeline-row .company-event,
  .timeline-row .world-event {
    width: 100%;
    margin-bottom: 1rem;
    max-width: 100%;
    box-sizing:border-box;
  }

  .timeline .middle-logo {
    font-size: 2rem;
    text-align: center;
    margin: 2rem 0;
  }

  .header {
    display: none;
  }
  .year{
  box-sizing:border-box;
  font-weight: bold;
  text-align: center;

  background: linear-gradient(to right, #ff9a9e, #fad0c4);
  padding: 1rem;

  color: white;
  font-size: 20px;
  }

  .buttons .btn {
  flex: none;

  }

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

  .history h2{
        font-size: 22px;
  }

  .history .strong {
      font-size: 27px;
  }


  .company-event{
    padding: 0 30px;
  }

  .timeline-row {

    border-bottom: none;

  }



} 


@media (max-width: 399px) {

  

  .top .top_copy{
        font-size: 1em;
  }

  .message{
      font-size: 12px;
  }

  .banner-text{
        left: 46%;
    transform: translate(-40%, -50%);
    font-size: 14px;
  }

  .banner-text .big {
    font-size: 1.6rem;
  }
  .banner-img {
    height: 204px;
  }

  .heart-message p{
    font-size: 15px;
  }

.logos{
  padding: 0 10px;
}
  .sp{
    display: inline;
  }

  .pc{
    display: none;
  }


}
