/* =Global Elements
-------------------------------------------------------------- */
@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=BIZ+UDPMincho&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');


html {
  scrollbar-width: none;  /* Firefox */
  margin: 0;
  height: 100%;   
  font-size: 12px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;  
}
  
body {
  font-family: "Noto Sans", "BIZ UDPMincho";
  color: #000;
  margin: 0;
  padding: 0;
  -ms-overflow-style: none;  /* IE and Edge */
  background: #fff;
}

* {
  box-sizing: border-box;
}

ruby {
  ruby-align: center;       /* Align ruby text over base characters */
  ruby-position: over;      /* Default: ruby on top. Use 'under' for below */
  font-family: "Noto Sans", "BIZ UDPMincho";
}

rt {
  font-size: 0.6em;
  font-weight: 600;
  line-height: 1;
}

body::-webkit-scrollbar{
    display: none;
}

input[type="search"] {
  width: 100%; /* Make the input take up the full width of its container */
  padding: 10px;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 10px;
}

input[type="search"]:focus {
  border-color: #b3b5b8;
  outline: none;
}


.gsap-pin-spacer {
  overflow: hidden !important;
}

.no-drag {
  user-drag: none;
  -webkit-user-drag: none; /* Chrome/Safari */
  user-select: none;       /* optional: prevents text selection */
}

#rotatePortrait, #rotateLandscape {
  position: fixed;
  top: 0;
  left: 0;
  background: #fff;
  z-index: 9999;
  width: 100dvw;
  height: 100dvh;
  display: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#rotatePortrait div, #rotateLandscape div {
  font-family: "Ubuntu Sans", "IBM Plex Sans JP", sans-serif;
  font-weight: 400;
  font-size: 1.5em;    
  color: #000;  
  position: absolute;
  background: #fff;
  text-align: center;
  margin: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);  
}

/*-----------------------
	Flexbox
-----------------------*/

.flex {
  display: flex;
}

/* Flex direction */
.flex-row {
  flex-direction: row;
}

.flex-rowrev {
  flex-direction: row-reverse;
}

.flex-col {
  flex-direction: column;
}

.flex-colrev {
  flex-direction: column-reverse;
}

/* Flex wrap */
.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.flex-wraprev {
  flex-wrap: wrap-reverse;
}

/* Flex justify content */
.flex-start {
  justify-content: flex-start;
}

.flex-end {
  justify-content: flex-end;
}

.flex-center {
  justify-content: center;
}

.flex-btw {
  justify-content: space-between;
}

.flex-ard {
  justify-content: space-around;
}

.flex-even {
  justify-content: space-evenly;
}

/* Flex align items */
.flexalign-stretch {
  align-items: stretch;
}

.flexalign-start {
  align-items: flex-start;
}

.flexalign-end {
  align-items: flex-end;
}

.flexalign-center {
  align-items: center;
}

.flexalign-base {
  align-items: baseline;
}

.grid-center {
  display: grid;
  place-items: center;
}


/* 
home page styles 
*/

#homeContent {
  width: 100vw;
  overflow: hidden;
}

#home_header, #story_header, #feature_header {
  position: fixed;
  z-index: 110;  
  width: 100vw;
  top: 5%;
  left: 3%;
  display: none;
 }

.placeholder {
  width: 100%;
}

#homefooter {
  position: absolute;
  bottom: 0;
  left: 50px;
}

#homefooter p {
  font-size: 12px;
}

#fullscreen {
  width: 30px;
  cursor: pointer;
  transition: transform 0.25s ease;    
  transform-origin: center center;  
}

#fullscreen:hover {
  transform: scale(1.2);  
}

#artwork {
  position: absolute;
  width: 70dvw;
  min-width: 1200px;
  height: 100%;
  left: 70%;
  bottom: 0;
  transform: translateX(-70%);
  background-size: cover; /* fit without cropping */
  background-repeat: no-repeat;
  background-position: center top; /* top-aligned */
}

#artwork img {
  width: 100%;
}

#particle-template {
  display: none;
}

svg.girl {
  position: absolute;
  width: 80%;
  z-index: 3;
  transform-origin: center center;  /* keeps scaling from top middle */
  text-align: center;
  margin: 0;
  top: 50px;
  right: -70px;
}

svg.particle {
  position: absolute;
  z-index: 1;
  left: 0;
  width: 50px;
  height: auto;
  pointer-events: none;
}

#backdrop {
  position: absolute;
  bottom: -10px;
  z-index: 1;
  padding: 0;
  left: 50px;
  width: 87dvw;
}

#homelogo {
  position: absolute;
  top: 50px;
  left: 50px;
  z-index: 23;
  padding: 0;
}

#homelogoImg {
  width: 194px;
  height: 130px;
  background-image: url('../images/jcsclogo_color.svg');
  background-size: cover;        /* fill the container */
  background-position: center;   /* keep image centered */
  background-repeat: no-repeat;  /* avoid tiling */  
}

#homelogo p {
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-weight: 300;
  font-size: 16px;
  letter-spacing: -0.7px;
  text-align: center;  
}


#homelogo img {
  width: 100%;
}

#about {
  position: absolute;
  z-index: 99;  
  width: 100%;
  height: 100%;
  top: 0;
  left: 0x;
  display: none;
  padding: 1em;
  background: rgba(255, 255, 255, 0.9); /* white with 90% opacity */
  text-align: left;  
}

#about p {
  font-weight: 300;
  font-size: 18px;
  line-height: 32px;
}

.article_text_med {
  width: 80%;
  margin: 0 auto;   
}

#closeAbout {
  cursor: pointer;
  font-size: 18px;
  font-weight: 200;
  transform-origin: left center;  
  transition: transform 0.25s ease;      
}

#closeAbout:hover {
  transform: scale(1.2);  
}


#heroImage {
  clip-path: inset(2% 9% 2% 1%);    
  width: 100dvw;
  min-width: 800px;  
  min-height: 720px;
  margin: 0;
  padding: 0;  
  z-index: 12;
  position: relative;
  z-index: 3;
  display: none;
  cursor: pointer;
}

#heroImage img {
  position: relative;
  width: 100dvw;
  height: 100dvh;
  object-fit: cover;
  object-position: center bottom;  
  filter: brightness(80%);
  padding: 0;
  margin: 0;
  display: block;
}

#heroImage p:first-of-type, 
#heroImage p:nth-of-type(2) {
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-size: 0.9rem;
  color: #f9f4f4;  
  font-weight: 400;
  padding:0;
  margin: 0;
  display: block;    
}

#heroImage p:first-of-type {
  position: absolute;
  z-index: 5;
  bottom: 40px;
  right: 12dvw;  
}
#heroImage p:nth-of-type(2) {
  position: absolute;
  z-index: 5;
  bottom: 40px;
  left: 4dvw;
}

/*
#menu {
  position: absolute; 
  //top: 50px;
  right: 5em;
  width: auto;
  display: inline-block;
 // background: #f9f4f4;
}


#menu ul li {
  list-style-type: none;
  font-family: "Noto Sans", sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 1.5em;
}

*/

#menu {
  position: relative;         
  left: 20px;

  margin: 0;
  display: inline-block;
  z-index: 20;
}

#menu ul {
  display: flex;
  flex-direction: column;  
  padding: 0;
  margin: 0;
}

#menu ul li {
  list-style-type: none;
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-weight: 300;
  font-size: 36px;
  line-height: 28px;
  padding: 0.4em 0;
  cursor: pointer;
  text-align: left;  
  transition: font-size 0.25s ease, font-weight 0.25s ease;
}

#menu ul li:hover {
  font-weight: 400;
  font-size: 36px;  
}

#menu ul li a {
  color: #2a2a2a;
  text-decoration: none;
}

#volume {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

#volume svg,
#volume img {
  width: 100%;
  height: 100%;
  display:block;
}


#controls {
  position: absolute;
  z-index: 2;
  bottom: 3%;
  right: 4%;
}

#songtitle {
  position: absolute;
  width: 9%;
  height: 100vh; /* Center on screen */
  top:0;
  right: 3.5%;
  padding: 0;
  margin: 0;
  display: none;
  z-index: 1;  
}

#songtitleText {
  display: flex;
  flex-direction: column;
  justify-content: top;
  color: #000;
  position: absolute;
  top:0;
  right: 0;
  width: 2em;
}

/* Japanese vertical title */
.japaneseTitle p {
  font-weight: 400;
  font-size: 1.2em;  
  writing-mode: vertical-rl;
  text-orientation: upright;
  margin: 0;
}

/* Separator line */
#songtitle hr {
  width: 4rem; /* Adjust to match visual width of Japanese text */
  border: none;
  border-top: 1px solid #000000;
  margin: 1rem 0 1rem -1em;

}

/* Rotated English title */
.englishTitle p {
  font-weight: 400;
  font-size: 1.2em;  
  margin: 0;
  white-space: nowrap;
  transform: rotate(90deg) translateY(-1.7rem); /* Adjust for visual centering */
  transform-origin: top left;
}


/* =================================================
  Main Page
=================================================== */

#mainpage {
  position: fixed;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100vw;
  box-sizing: content-box;  
  background: #f9f4f4;  
  z-index:3;
  display: block;
  visibility: hidden;
}  

/* =================================================
  Top Picks
=================================================== */

.topPick {
  position: relative;
  padding: 0;
  margin: 0;
  color: #000;
  width: 100vw;
  height: 100vh;    
  margin: 0 auto;
}

/*
.topPickImage {
  width: 100%;
  //height: 100%;
}

.topPickImage img {
  object-fit: cover;
  filter: brightness(80%);
  display: block;  
  width: 100%;
  //height: 100%;
}
*/

.number {
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-weight: 300;
  font-size: 2em;  
  margin: 0;
}


.topPickCopy {
  margin-top: 2em;
  width: 80%;
}

.topicHeader, .storyContentHeader {
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-size: 3em;
  font-weight: 500;
  margin: 0;
  padding: 0;
}

.topicText {
  font-size: 1.2em;
  font-weight: 400;
  line-height: 2em;
}


.page {
  position: relative;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  box-sizing: content-box;  
  background: #fff;  
  z-index:4;
}  

#page1_bk {
  background: #fff !important;
}

.page {
  display: flex;
  flex-direction: column;
  height: 100vh;        /* full viewport height */
}

.nav {
  text-align: center;
  padding: 1rem;
}

.logo {
  flex: 1;              /* expand to take remaining space */
  display: flex;
  align-items: center;  /* center vertically inside its flex space */
  justify-content: center;
  font-size: 6rem;
}

.trees {
  margin-top: auto;     /* push footer to bottom */
  text-align: center;
}


#home {
  display: flex;
  flex-direction: column;
  height: 100dvh;        /* full viewport height */
  min-height: 100dvh;
  opacity: 0;
  background: #fff;
  width: 100dvw;
  //transition: opacity 0.2s ease;
}

#menu {
  text-align: center;
  padding: 1rem;
}


#page2 {
  position: fixed;
  margin: 0;
  top: 0;
  left: 0;
  min-height: 100dvh;
  max-height: 100dvh;
  width: 91dvw;
  background: transparent;  
  z-index:5;
  text-align: center;
  box-sizing: border-box;
  opacity: 0;
  overflow: hidden; 
}


#page2_bk {
  position: relative;
  width: 100dvw;
  height: 100dvh;
  margin: 0;
  padding: 0;
  z-index: 3;
  background: transparent;  
  padding-bottom: 1px;   
  overflow: hidden;   
}

.page_bk {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  z-index: 3;
  position: relative;
  background: #fff;      
}

.page_bk img {
  position: absolute;
  top: 0;
  object-fit: cover;
  filter: opacity(90%);
  display: block;
  height: 100vh;
  width: 100vw;
}  

.homepageTitle p {
  font-family: "Noto Serif", serif;  
  font-style: italic;       /* Style for English line */
  font-size: 0.9em;
  color: #4a4a4a;  
  width: 45%;
  margin-top: 2em;
}

.homepageHero {
  position: relative;
  height: 50vh;
}

.homepageHero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures aspect ratio is preserved and cropped */
  object-position: center; /* centers the image */
}

/*
#page3_mask, #page4_mask, #page4_mask {
  background: transparent !important;
  z-index: 3;
  height: 100vh;
  width: 100vw;
}
*/

  #player-container {
    position: absolute;
    right: 3%;
    bottom: 30px;
    z-index: 12;    
    width: 50px;
    height: 50px;
    display: none;
    cursor: pointer;
  }

   .progress-circle {  
    transform: rotate(-90deg);
    width:100%;
    height:100%; 
   }

   .progress-circle-bg {
     fill: none;
     stroke: #000000;
     stroke-width: 2;
   }

   .progress-circle-indicator {
     fill: none;
     stroke: #008cff;
     stroke-width: 2 ;
     transition: stroke-dashoffset 0.3s ease;
   }



#page1 {
  position: relative;
  margin: 0;
  height: 100vh;  
  overflow: hidden;
}



#page1 {
//  position: absolute;
  //display: flex;
  //justify-content: center;  /* horizontal */
//  align-items: center;      /* vertical */
//  height: 100vh;            /* full viewport height */
//  top: 0;
//  left: 0;
//  width: 100%;
}



#otherPicks {
  gap: 20px;
  height: 100vh;
  width: 90vw;
  margin: 0 auto;
}

.storyCol {
  flex: 1;
  background: #fff;
  height: 70vh;
  margin-top: 10vh;
  padding: 0;
  overflow: hidden;  
  border-radius: 50px;
}

.storyCol img {
  width: 100%;
  height: 40%;
  object-fit: cover;
  display: block; 
}

.storyHeader {
  font-family: "Noto Serif", serif;
  font-size: 1.2em;
  font-weight: 500;  
  margin: 0.2em 2em;
}

.storyText {
  font-size: 1em;
  font-weight: 300; 
  margin: 0.2em 2em;
}

.tab2 {
  font-weight: 300;
  font-size: 0.8m;  
  margin: 2em 1em 0 2em;
  padding: 0;
  color: #000000;
}

.right_arrowcircle {
  text-align: center; 
  margin: 2em 2em 0 0;
  padding: 0;
}

/* =================================================
  Songbook
=================================================== */

.closePageBtn {
  position: fixed;
  top: 65px;
  right: 6%;
  cursor: pointer;
  z-index: 120;  
}

#songbook {
  position: absolute; 
  top: 130px;
  left: 3%;
  width: 100vw;
  height: 100vh;
  z-index: 120;
  //display: none;
  background: #f9f4f4;
}

.labelText {
  border-radius: 20px;
  color: #000;
  border: 1px solid #6b6b6b;
  padding: 10px;
  font-size: 0.8em;
  cursor: pointer;
}

.labelTitle {
  color: #6b6b6b;
  margin: 10px;
  font-size: 0.8em;
}
    
#songbookfilter {
  margin-bottom: 50px;
}

#songbooklist {
  height: 100vh;
}

#songbooklistContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  grid-auto-rows: 100px; /* fixed row height */
  gap: 2em 1.5em; 
  width: 90%;
  height: 100%;
  overflow-y: auto; /* Enable vertical scrolling */
}

.songbookItem {
  position: relative;  
  border: 1px solid #6b6b6b;
  border-radius: 20px;
  padding: 1em;
  width: 100%;         
  box-sizing: border-box; /* include padding and border in width */
  cursor: pointer;
  background: linear-gradient(
    to bottom,
    #ffffff 0px,
    #ffffff 100px,
    #f5f5f5 100px,
    #f5f5f5 87%,
    #ffffff 87%,
    #ffffff 100%
  );
}

/* Flashing animation */
@keyframes flash-border {
  0%, 100% {
    box-shadow: 0 0 0 1.2px #000;
  }
  50% {
    box-shadow: 0 0 0 1.2px #c4c4c4;
  }
}

.songbookItem p {
  padding: 0;
  margin: 0;
}

.songbookItem hr {
  border: none;              /* Remove default border */
  border-top: 2px dotted #6b6b6b; /* Add a dotted top border */
  margin: 10px 0;            /* Optional spacing */  
}

.songbookItem:hover {
  animation: flash-border 1s infinite;  
}

.songbookItem:hover .songbookItemTitle {
  font-weight: 600;
}

.songbookItem:hover .songbookItemEngTitle {
  font-weight: 500;
}

.songbookItemActive {
  grid-row: span 2;
  transition: all 0.6s ease;
}

.songbookItemTitle {
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-size: 1.2em;
  font-weight: 500;
}

.songbookItemEngTitle {
  font-family: "Noto Serif", serif;
  font-size: 0.9em;
  font-weight: 400;
}

.songbookItemPlayer {
  display: none;
  margin-top: 30px;
}

.songbookItemPlayerText {
  text-align: center;
}

.songbookItemPlayerText p:first-of-type {
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-weight: bold;        /* Style for Japanese line */
  font-size: 0.8em;
  color: #000; 
  padding: 0.4em;
}

.songbookItemPlayerText p:nth-of-type(2) {
  font-family: "Noto Serif", serif;  
  font-style: italic;       /* Style for English line */
  font-size: 0.8em;
  color: #000;  
  padding: 0.4em;
}

.songbookItemIcon {
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-size: 0.7em;
  font-weight: 400;
  margin: 3px;
}

.songbookItemIcon svg {
  display: block;
}

.songbookItemNextBtn {
 position: absolute;
 bottom: 5px;
 right: 20px;
}


/* =================================================
  Story Content Page
=================================================== */

#storyContent {
  //display: none;
  background: #f9f4f4;
  z-index: 10;
}

#storyContent:nth-child(odd) {
  background: #f9f4f4; 
}

#storyContent:nth-child(even) {
  background: #fff; 
}

#storyPageContent {
  position: relative;
  padding: 0;
  margin: 0;
  color: #000;
  width: 100vw;
  height: 100%;    
  margin: 0 auto;
  padding: 200px 0 100px 0;
  width: 80%;
  box-sizing: border-box;
}  

.menuStory {
  background: #f9f4f4;
  border-radius: 10px;
}

.highlightedTitle {
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-size: 0.8em;
  font-weight: 500;  
  padding: 0.5em;
  background: #5d5d5d;
  color: #fff;
  display: inline-block;  
}


.storyText {
  font-size: 1em;
  font-weight: 400;
  line-height: 1.5em;
  margin: 1em;
}


#playerIcon {
  position: fixed;
  top: 4%;
  right: 2%;
  cursor: pointer;
  z-index: 120;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  display: none;
}

#playerIcon.spinning img {
  animation: spin 2s linear infinite;
  /* Ensure it spins around its center */
  transform-origin: center center;  
}


@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#playerIcon img {
  width: 100%;
  height: 100%;
}

#page1Story {
  height:100vh;
  width: 100vw;
  padding: 0;
  margin: 0;
}

#heroImageStory {
  position: relative;
  margin: 0;
  padding: 0;  
  width: 100vw;
  height: 80vh;  
}

#heroImageStory img {
  z-index: 3;  
  width: 100vw;
  height: 80vh;
  object-fit: cover;
  object-position: center bottom;
  filter: opacity(80%);
  padding: 0;
  margin: 0;
  display: block;
}


#songtitleStory {
  z-index: 5;  
}

#storypage {
  position: fixed;
  bottom: calc(20vh - 20px);
  left: 50px;
  text-align: left;
}

#songtitleStory {
  position: fixed;
  bottom: calc(20vh - 20px);
  left: 20px;
}

#songtitleStory div p:nth-of-type(1) {
  font-family: "Noto Serif", serif;  
  font-size: 1.4em;
  color: #f9f4f4;  
  font-weight: 500;
  padding:0;
  margin: 0;
  display: block;
}

#songtitleStory div p:nth-of-type(2) {
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-size: 5.5em;
  color: #f9f4f4;  
  font-weight: 600;
  padding:0;
  margin: 0;
  display: block;
}

#storyContent .page:nth-of-type(odd) {
  background: #f9f4f4;  
}

#storyContent .page:nth-of-type(even) {
  background: #ffffff;  
}

#songcreditsStory {
  position: fixed;
  bottom: 20vh;
  right: 20px;
}

#songcreditsStory p {
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-size: 0.8em;
  color: #f9f4f4;  
  font-weight: 600;
  padding:0;
  margin: 0;
  display: block;  
}

#scrollDownStory {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 30%;
  height: 20vh;  
}

#scrollDownStory div div {
  margin-top: 2em;
}

#scrollDownStory p {
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-size: 0.6em;
  color: #333;
  font-weight: 600;
  padding:0;
  margin: 0;
  display: block;
  padding: 1em;
}

#scrollDownStory div {
  margin: 0 auto;

}

#songleadeStory {
  position: fixed;
  bottom: 0;
  left: 50px;
  width: 70%;
  height: 20vh;
  padding: 0;
}

#songleadeStory p {
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-size: 0.9em;
  color: #282828;
  font-weight: 400;
  display: block;
  padding-top: 1em;
}

#storyLyrics {
  gap: 40px;
  font-family: "Noto Sans", "BIZ UDPMincho";    
  position: relative;
  padding: 0;
  margin: 0;
  color: #000;
  height: 100%;    
  margin: 0 auto;
  padding: 200px 0 100px 0;
  width: 80%;    
}

#storyLyrics div {
  padding: 50px;
}

.lyricsEnglish {
  font-family: "Noto Sans", "BIZ UDPMincho";  
  line-height: 2em;
}

.itemSectionHeader {
  font-family: "Noto Sans", "BIZ UDPMincho";
  margin-left: 1em;
  font-size: 1.7em;
  font-weight: 300;
}

/* =================================================
  Audio List (Story)
=================================================== */

#storyMedia {
  width: 80%;
  padding: 200px 0 100px 0; 
  margin: 0 auto;
  height: 100%;
}

.storyMediaMenu {
  margin-left: 0; 
}

.storyMediaMenu svg {
  margin: 1em;
  cursor: pointer;  
}

#storyMediaContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  grid-auto-rows: 300px; /* fixed row height */
  gap: 2em 1.5em; 
  width: 100%;
  padding: 1em;  
}

.storyMediaItem {
  position: relative;  
  border: 1px solid #000000;
  border-radius: 20px;
  width: 100%;         
  //padding: 0.2em 1em;  
  cursor: pointer;
  overflow: hidden;
}

.storyMediaItemActive { 
  grid-row: span 2;
  transition: all 0.6s ease;
}

.mediaProgressBar {
    width: 100%;
    height: 5px;
    background-color: #ccc;
}

.mediaProgress {
    height: 100%;
    width: 0%;
    background-color: #4caf50;
}

.mediaPlaceholder {
  background: #f3f3f3;
  width: 100%;
  height: 200px;
  font-family: "Noto Sans", "BIZ UDPMincho";   
  font-weight: 500;
  font-size: 2em;   
  text-align: center;
}

.mediaPlaceholder svg {
  margin-top: 50px;
}

.mediaText {
  font-family: "Noto Sans", "BIZ UDPMincho";   
  width: 90%;
  padding: 0 0.6em;
}


.itemTitle {
  font-weight: 600;
  font-size: 0.9em; 
}

.itemDescription {
  font-weight: 500;
  font-size: 0.8em; 
}

/* Video */
.mediaIsVideo, .mediaIsImage {
  display: none;
  overflow: hidden;  
}

.mediaIsVideo img, .mediaIsImage img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}

/* =================================================
  Stories List (Story)
=================================================== */

#storyArticles {
  width: 80%;
  padding: 200px 0 100px 0; 
  margin: 0 auto;
  height: 100%;
}

#storyArticlesContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  grid-auto-rows: 450px; /* fixed row height */
  gap: 2em 1.5em; 
  width: 100%;
  padding: 1em;  
}

.storyArticlesItem {
  position: relative;  
  border: 1px solid #000000;
  border-radius: 20px;
  width: 100%;         
  //padding: 0.2em 1em;  
  cursor: pointer;
  overflow: hidden;
}

.mediaPlaceholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storyArticlesMenu {
  margin-left: 0; 
}

.storyArticlesMenu svg {
  margin: 1em;
  cursor: pointer;  
}

.storyArticlesText {
  padding: 1em;
}

.mediaTag {
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-size: 0.5em;
  color: #333;
  background: #fff;
  font-weight: 600; 
  padding: 5px;
  position: absolute;
  z-index: 50;
  top: 0;
  right: 10px;
}


/* =================================================
  Downloads (Story)
=================================================== */

#storyDownloads {
  width: 80%;
  padding: 200px 0 100px 0; 
  margin: 0 auto;
  height: 100%;
}

#storyDownloadsContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  grid-auto-rows: 200px; /* fixed row height */
  gap: 2em 1.5em; 
  width: 100%;
  padding: 1em;  
}

.storyDownloadsItem {
  position: relative;  
  border: 1px solid #000000;
  border-radius: 20px;
  width: 100%;         
  cursor: pointer;
  overflow: hidden;
}

.storyDownloadsMenu {
  margin-left: 0; 
}

.storyDownloadsMenu svg {
  margin: 1em;
  cursor: pointer;  
}

.storyDownloadsText {
  padding: 1em;
}

.storyDownloadsBtn {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
}


/* =================================================
 Features Page
=================================================== */

.featuresHeader {
  font-family: "Noto Serif", serif;
  font-size: 1.2em;
  font-weight: 500;  
  margin: 0.2em 2em;
}

.storyText {
  font-size: 1em;
  font-weight: 300; 
  margin: 0.2em 2em;
}

.menuFeature {
  background: #f9f4f4;
  border-radius: 10px;
}

#featuresTop {
  margin-top: 120px;
}

#featuresTopContainer{
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 2em 1.5em; 
  width: 90%;
  margin-left: auto;
  margin-right: auto; /* Centers horizontally */  
}


.featuresTopItemImage {
  width: 100%; /* This makes the width 30% of the parent */
  aspect-ratio: 1; /* Ensures height equals width */
  border-radius: 20px;
  overflow: hidden;  
}

.featuresTopItemImage img {
  width: 100%; /* Make the image fill the container */
  height: 100%;
  object-fit: cover; /* Ensures the image covers the container without distorting */
}

.featuresTopItemText {
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-size: 1.2em;
  font-weight: 700;  
  margin-left: 1em;
}

.featuresTopItemText p {
  padding: 0;
}

.featuresTopOthers {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns */
  gap: 2em 1.5em; 
  width: 90%;
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto; /* Centers horizontally */  
}

.featuresTopOthersItemImage {
  width: 100%; /* This makes the width 30% of the parent */
  border-radius: 20px;
  overflow: hidden;    
  aspect-ratio: 16 / 9;
}

.featuresTopOthersItemImage img {
  width: 100%; /* Make the image fill the container */
  object-fit: cover; /* Ensures the image covers the container without distorting */
}

.featuresTopOthersItemImageItemText {
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-size: 0.9em;
  font-weight: 700;  
  margin-left: 1em;
}

.featuresTopOthersItemImageItemText p {
  padding: 0;
}

.col2 {
  grid-column: span 2;
}



/* =================================================
  Animations
=================================================== */
.mouse {
	width: 30px;
	height: 50px;
	border: 1px solid #333;
	border-radius: 20px;
	position: relative;
	&::before {
		content: '';
		width: 8px;
		height: 8px;
		position: absolute;
		top: 10px;
		left: 50%;
		transform: translateX(-50%);
		background-color: #333;
		border-radius: 50%;
		opacity: 1;
		animation: wheel 2s infinite;
		-webkit-animation: wheel 2s infinite;
  }
}

@keyframes wheel {
	to {
		opacity: 0;
		top: 40px;
	}
}

@-webkit-keyframes wheel {
	to {
		opacity: 0;
		top: 40px;
	}
}



/* =================================================
  Footer
=================================================== */
#social {
  gap: 1em;
  margin-top: 4em;
}

#contact {
  background: #fff;
  padding: 2em;
  border-radius: 50px;
}

.iconsmall {
  width: 2em;
  height: 2em;
  margin: 1.4em;
}

.vline {
  width: 2px;               /* thickness of the line */
  height: 100%;            /* height of the line */
  background-color: black;  /* color of the line */
  margin: 0 2em;          /* center horizontally if needed */
}

#copyright {
  padding: 2em 0;  
  font-size: 0.8em;
}


/* =================================================
  Preloader (home)
=================================================== */
#preloader-wrapper-home {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50vw;
  height: 50vh;
  background: transparent;
  z-index: 4;
}

.preloader {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9e9e9;
  padding: 10px;
}

.preloader img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#preloaderImage,  #preloaderAudio, #preloaderError {
  display: none;
}


/* =================================================
  Hamburger menu
=================================================== */

/* Hamburger container */
#hamburger {
  width: 24px;
  height: 20px;
  position: fixed;
  top: 6%;
  right: 4%;
  z-index: 98;
  cursor: pointer;
  transform: rotate(0deg);
  transition: transform 0.5s ease-in-out;
  transform-origin: center center;  
  transition: transform 0.25s ease;      
  /* prevent mobile dragging */
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}  


#hamburger:hover {
  transform: scale(1.3);  
}


/* Hamburger lines */
#hamburger span {
  display: block;
  position: absolute;
  height: 2px; /* slightly thicker for visibility */
  width: 100%;
  background: #000;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transform-origin: center center; /* center rotation for symmetrical cross */
  transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out, top 0.25s ease-in-out;
}

/* Position the three lines */
#hamburger span:nth-child(1) { top: 0px; }
#hamburger span:nth-child(2) { top: 8px; }
#hamburger span:nth-child(3) { top: 16px; }

/* Active/open state: transform into X */
#hamburger.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px; /* center vertically */
}

#hamburger.open span:nth-child(2) {
  opacity: 0; /* hide middle line */
}

#hamburger.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px; /* center vertically */
}

/* Optional click scale effect */
#hamburger:active {
  transform: scale(1.2);
}

/* =================================================
  Mobile phone
=================================================== */

@media only screen 
  and (max-width: 480px)
  and (orientation: portrait)
  and (max-device-width: 480px) {
  /* phones only */
  
  #hamburger span {
    background: #fff;
  }

  #songtitleBkgndMb {
  /*
    position: absolute;
    width: 13%;
    height: 100vh;
    top:0;
    right: 0;
    padding: 0;
    margin: 0;
    background: #fff;
    z-index: 4;  
    opacity: 0.8; 
  */ 
    display: none;
  }
  #songtitle {
    visibility: hidden;
    z-index: 5 
  }
  .englishTitle p {
    font-weight: 300;
    font-size: 1em;  
  }
  .japaneseTitle p {
    font-weight: 300;
    font-size: 1em;  
  }
  /* Separator line */
  #songtitle hr {
    width: 2rem; /* Adjust to match visual width of Japanese text */
    border: none;
    border-top: 1px solid #000000;
    margin: 1rem 0 1rem 0em;
  }
  #player-container {
    z-index: 5;     
    right: 2%;
    bottom: 60px;
    width: 40px;
    height: 40px;
  }
  #heroImage p:first-of-type, 
  #heroImage p:nth-of-type(2) {
    font-family: "Noto Sans", "BIZ UDPMincho";
    font-size: 0.8em;
    color: #f9f4f4;  
    font-weight: 400;
    padding:0;
    margin: 0;
    display: block;    
    width: 70%;
  }

  #heroImage p:first-of-type {
    position: absolute;
    z-index: 5;
    bottom: 40px;
    left: 30px;  
    vertical-align: top;    
  }
  #heroImage p:nth-of-type(2) {
    position: absolute;
    z-index: 5;
    bottom:70px;
    left: 30px;     
    vertical-align: top;
  }
  .m_title {
    font-weight: 600;
    font-size: 1.2em;
    color: #f9f4f4;  
  }
  .progress-circle-bg {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
  }  
  #page2 {
    position: fixed;
    margin: 0;
    top: 0;
    left: 0;
    min-height: 100dvh;
    max-height: 100dvh;
    width: 100dvw;
    background: transparent;  
    z-index:5;
    text-align: center;
    box-sizing: border-box;
    opacity: 0;
    overflow: hidden; 
  }  
  #page2_bk {
    position: fixed;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    z-index: 3;
    background: transparent;  
    padding-bottom: 1px;   
    overflow: hidden;   
    font-size: 12px;
  }  
 
  #fullscreen {
    display: none;
  }
  #homelogo {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
  }
  #menu {
    position: absolute;
    top: 170px;           
    left: 50%;
    transform: translateX(-50%);
  }  

  #menu ul {
    display: flex;
    flex-direction: row;
    padding: 0;
    margin: 0;
  }  

  #menu ul li {
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    padding: 0.7em;
    cursor: pointer;
    text-align: center;  
    transition: font-size 0.25s ease, font-weight 0.25s ease;
    white-space: nowrap;
  }

  #menu ul li:hover {
    font-weight: 500;
    font-size: 24px;  
  }
  
  #homefooter {
    position: absolute;
    bottom: 0;
    left: 0;
    right:0;
    background: #fff;
  }
  #homefooter p {
    font-size: 10px;
  }
  #about {
    position: fixed;
    z-index:99;
    display: none;
    justify-content: center; /* horizontal */
    align-items: center;     /* vertical */
  }

  #about p {
    font-weight: 300;
    font-size: 18px;
    line-height: 32px;
    padding: 1em;
  }

  #closeAbout {
    padding-left: 1em;  
  }

  #artwork {
      width: 100%;
      min-width: 0;    
      right: 0;
      bottom: 0px;
      background-position: center bottom; 
  }

}


@media only screen 
  and (max-device-width: 480px)
  and (orientation: landscape) {

  #rotatePortrait {
    display: block;
  }
}

/* ---------------------------------------
  iPad Pro: Landscape
-----------------------------------------*/
@media only screen 
  and (min-width: 768px) 
  and (max-width: 1366px) 
  and (orientation: landscape) {

  #page2_bk, #page2, #about {
    touch-action: none;
  }    

  #heroImage {
    clip-path: inset(2% 9% 2% 1%);    
    width: 100dvw;
    min-width: 0;  
    min-height: 0;
  }

  #heroImage img {
    position: relative;
    width: 90%;
  }

  #heroImage p:first-of-type, 
  #heroImage p:nth-of-type(2) {
    font-family: "Noto Sans", "BIZ UDPMincho";
    font-size: 0.9rem;
    color: #f9f4f4;  
    font-weight: 400;
    padding:0;
    margin: 0;
    display: block;    
  }

  #heroImage p:first-of-type {
    position: absolute;
    z-index: 5;
    bottom: 40px;
    right: 12dvw;  
  }
  #heroImage p:nth-of-type(2) {
    position: absolute;
    z-index: 5;
    bottom: 40px;
    left: 4dvw;
  }

  #artwork {
    width: 70dvw;
    min-width: 0;    
    right: 0;
  }
  
  #homefooter p {
    font-size: 10px;
    color: #666;
  }  
}
