* {
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    margin: 0;
    padding: 0;
}

ul {
    list-style-type: none;
    padding: 0;
}

a {
    text-decoration: none;
}

h1 {
    font-size: 20px;
}

h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    height: 150px;
    color: #fff;
    background-image: url('../images/presen.gif');
    background-position: left;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    font-weight: normal;
    width: 100vw;
    margin: 0 calc(50% - 50vw);
    padding: 30px;
}

h2 span{
	width:100%;
	display:flex;
	justify-content:center;
	align-items:center;
	text-align:center;
	border:5px solid #fff;
	margin:20px;
	padding:10px;
}

h2.is-active span{
	animation: flip 2s ease-in-out;
}

@keyframes flip {
  from { 
    transform: rotateY(180deg);
	opacity:0;
  }
  to { 
    transform: rotateY();
	opacity:1;
  }
}

h3 {
    font-size: 18px;
    background-image: url('../images/midashi.png');
    background-position: left;
    background-size: contain;
    background-repeat: no-repeat;
    padding: 10px 0px 30px 70px;
}

img {
    max-width: 100%;
}

video {
    max-width: 100%;
}

main {
    margin: 0 10px 100px;
}

article {
    margin-bottom: 50px;
}

header img{
	width:50%;
}

header ul {
    display: none;
}

header li a{
	color: #000;
}

footer {
    text-align: center;
    background-image: url('../images/presen.gif');
    background-position: left;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 100px 0;
}

footer ul a {
    color: #fff;
}

footer .logo {
    width: 30%;
}

.mv {
    color: #fff;
    position: relative;
    width: 100vw;
    margin: 0 calc(50% - 50vw);
}

.mv div {
    width: 100vw;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.3);
}

.new_agriculture section.is-active div {
    animation: slideInB 2s ease-in-out;
}

.new_agriculture section.is-active:nth-child(odd) img {
    animation: slideInL 2s ease-in-out;
}

.new_agriculture section.is-active:nth-child(even) img {
    animation: slideInR 2s ease-in-out;
}

@keyframes slideInB {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInL {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

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

@keyframes slideInR {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

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

.blog section {
    display: block;
}

.blog div {
    width: 100%;
    background-color: #01296e;
    padding: 20px;
    margin: 0 0 20px 0;
}

.blog h4 {
    color: #fff;
}

.blog a{
	display:block;
	color:#fff;
	text-align:right;
}

.blog img{
	object-fit: contain;
	width:100%;
	height:300px;
}

.news div {
    display: flex;
    align-items: center;
}

.news p {
    margin-left: 20px;
}

.visual {
    position: relative;
    margin: 100px 0;
}

.visual img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.reason section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 100px;
}

.reason section.is-active div {
    animation: slideInL 2s ease-in-out;
}

.reason section div {
    flex-basis: 70%;
}

.reason section span {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-basis: 20%;
    font-size: 50px;
    color: #fff;
    background-image: url('../images/reason-back.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.reason section.is-active span {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(-10%);
    }

    50% {
        transform: translateY(20%);
    }
}

.banner {
    background-image: url('../images/presen.gif');
    background-position: left;
    background-size: cover;
    background-repeat: no-repeat;
    margin-bottom: 20px;
    padding: 20px;
}

.banner.is-active {
  animation: popup 3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
 
@keyframes popup {
  0% {
    transform: translateY(200px) scale(0.3);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
  }
  80%, 100% {
    opacity: 1;
  }
}

.banner section {
    display: flex;
    flex-direction: column-reverse;
    border: 5px solid #fff;
    padding: 30px;
}

.banner p {
    font-size: 40px;
    color: #fff;
    margin: 0;
}

.banner p small {
    font-size: 20px;
    display: block;
}

.banner div {
    flex-basis: 40%;
}

.banner img {
    width: 100%;
}

.banner button {
    cursor: pointer;
    width: 100%;
    color: #fff;
    background-color: #000;
    border-radius: 10px;
    margin-top: 50px;
    padding: 20px;
}

.contact {
    font-size: 50px;
    color: #fff;
    text-align: center;
    background-image: url('../images/presen.gif');
    background-position: left;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 20px;
}

.contact a {
    color: #fff;
    display: block;
    border: 5px solid #fff;
    padding: 30px;
}

.contact b,
.contact small {
    display: block;
}

.contact small {
    font-size: 20px;
    display: block;
}

.interview {
    position: relative;
    width: 50%;
    margin: 50px auto;
}

.interview b {
    width: 100%;
    display: block;
    position: absolute;
    left: 0;
    bottom: 10px;
    color: #fff;
    font-size: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px 30px;
}

.copyright {
    color: #fff;
    text-align: center;
    margin-top: 30px;
}

@keyframes infinity-scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.scroll-infinity {
    width: 100vw;
    margin: 0 calc(50% - 50vw) 50px;
}

.scroll-infinity__wrap {
    display: flex;
    overflow: hidden;
}

.scroll-infinity__list {
    display: flex;
    list-style: none;
    padding: 0
}

.scroll-infinity__list--left {
    animation: infinity-scroll-left 50s infinite linear 0.5s both;
}

.scroll-infinity__item {
    width: calc(100vw / 3);
}

.scroll-infinity__item>img {
    width: 100%;
    opacity: 0.5;
}

.menu-wrapper {
  position: relative;
}

.menu-icon {
  width: 40px;
  height: 30px;
  position: fixed; /* ← fixedにして常に左上固定 */
  top: 40px;
  right: 20px;
  cursor: pointer;
  z-index: 3;
  display: inline-block;
}

.menu-icon span {
  display: block;
  height: 4px;
  margin: 6px 0;
  background: #333;
  border-radius: 2px;
  transition: 0.4s;
}

/* ハンバーガーがXに変形 */
#menu-toggle:checked + .menu-icon span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
#menu-toggle:checked + .menu-icon span:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked + .menu-icon span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* オーバーレイ背景 */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
  z-index: 1;
}

#menu-toggle:checked ~ .overlay {
  opacity: 1;
  pointer-events: auto;
}

/* メニュー本体（左から出す） */
.spmenu {
  position: fixed;
  top: 0;
  left: -300px; /* ← 初期位置を左へ */
  width: 300px;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  transition: left 0.4s ease;
  z-index: 2;
}

#menu-toggle:checked ~ .spmenu {
  left: 0; /* ← 開いたときは左0へ */
}

.spmenu ul {
  list-style: none;
  padding: 60px 20px;
}

.spmenu li {
  margin: 20px 0;
}

.spmenu a {
  text-decoration: none;
  color: #333;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.spmenu a:hover {
  color: #007bff;
}

@media (min-width: 1000px) {
    header {
        width: 1000px;
        margin: 0 auto;
    }

    header nav {
        display: block;
    }

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }

    header .logo {
        width: 30%;
    }
	
	header img{
	    width:100%;
    }

    header .container ul {
        display: flex;
    }

    header .container ul li {
        margin: 0 10px;
    }

    .visual {
        margin: 400px 0;
    }

    main {
        width: 1000px;
        margin: 0 auto 100px;
    }

    article {
        margin-bottom: 100px;
    }

    h2 {
        font-size: 40px;
		height:200px;
    }

    h3 {
        font-size: 20px;
        padding: 20px 0px 30px 70px;
    }

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

    .mv p {
        font-size: 20px;
    }

    .new_agriculture section,
    .reason section {
        display: flex;
    }

    .new_agriculture section:nth-child(odd),
    .reason section:nth-child(odd) {
        flex-direction: row-reverse;
    }

    .new_agriculture section {
        justify-content: space-between;
    }

    .new_agriculture section div {
        flex-basis: 50%;
    }

    .new_agriculture section img {
        width: 40%;
    }

    .reason section span {
        font-size: 110px;

    }

    .banner {
        margin-bottom: 30px;
    }

    .banner section {
        flex-direction: row;
        justify-content: space-between;
    }

    .banner img {
        width: 50%;
    }

    .banner p {
        font-size: 60px;
    }

    .blog section {
        display: flex;
		flex-wrap:wrap;
        justify-content: space-between;
    }

    .blog div {
		flex-basis: calc(90%/3); 
        padding: 20px;
        margin: 0 0 20px;
    }

    .interview b {
        bottom: 20px;
        font-size: 30px;
    }

    .scroll-infinity__item {
        width: calc(100vw / 5);
    }
	
    .scroll-infinity {
        margin: 0 calc(50% - 50vw) 200px;
    }
}