:root {
  --primary-color: #124BB1;
  /* Deep Navy Blue */
  --accent-color: #FFC426;
  /* Gold/Yellow */
  --text-color: #252525;
  --text-color-sub: #5c5c5c;
  --bg-color: #FFFFFF;
  --light-bg: #F9F9F9;
  --font-main: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header Styles */
header {
  /* height: 120px; */
  background-color: #fff;
  /* background-color: #fffbef; */
  position: fixed;
  width: 100%;
  /* max-width: 1440px; */
  /* margin: 0 auto; */
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-container {
  width: 100%;
  height: 120px;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}

.logo img {
  height: 75px;
  vertical-align: middle;
}

nav ul {
  display: flex;
  gap: 50px;
  /* Spacious for wide screens (1440px+) */
  align-items: center;
}

nav ul li {
  position: relative;
}

nav ul li a,
nav ul li button {
  font-weight: bold;
  font-size: 14px;
  color: var(--text-color);
  /* Changed to dark text */
  padding: 28px 0;
  /* Matches header height for hover area */
  display: block;
  letter-spacing: 0.05em;
  position: relative;
}

/* Underline effect for nav items */
nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: #000;
  /* Light gray underline */
  opacity: 0;
  transition: opacity 0.3s;
}

nav ul li a:hover::after {
  opacity: 1;
}

.arrow-down {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 2px solid #124BB1;
  border-bottom: 2px solid #124BB1;
  transform: rotate(45deg);
  margin-left: 8px;
  margin-bottom: 4px;
  vertical-align: baseline;
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: auto;
  padding: 10px 0;
  flex-direction: column;
  gap: 0;
  border-top: 3px solid var(--accent-color);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  color: var(--text-color);
  font-weight: normal;
  font-size: 14px;
  transition: background-color 0.2s, color 0.2s;
  text-align: center;
  white-space: nowrap;
}

.dropdown-menu li a::after {
  display: none;
  /* No underline in dropdown */
}

.dropdown-menu li a:hover {
  background-color: var(--light-bg);
  color: var(--primary-color);
}

/* Show dropdown on hover */
.has-dropdown {
  /* min-width: 180px; */
  text-align: center;
}

.has-dropdown:hover .dropdown-menu {
  display: flex;
}

.menuTrigger {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;
}

/* Header Right Area */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-lang {
  font-size: 14px;
  font-weight: bold;
  display: flex;
  gap: 15px;
}

.header-lang a {
  color: var(--text-color);
}

header .bogo-language-switcher {
  display: flex;
  flex-direction: row-reverse;
  margin-left: 25px;
  gap: 15px;
}

.bogo-language-switcher li.current a,
.bogo-language-switcher a.current {
  /* border-bottom: 2px solid currentColor; */
  /* padding: 0; */
}

.bogo-language-switcher li.current a::after,
.bogo-language-switcher a.current::after {
  opacity: 1;
}

/* Contact Button in Header */
.header-contact {
  background-color: var(--accent-color);
  color: #fff !important;
  padding: 17px 32px;
  border-radius: 3px;
  font-weight: bold;
  font-size: 16px;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-contact:hover {
  opacity: 0.9;
}

.header-contact .btn-icon {
  width: 20px;
  height: auto;
  filter: brightness(0) invert(1);
  /* Make icon white */
}

/* Common Styles */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.section-title {
  font-size: 30px;
  /* color: var(--primary-color); */
  color: #252525;
  margin-bottom: 20px;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.section-subtitle {
  font-size: 22px;
  margin-bottom: 50px;
  line-height: 1.6;
  color: #5C5C5C;
  font-weight: bold;
}

/* グラデーションボタン */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #172D9D, #00A9F2);
  color: #fff;
  padding: 28px 50px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 19px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 2px;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #00A9F2, #172D9D);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}


/* 青ボタン */
.btn-blue {
  display: inline-block;
  background-color: var(--primary-color);
  /* Dark blue */
  color: #fff;
  padding: 25px 60px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
  font-size: 19px;
}

.btn-blue:hover {
  background-color: #003399;
}

.arrow-right {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(45deg);
  margin-left: 10px;
  margin-bottom: 1px;
}

/* 黄ボタン */
.btn-yellow {
  display: block;
  width: 100%;
  background-color: var(--accent-color);
  color: #fff;
  padding: 15px 20px;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-yellow:hover {
  background-color: #d4a410;
}

.pale-yellow-bg {
  background: linear-gradient(to bottom right, rgba(255, 196, 38, 0.1), rgba(255, 241, 203, 0.1));
}

.pale-yellow-bg .container {
  background-image: url('../img/Group\ 37.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.display-max1439,
.display-max959,
.display-max767 {
  display: none;
}


/* =========================================
   Sub Page Styles (Consulting, etc.)
   ========================================= */

/* Page Hero */
.page-hero {
  height: 450px;
  /* background-color: #004098; */
  /* Fallback */
  /* Geometric background simulation using gradients */
  background-image:
    linear-gradient(135deg, rgba(23, 45, 157, 1), rgba(0, 169, 242, 1)),
    url('../img/deco.png');
  /* Or use a relevant background image/pattern */
  background-size: cover;
  background-position: center;
  margin-top: 120px;
  /* Offset for fixed header */
}

.page-hero-overlay {
  background-image: url('../img/deco.png');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-title-en {
  font-size: 37px;
  font-weight: 900;
  font-style: italic;
  font-family: 'Barlow', sans-serif;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.page-title-jp {
  font-size: 20px;
  font-weight: bold;
}

/* Lead Section */
.lead-section {
  padding: 75px 0 100px 0;
  background-color: #fff;
}

.lead-box {
  background-color: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 5% 3%;
  text-align: center;
  border-radius: 8px;
  width: 90%;
  max-width: 1028px;
  margin: 0 auto;
  /* Optional: Slight border or top accent */
  border-top: 3px solid transparent;
  /* To match cleanliness */
}

.lead-box h2 {
  font-size: 30px;
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 30px;
}

.lead-box p {
  font-size: 16px;
  color: var(--primary-color);
  line-height: 2.0;
  /* font-weight: bold; */
}

/* Case Study Section (Consulting Specific) */
.consulting-case {
  background: linear-gradient(to bottom right, rgba(255, 196, 38, 0.2), rgba(255, 241, 203, 0.2));
  text-align: center;
  position: relative;
  /* overflow: hidden; */
  margin-top: 150px;
}

.yellow-bg-deco {
  padding: 130px 0;
  width: 100%;
  background-image: url('../img/Group\ 36.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Decorative diamond shapes for case study bg */
.case-study-title-en {
  font-family: 'Barlow', sans-serif;
  font-size: 80px;
  font-weight: 900;
  font-style: italic;
  color: #0045A9;
  position: absolute;
  left: 50%;
  top: -64px;
  transform: translateX(-50%);
}

.consulting-case-card {
  background-color: #fff;
  padding: 80px 70px;
  display: flex;
  align-items: center;
  gap: 70px;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 10px;
  position: relative;
  z-index: 1;
  text-align: left;
}

.case-card-img {
  height: 245px;
  overflow: hidden;
}

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

.case-card-content {
  flex: 1;
}

.case-card-content h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 30px;
}

.case-card-content p {
  font-size: 14px;
  color: var(--text-color-sub);
  margin-bottom: 60px;
  font-weight: bold;
}

.btn-case-detail {
  display: block;
  font-size: 19px;
  max-width: 325px;
  text-align: center;
  margin: 0 auto 0 0;
}

/* Footer */
footer {
  background-color: #002B5B;
  color: #fff;
  padding: 80px 0 30px;
  position: relative;
  /* background-image: url('../img/Rectangle 47.png'); */
  /* Assuming this is the background image */
  background-size: cover;
  background-position: center;
}

.footer-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(../img/footer_bg.png);
  background-size: cover;
  /* Heavy blue overlay */
  z-index: 0;
}

footer .container {
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin: 0 5%;
  text-align: left;
}

/* Left Column */
.footer-left {
  flex: 0 0 45%;
}

.footer-logo img {
  height: 90px;
  margin: 0 0 20px 80px;
}

.footer-tagline {
  font-size: 12px;
  font-weight: bold;
  margin-top: -50px;
  margin-bottom: 48px;
  opacity: 0.9;
}

.footer-address-sns-wrapper {
  margin-left: 80px;
  position: relative;
}

.footer-address-block {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.3;
}

.address-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.footer-socials {
  display: flex;
  gap: 20px;
  position: absolute;
  left: 187px;
  bottom: 20px;
}

.social-icon {
  color: var(--accent-color);
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
}

.social-icon img {
  height: 20px;
  width: auto;
}

/* Center Column */
.footer-center {
  flex: 0 0 25%;
  padding-top: 20px;
}

.footer-heading {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 23px;
  border-bottom: 1px solid var(--accent-color);
  padding-bottom: 21px;
  display: inline-block;
  width: 100%;
}

.footer-service-list li {
  margin-bottom: 10px;
}

.footer-service-list a {
  font-size: 14px;
  font-weight: bold;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.footer-service-list a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Right Column */
.footer-right {
  flex: 0 0 25%;
  padding-top: 20px;
}

.footer-main-links li {
  margin-bottom: 23px;
  border-bottom: 1px solid var(--accent-color);
  padding-bottom: 23px;
}

.footer-main-links li:last-child {
  border: none;
}

.footer-main-links a {
  font-size: 14px;
  font-weight: bold;
  display: block;
}

.footer-main-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Bottom Area */
.footer-bottom {
  text-align: center;
  /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
  /* padding-top: 30px; */
}

.lang-switch {
  margin-bottom: 30px;
  font-size: 14px;
  font-weight: bold;
}

.lang-switch a {
  /* opacity: 0.7; */
}

.lang-switch a.active {
  /* opacity: 1; */
}

footer .bogo-language-switcher {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
}

footer .bogo-language-switcher .ja::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  border-bottom: 1px solid #fff;
  transform: rotate(-72deg);
  margin: 0 5px 5px 10px;
  vertical-align: middle;
}

.copyright {
  font-size: 10px;
  font-weight: bold;
}