/* Access page specific styles */

/* Logo sizing (alignment handled globally) */
#header p img { width: 170px; height: 60px; }
#header .langbt img { width: 131px; height: 20px; }

/* Title band */
.pagetitle { background-image: url(../images/title_main.jpg); }
.pagetitle h1 { text-indent: -9999px; overflow: hidden; height: 36px; line-height: 36px; }

/* Access page headings and spacing */

/* Make h4 headings follow default body text settings */

/* Make h3 headings follow default body text settings */

/* Slightly enlarge h3 on Access page */
#container #main h3 { font-size: 18px !important; }

/* Highest-specificity override for Access page h3 */
#pageWrap #container #main .mainWrap h3 { font-size: 18px !important; }

/* Submenu (2 items) - recreated with CSS */
#pageWrap #container #subMenu { width: 180px; }
#pageWrap #container #subMenu .menu_access { list-style: none; padding: 0; margin: 0; }
#pageWrap #container #subMenu .menu_access li { width: 180px; margin-bottom: 0; }
#pageWrap #container #subMenu .menu_access li:last-child a { border-bottom: none; }
#pageWrap #container #subMenu .menu_access li a{
  height: 50px; /* part height */
  width: 180px;  /* part width */
  display: block;
  position: relative;
  text-decoration: none;
  color: #333333;
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  padding: 0;
  transition: all 0.3s ease;
  
  background: white;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: none;
}
#pageWrap #container #subMenu .menu_access li a:hover {
  background: white;
  box-shadow: none;
}

/* Active state styling */
#pageWrap #container #subMenu .menu_access li.accessOn a,
#pageWrap #container #subMenu .menu_access li.contactOn a {
  background: white;
  box-shadow: none;
}

/* Text switching effect - English to Japanese on hover */
#pageWrap #container #subMenu .menu_access li a .menu-text {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 1px 0 15px;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9);
}

/* Accent line before text */
#pageWrap #container #subMenu .menu_access li a .menu-text::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background-color: #c00000;
  border-radius: 2px;
}

/* English text - visible by default */
#pageWrap #container #subMenu .menu_access li a .english {
  font-family: "chentry ゴシック", sans-serif;
  font-size: 14px;
  color: #1a1a1a; /* CMYK(0,0,0,90) converted to RGB */
  text-align: left;
  font-weight: bold;
  margin-right: 10px;
  display: inline-block;
}

/* Japanese text - visible by default */
#pageWrap #container #subMenu .menu_access li a .japanese {
  font-family: "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "ヒラギノマルゴシ", "Hiragino Maru Gothic", sans-serif;
  font-size: 14px;
  color: #c00000;
  text-align: left;
  font-weight: bold;
  display: inline-block;
}

/* Right triangle for Japanese text */
#pageWrap #container #subMenu .menu_access li a .japanese::after {
  content: '';
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid #c00000;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}


/* Hover toggle: English default, Japanese on hover (align with topics) */
#pageWrap #container #subMenu .menu_access li a .menu-text {
  position: relative;
  height: 100%;
  z-index: 1;
}
#pageWrap #container #subMenu .menu_access li a .english,
#pageWrap #container #subMenu .menu_access li a .japanese {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding-left: 18px; /* red line (10px) + width (4px) + gap (4px) */
  text-indent: 0 !important;
}
#pageWrap #container #subMenu .menu_access li a .english {
  opacity: 1;
  transition: opacity 0.25s ease;
}
#pageWrap #container #subMenu .menu_access li a .japanese {
  opacity: 0;
  transition: opacity 0.25s ease;
}
#pageWrap #container #subMenu .menu_access li a:hover .english { opacity: 0; }
#pageWrap #container #subMenu .menu_access li a:hover .japanese { opacity: 1; }

/* Keep Japanese visible on the active (selected) submenu item */
#pageWrap #container #subMenu .menu_access li.accessOn a .english,
#pageWrap #container #subMenu .menu_access li.contactOn a .english { opacity: 0; }

#pageWrap #container #subMenu .menu_access li.accessOn a .japanese,
#pageWrap #container #subMenu .menu_access li.contactOn a .japanese { opacity: 1; }
