@charset "Shift_JIS";

/* ========================================
   Base
======================================== */
*,
*::before,
*::after { box-sizing: border-box; }

body{
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  background: linear-gradient(to bottom, #f2f6f4 0%, #e9f0ec 100%);
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; height: auto; display: block; }

p{
  font-size: 20px;
  line-height: 1.9;
}

:root{
  --muted: #5f6f74;
}

/* ========================================
   Layout
======================================== */
#wrap{
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px;
}

.section{
  padding: clamp(16px, 3vw, 48px);
  margin-bottom: 40px;
}

.section-head{
  margin-bottom: 16px;
  text-align: center;
}

.section-title{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 20px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.section-desc{
  text-align: left;
}

/* ========================================
   Header / Navigation
======================================== */
.topbar{
  background: rgba(255,255,255,.90);
  border-bottom: 1px solid rgba(40,160,170,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.topbar-inner{
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 18px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}

.brand-logo{
  height: 30px;
  width: auto;
}

.brand-name{
  font-weight: 700;
  font-size: 20px;
  color: #1f2a2e;
}

.lp-nav{
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 10px 0 12px;
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(40,160,170,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lp-nav a{
  font-weight: 700;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
}

.lp-nav a:hover{
  background: linear-gradient(135deg, #38c7a6, #4fb7ff);
  color: #fff;
}


/* ========================================
   Hero
======================================== */
.hero-photo{
  position: relative;
  margin-top: 12px;
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-images{
  position: absolute;
  inset: 0;
}

.hero-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-img:first-child{ opacity: 1; }

.hero-inner{
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0px 18px;
  background: rgba(255,255,255,.85);
}

.hero-illust{
  position: absolute;
  right: 0px;
  bottom: 20px;
  width: 55%;
  max-width: 480px;
  z-index: 3;
  pointer-events: none;
}

.hero-illust img{
  width: 100%;
  height: auto;
}

.hero-inner{
  position: relative;
  z-index: 2;
}

.hero-title{ font-size: 40px; }

.hero-titlesub{ font-size: 20px; }

/* ========================================
   Updates（News・SNS）
======================================== */

#news{
  background: #ffff;

}

#news .news-title{
  font-size: 20px;
}

.news-date{
  font-size: 15px;
  color: #666;
}

#updates{
  margin-top: 40px;
  padding-bottom: 32px;
  background: url("../publicity_j/image/sciencefair2026/updates-bg.png") center/cover no-repeat;
  border-radius: 20px;
}

#updates .section-title{
  font-weight: 500;
  font-size: 28px;
  color: #5c4033;
  background: linear-gradient(135deg, #ffd9ec, #ffeeb8);
}

#updates .icon{
  height: 1.2em;
  transform: translateY(2px);
}

.insta-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 16px;
}

.insta-card{
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.insta-card img{
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.insta-card p{
  margin: 8px 12px;
  font-size: 14px;
  color: #444;
}

.insta-card p:first-of-type{
  font-size: 12px;
  color: #888;
}

.insta-like{
  font-size: 13px;
  color: #888;
  margin: 0 12px 12px;
}

/* ========================================
   About
======================================== */
.sciencefair-about{
  background: #dff0f8;
  padding: 40px 20px 72px;
}

.sciencefair-about-inner{
  max-width: 920px;
  margin: 0 auto;
  position: relative;
}

.sciencefair-about-heading{
  margin: 0 0 18px;
  font-size: 38px;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
  color: #222;
}

.sciencefair-about-text{
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 32px 320px 32px 36px;
}

.sciencefair-about-text p{
  margin: 0;
  line-height: 1.9;
  text-align: left;
  color: var(--muted);
}

.sciencefair-about-illust{
  position: absolute;
  right: -20px;
  bottom: -10px;
  width: 260px;
}

.sciencefair-about-illust img{
  display: block;
  width: 100%;
  height: auto;
}

/* ========================================
   highlights
======================================== */

#highlights .section-title {
  background: linear-gradient(135deg, #dfffe9, #e0f7ff);
  color: #21343a;
}

/* ========================================
   Cards / Grid
======================================== */
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card{
  background: #fff;
  border: 2px solid #00c7a8;
  border-radius: 20px;
  padding: 24px;
  margin: 1px;
}

.card-link{
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: #4fb7ff;
  color: #fff;
  font-weight: 700;
  width: 240px;
  text-align: center;
}

.pill{
  display: inline-block;
  width: 100%;
/*  text-align: center;*/
}

/* ========================================
   research
======================================== */

#research .section-title {
  background: linear-gradient(135deg, #d9ecff, #e5f4ff);
  color: #1f2a2e;
}

/* ========================================
   Experience
======================================== */

#experience .section-title {
  background: linear-gradient(135deg, #fff3c4, #ffe0a3);
  color: #4a3b00;
}

#experience h3{
  margin: 0 auto 32px;
  max-width: 780px;
  padding: 14px 20px;
  font-size: 24px;
  line-height: 1.6;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,0.65);
  border-radius: 16px;
}

.exp-block{
  border-radius: 24px;
  padding: 24px;
  margin-top: 28px;
}

.exp-block-title{
  margin: 0 0 18px;
  font-size: 22px;
}

.exp-green{ background: #e9f9ef; }
.exp-pink{ background: #ffeaf2; }
.exp-yellow{ background: #fff8dd; }

.exp-row{
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid rgba(0,0,0,.08);
  transition: transform .2s ease;
}

.exp-row:first-of-type{
  border-top: 0;
  padding-top: 0;
}

.exp-row.reverse{
  flex-direction: row-reverse;
}

.exp-row:hover{
  transform: translateY(-3px);
}

.exp-img{
  width: 42%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,255,255,.75);
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.exp-img img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.exp-img.photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exp-text{
  width: 58%;
}

.exp-text h4{
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.5;
}

#experience .exp-text p{
  margin: 0;
  font-size: 20px;
  line-height: 1.9;
  color: var(--muted);
}



/* ========================================
   tour
======================================== */

#tour .section-title {
  background: linear-gradient(135deg, #ffe0cc, #ffd2a8);
  color: #4a2c00;
}

/* ========================================
   tour
======================================== */

#access .section-title {
  background: linear-gradient(135deg, #dff5e7, #c9f2d8);
  color: #0f3a2b;
}

/* ========================================
   Back to top
======================================== */
#jump{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
}

.back-to-top{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(40,160,170,.18);
  background: rgba(255,255,255,.85);
  color: #4fb7ff;
  font-weight: 900;
}

/* ========================================
   footer
======================================== */
div#footer p{
/*	position:absolute;*/
	bottom:0px;
	width: 100%;
	height: 25px;
	text-align: center;
	background-color: #005638;
	font-weight: bold;
	font-family: sans-serif;
	font-size:small;
	color: #ffffff;
	padding-top : 2px;
	border-top-width: 2px;
	border-right-width: 0;
	border-bottom-width: 0px;
	border-left-width: 0;
	border-color: #e5ffe5;
	border-style: solid;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 900px){

#wrap{
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
    overflow-x: clip;
  }

  #wrap > *{
    max-width: 100%;
    min-width: 0;
  }

  #sf,
  #updates,
  #highlights,
  #research,
  #experience,
  #tour,
  #access,
  .hero-photo,
  .lp-nav{
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .topbar-inner{
    padding: 8px 12px;
    justify-content: flex-start;
  }

  .brand{
    width: 100%;
    min-width: 0;
  }

  .brand-name{
    min-width: 0;
    font-size: 16px;
    line-height: 1.4;
    word-break: break-word;
  }

  .lp-nav{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 8px 12px;
    justify-content: center;
  }

  .lp-nav a{
    padding: 6px 10px;
    font-size: 14px;
  }

  .section{
    padding: 16px;
    margin-bottom: 32px;
  }

  .section-head{
    margin-bottom: 16px;
    padding: 0;
  }

  .grid-3{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-photo{
    justify-content: center;
    min-height: 320px;
  }

  .hero-inner{
    display: flex;
    flex-direction: column;
	margin-bottom: 0;
    padding: 5px 14px;
    background: rgba(255,255,255,.78);
  }
  
 .hero-illust{
    display: none;
  }

  .hero-title{
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 6px;
  }

.hero-titlesub{ font-size: 15px; }

  .hero-note{
	margin: 0;
	padding: 0;
    font-size: 13px;
    line-height: 1.4;
  }

  .section-title{
    max-width: 100%;
    font-size: 24px;
  }

  #updates .section-title{
    display: flex;
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
    row-gap: 4px;
    padding: 12px 20px;
  }

  #updates .icon{
    height: 1em;
    max-width: 24px;
    flex: 0 0 auto;
  }

  .sciencefair-about{
    padding: 32px 16px 56px;
  }

  .sciencefair-about-heading{
    font-size: 28px;
    margin-bottom: 16px;
  }

  .sciencefair-about-text{
    padding: 24px 20px;
	padding: 24px 20px !important;
  }

  .sciencefair-about-illust{
    position: static;
    width: 100%;
    max-width: 280px;
    margin: 24px auto 0;
  }

  .sciencefair-about-illust img{
    width: 100%;
    height: auto;
  }

  .exp-row,
  .exp-row.reverse{
    flex-direction: column;
    align-items: stretch;
  }

  .exp-img,
  .exp-text{
    width: 100%;
  }

  .exp-block{
    padding: 20px;
  }

  iframe{
    width: 100%;
    max-width: 100%;
  }

  #jump{
    right: 8px;
    bottom: 8px;
  }

  .back-to-top{
    padding: 6px 10px;
    font-size: 12px;
    max-width: calc(100vw - 16px);
  }
}

@media (max-width: 600px){
  .hero-illust{
    display: none;
  }
}

#jump{
  display: none;
}

