/* =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%;   
}
  
body {
  font-family: "Noto Sans", "BIZ UDPMincho";
  color: #000;
  margin: 0;
  padding: 0;
  -ms-overflow-style: none;  /* IE and Edge */
  background: #fff;
  user-select: none;  /* disable highlighting */
}


* {
  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;
}

a:link {
  color: #e90000;
  text-decoration: none; /* optional */
}

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


/*-----------------------
	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 
*/

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

 }

.placeholder {
  width: 100%;
}

#logo {
  width: 60%; 
  margin: 0 auto;
  padding: 80px 0 30px 0;
}

#logo img {
  width: 100%;
  height: auto;
}

#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 */  
}

#artwork {
  width: 1920px;
  // margin: 0 auto;
  margin-top: 10vh;
  transform: scale(1.2);  
}

#topPage {
  width: 50vw;
  margin: 0 auto;
  padding-top: 0;
  text-align: center;
}

#topPage p {
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-style:italic;
  font-size: 1em;
  font-weight: 400;
  padding: 0;
  margin: 0;
  line-height: 2em;  
}

#about {
  position: absolute;
  width: 80%;
  height: auto;
  top: 25vh;
  left: 50%;
  transform: translateX(-50%);
  visibility: hidden;
}

#closeAbout {
  position: absolute;
  top: -100px;
  right: -100px;
  cursor: pointer;
}

#heroImage {
  clip-path: inset(2% 9% 2% 1%);    
  margin: 0;
  padding: 0;  
  z-index: 12;
  position: relative;
  z-index: 3;
  display: none;
  cursor: pointer;
}

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

#heroImage p {
  position: absolute;
  bottom: 40px;
  right: 200px;
  z-index: 5;
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-size: 0.9em;
  color: #f9f4f4;  
  font-weight: 400;
  padding:0;
  margin: 0;
  display: block;    
}
/*
#menu {
  position: abso
  lute; 
  //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 {
  margin: 0 auto;
  margin-top: 40px;
  display: inline-block;
}


#menu ul {
  padding: 0;
  margin: 0;
}

#menu ul li {
  list-style-type: none;
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-weight: 600;
  font-size: 18px;
  padding: 1.5em;
  cursor: pointer;
  transition: font-size 0.25s ease, font-weight 0.25s ease;  
}

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

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

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

#volume svg {
  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;
}

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

/* 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;
  box-sizing: content-box;  
  background: #fff;  
  z-index:4;
}  

.pageSection hr {
  width: 100%;
  margin-top: 50px;
  margin-bottom: 50px;
  border: none;
  height: 1px;
  background: #ccc;
}


.page_bottom {
  position: relative;
  margin: 0;
  padding: 0;
  box-sizing: content-box;  
  background: #fff;  
  z-index:4;
}  

#page1_bk {
  background: #fff !important;
}

#page6Story {
  min-height: 110vh;
}

#page2 {
  position: relative;
  margin: 0;
//  padding-top: 30px;
  min-height: 100vh;
  box-sizing: content-box;  
  background: #fff;  
  z-index:4;
  text-align: center;
  box-sizing: border-box;
  //filter: opacity(90%);    
}


#page2_bk {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  z-index: 3;
  position: relative;
  background: #fff;  
  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: 2;    
    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;
}

#storyContentText {
  margin-bottom: 50px;
}


#storyContentText p {
  font-size: 1em;
  font-weight: 400; 
  margin: 1.5em 2em;
}


/* Song info notes */
#songNotes {
  margin: 1.5em 2em;
}

.songbookItemNotes {
  border-radius: 10px;
  color: #000;
  border: 1px solid #6b6b6b;  
  padding: 1em;
  margin: 1em;
  box-sizing: border-box; /* include padding & border in width */  
}

.notesImg {
  max-width: 200px;
  margin: 10px;
}

.notesImg img {
  width: 100%;
}

.notesTitle {
  font-family: "Noto Sans", "BIZ UDPMincho";    
  font-weight: 700;  
  font-size: 0.9em;  
  margin: 0;
  padding: 0;  
}
.notesText {
  font-family: "Noto Sans", "BIZ UDPMincho";    
  font-weight: 500;  
  font-size: 0.9em;  
  margin: 0;
  padding: 0;  
}




.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
=================================================== */

.songbook-vline {
  margin-top:100px;
  padding: 0;
  margin: 0;
}

#song_menu {
  background: #ffffff;
  border-radius: 10px;
  display: inline-block;
  position: absolute;
  top: 0;
  right: 100px; 
}

#song_menu ul {
  padding: 0;
  margin: 0;
}

#song_menu ul li {
  list-style-type: none;
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-weight: 600;
  font-size: 14px;
  padding: 1em;
}

#song_menu ul li a, #toSongSelect {
  transition: font-size 0.25s ease, font-weight 0.25s ease;    
}

#song_menu ul li a:hover {
  font-weight: 600;
  font-size: 18px;    
  color: #e90000; 
}

#toSongSelect:hover {
  color: #e90000; 
}

#song_menu ul li a {
  color: #000;
  text-decoration: none;
}

.songbookItemNextBtn {
  transition: transform 0.25s ease;
}

.songbookItemNextBtn:hover {
  color: #e90000; 
  transform: scale(1.1);
}

.storyMediaBtn {
  transition: transform 0.25s ease;
}

.storyMediaBtn:hover {
  transform: scale(1.2);
}

#songbook {
  position: absolute; 
  width: 100vw;
  height: 100vh;
  z-index: 120;
}

.labelText {
  padding: 1em !important;
}

.songbook-left {
  width: 25%;  
  margin: 0;
  padding: 100px 0 0 0;  
  height: 100%;
}

.songbook-left > div:first-child {
  width: 100%;
  text-align: right;
}

.songbook-left h1 {
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-weight: 600;
  font-size: 3em;
  font-kerning: normal;
  letter-spacing: -0.05em;  
  padding: 0;
  margin: 0;
  white-space: nowrap;
  writing-mode: vertical-rl; /* or vertical-lr */
  text-orientation: mixed;   /* or upright */
}

.songbook_topmenu {
  position: fixed;
  top: 50px;
  right: 40px;
  cursor: pointer;
  z-index: 120;  
  background: #fff;
}

.songbook_topmenu div {
  margin: 10px;
}

.menuBtn {
  cursor: pointer;
}

#toSongSelect {
  font-size: 36px;
  cursor: pointer;
}

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

.labelTitle {
  margin: 10px;
  font-size: 0.8em;
  font-weight: 600;
}
    
#songbookfilter {
  width: 100%;
  margin-top: 150px;
}

#songbook-search {
  border-radius: 10px;
  color: #000;
  border: 1px solid #6b6b6b;
  padding: 5px;
  font-size: 0.8em;
  cursor: pointer;
  text-align: right;
}

#songbooklistContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  grid-auto-rows: 100px; /* fixed row height */
  gap: 2em 1.5em; 
  height: auto;
  scrollbar-gutter: stable; /* reserves space for scrollbar */  
  padding: 100px calc(1em + 26px) 0 0px;
  margin-top: 50px;
  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%
  );
}

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


/* Flashing animation */
@keyframes flash-border {
  0%, 100% {
    box-shadow: inset 0 0 0 1px #000;
  }
  50% {
    box-shadow: inset 0 0 0 1px #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 .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;
}

.filterItem {
  margin-left: auto;  
  padding: 0.5em 0.5em 0.5em 1.5em;
}

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

#storyContent {
  background: #fff;
  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 0 0;
  width: 80%;
  box-sizing: border-box;
}  

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

/* #songdetails  */
#songdetails{
  margin: 1.5em 0 0.5em 0;
}

#songdetails div {
  margin: 1em;
}

#songdetails label {
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-size: 1em;
  font-weight: 500;  
  color: #000; 
}

#songdetails .infotext {
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-size: 1em;
  font-weight: 700;  
  color: #0b6c3b;   
}

.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;
  transition: transform 0.25s ease;  
  transform-origin: center center;  
}

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

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

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

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



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

#heroImageStory {
  display: block;       /* remove inline-img baseline gap */  
  position: relative;
  margin: 0;
  padding: 0;  
  width: 100vw;
  height: 80dvh;  
  overflow: hidden;
}

#heroImageStory::after {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.1),  /*  bottom */
    rgba(0, 0, 0, 0)     /*  top */
  );
  pointer-events: none; /* allow clicks */
}

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


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

#songtitleStory {
  position: absolute;
  z-index:15;  
  bottom: 0;
  left: 20px;
}

#songtitleStory .title1 {
  font-family: "Noto Serif", serif;  
  font-size: 1.4em;
  color: #fff;  
  font-weight: 500;
  padding:0;
  margin: 0;
  display: block;
}

#songtitleStory .title2 {
  font-family: "Noto Sans", "BIZ UDPMincho";
  font-size: 5.5em;
  color: #f9f4f4;  
  font-weight: 600;
  padding:0;
  margin: 0;
  display: block;
  line-height: 1;  /* removes extra vertical spacing */
}

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

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

#songcreditsStory {
  position: absolute;
  z-index:15; 
  bottom: 0;
  right: 20px;
  margin-bottom: 10px;
  display: block;
  line-height: 1;  /* removes extra vertical spacing */  
}

#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: 1em;
  color: #282828;
  font-weight: 400;
  display: block;
  padding-top: 1em;
  line-height: 1.6; 
}

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

#jpnlyrics, #otherlyrics {
  padding: 50px;
  min-width: 350px;
}

#otherlyrics p {
  font-family: "Noto Sans", "BIZ UDPMincho";  
  line-height: 2em;
}

#jpnlyrics p {
  line-height: 1em; 
}

.lyricsBtn {
  font-family: "Noto Sans", "BIZ UDPMincho";  
  font-size: 0.7em;
  font-weight: 700;  
  border: 1px solid #000000;
  border-radius: 10px;  
  padding: 5px;
  margin: 0 1em;
  margin-bottom: 30px;
  display: inline-block;
  cursor: pointer;
}

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



/*
#jpnlyrics p {
  line-height: 2; 
}

romaji {
 display: none;
}
*/

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

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

#storyMediaMenu {
  margin-left: 0; 
  margin-bottom: 50px;
}

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

#storyMediaContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  grid-auto-rows: 400px; /* fixed row height */
  align-items: stretch; /*All items in a row match same height */  
  gap: 2em 1.5em; 
  width: 100%;
  padding: 0;  
}

.storyMediaItem {
  position: relative;  
  width: 100%;         
  cursor: pointer;
  overflow: hidden;
  height: 400px;
}

.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%;
  height: 100%;
  padding: 0 0.6em;
  overflow-y: auto;    /* vertical scroll */
}

.mediaBtn {
  display: inline-block; 
  transition: transform 0.25s ease;  
}

.mediaBtn:hover {
  transform: scale(1.2);
}


.itemTitle {
  font-weight: 600;
  font-size: 0.9em; 
  //transition: transform 0.3s ease;     
}

.itemTitle:hover {
 // transform: scale(1.05);
}

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

.mediaItem, 
.mediaItemVid,
.mediaItemImage,
.storyArticlesItem {
  border: 1px solid #000000;
  border-radius: 20px;  
  height: 400px;
  overflow: hidden;  
  transition: box-shadow 0.25s ease;  
}
.mediaItem img, 
.mediaItemVid img,
.mediaItemImage img,
.storyArticlesItem img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  transition: transform 0.3s ease; 
  transform-origin: bottom center;  
}

.mediaItemVid img:hover,
.mediaItemImage img:hover,
.storyArticlesItem img:hover {
  transform: scale(1.1);   
}

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

#storyArticles {
  width: 80%;
  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%;         
  overflow: hidden;
}

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

.storyArticlesMenu {
  margin-left: 0; 
  margin-bottom: 50px;
}

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

.storyArticlesText {
  padding: 1.2em;
}

.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%;
  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;  
  margin-bottom: 200px;
}

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

.storyDownloadsMenu {
  margin-left: 0; 
  margin-bottom: 50px;
}

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

.storyDownloadsText {
  padding: 1em;
}

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

}

.storyDownloadsBtn:hover path { 
  fill: #e90000; 
}

/* =================================================
 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 {
  0% {
    top: 10px;
    opacity: 1;
  }
  70% {
    top: 34px;
    opacity: 0;
  }
  71% {
    top: 10px;  
    opacity: 0;  
  }
  100% {
    top: 10px;
    opacity: 1;  
  }
}

@-webkit-keyframes wheel {
  0% {
    top: 10px;
    opacity: 1;
  }
  70% {
    top: 40px;
    opacity: 0;
  }
  71% {
    top: 10px;
    opacity: 0;
  }
  100% {
    top: 10px;
    opacity: 1;
  }
}



/* =================================================
  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: rgb(190, 190, 190);  /* color of the line */
  margin: 0 2em;          /* center horizontally if needed */
}

#copyright {
  width: 100%;
  padding: 50px 0;  
  font-size: 0.8em;

  text-align: center;
}


/* =================================================
  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 {
    width: 24px;
    height: 20px;
    position: fixed;
    top: 6%;
    right: 4%;
    z-index: 1;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;   
    cursor: pointer;
  }

  #hamburger span {
    display: block;
    position: absolute;
    height: 1px;
    width: 100%;
    background: #000000;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
  }
  
  #hamburger span:nth-child(1) {
    top: 0px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
  }
  
  #hamburger span:nth-child(2) {
    top: 8px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
  }
  
  #hamburger span:nth-child(3) {
    top: 16px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
  }
  
  #hamburger.open span:nth-child(1) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    top: 0px;
    left: 0px;
  }
  
  #hamburger.open span:nth-child(2) {
    width: 0%;
    opacity: 0;
  }
  
  #hamburger.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    top: 24px;
    left: -1px;
  }

  #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 */

  #songbook {
    flex-direction: column !important;
  }    
  #songbookfilter {
    display: flex;
    flex-direction: row;  
    flex-wrap: nowrap;
    margin-top: 100px;
  }
  .songbook-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: #fff;
    z-index: 5;
  }  
  .songbook-left > div:first-child {
    text-align: left;  
  }
  #homelogo {
    position: fixed;
    top: 0;
    left: 10px;
    width: 180px;
  }

  #homelogo p {
    font-size: 0.9em;
    text-align: center;
  }
  #homelogoImg {
    width: 100%;
    background-image: url('../images/jcsclogo_color.svg');
    background-size: 100% auto;   /* width = 100%, height scales automatically */
    background-position: center;   /* keep image centered */
    background-repeat: no-repeat;  /* avoid tiling */  
  }

  #songbooklist {
    margin-top: 50px;
    z-index: 2;
  }

  #songbooklistContainer {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 1 column */
    grid-auto-rows: 100px; /* fixed row height */
    gap: 2em 1.5em; 
    height: 100vh;
    scrollbar-gutter: stable; /* reserves space for scrollbar */  
    padding: 100px calc(1em + 26px) 0 0px;
    margin-top: 200px;
    overflow-y: auto; /* Enable vertical scrolling */
  }

  .songbookItem {
    position: relative;  
    width: 100%;         
    margin-left: 20px;
  }
  #fullscreen {
    display: none;
  }

  #heroImageStory {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    height: auto;
  }
  #songtitleStory {
    bottom: 40px;
  }  

  #songtitleStory .title1 {
    font-size: 1em;
    font-weight: 600;
  }

  #songtitleStory .title2 {
    font-size: 2.5em;
    font-weight: 600;
    line-height: 1;  /* removes extra vertical spacing */
  }

  #songcreditsStory {
    left: 20px;
  }

  #songcreditsStory p {
    font-size: 0.6em;
  }


  #songleadeStory {
    position: fixed;
    top: 83dvh;
    height: auto;  
    left: 20px;
  }

  #songleadeStory p {
    font-size: 0.8em;
    font-weight: 300;
    line-height: 1.3; 
  }

  #scrollDownStory {
    position: fixed;
    top: 83dvh;
  }

  #page2Story {
    position: absolute;       /* ensure it’s offscreen initially */
    top: 100%;                /* start below viewport */
    left: 0;                  /* align left edge */
    width: 100%;              /* full width */
    height: auto;           /* full height */
    touch-action: auto;       /* allow touch gestures initially */
    overflow: hidden;         /* avoid scroll jumps during animation */
    touch-action: pan-y;  /* allow only vertical touch drag */
  }

  #songNotes {
    margin: 10px;;
  }

  .topicHeader, .storyContentHeader {
    font-size: 2.3em;
  }

  #songdetails{
    display: flex;
    flex-direction: column !important;
    justify-content: top;
  }

  #songdetails label, #songdetails .infotext {
    font-size: 0.8em;
    font-weight: 600;  
  }

  #songdetails div {
    margin: 0.5em;
  }  

  #storyContentText {
    margin-bottom: 40px;
  }

  #storyContentText p {
    margin: 0;
  }

  #storyPageContent {
    margin: 0 auto;
    padding: 100px 0 0 0;
    width: 90%;
  }   

  .lyricsholder {
    display: flex;
    flex-direction: column !important;
    justify-content: flex-start; 
  }

  #storyLyrics {
    width: 100%;    
  }

  #jpnlyrics, #otherlyrics {
    padding: 50px;
  }
  #otherlyrics  {
    margin-top: 0;
  }
  #otherlyrics p {
    line-height: 2em;
  }  
  .pageSection hr {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .lyricsBtn {
    margin-bottom: 10px;
  }
  #storyMediaContainer {
    grid-template-columns: repeat(1, 1fr); /* 3 columns */
  }
  #storyDownloadsContainer {
    grid-template-columns: repeat(1, 1fr); /* 3 columns */
  }  
  #storyArticlesContainer {
    grid-template-columns: repeat(1, 1fr); /* 3 columns */
  }  

  #song_menu {
    width: 100%;
    border-radius: 0px;
    position: fixed;
    top: 0;
    left: 0;
  }

  #song_menu ul li {
    font-size: 11px;
    padding: 10px;
  }

  #song_menu ul li a:hover {
    font-size: 12px;    
  }  

}

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

  #rotatePortrait {
    display: block;
  }
}


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

  #heroImageStory {
    touch-action: none;
  }  



  #homelogo {
    position: fixed;
    top: 0;
    left: 20px;
  }  

  #homelogoImg {
    width: 200px;
  }  

  #homelogo p {
    font-size: 0.8em;
    text-align: center;
  }

  #songbook {
    position: fixed;
    top: 0;
  }

  #songbooklist {
  max-height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  }

  #songbookfilter {
    margin-top: 100px;
  } 

#heroImageStory {
  position: fixed;
  top: 0;
  left: 0;
}


}