:root {
  --primary: #333333;
  /* Deep dark gray */
  --accent: #d4af37;
  /* Elegant metallic gold */
  --text: #111111;
  /* Dark text */
  --bg: #fafafa;
  --bg-dark: #121212;
  --surface: #ffffff;
  --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --fade-duration: 1.2s;
}

/* Base Reset & Variables */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* GSAP/Scroll animations defaults */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--fade-duration) ease-out, transform var(--fade-duration) cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typography */
h1,
h2,
h3,
h4,
.serif {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
}

.title-lg {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.2;
}

.title-md {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.title-md span {
  display: block;
  font-size: 1rem;
  margin-bottom: 3rem;
}


.title-sm {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
}

.text-lead {
  font-size: 1.125rem;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utilities */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.m-0 {
  margin: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.p-0 {
  padding: 0 !important;
}

.pt-0 {
  padding-top: 0 !important;
}

.pb-0 {
  padding-bottom: 0 !important;
}

.pt-xl {
  padding-top: 4rem;
}

.pb-xl {
  padding-bottom: 4rem;
}

.w-25 {
  width: 25%;
}

.w-75 {
  width: 75%;
}

.flex-grow-1 {
  flex-grow: 1;
}

.gap-sm {
  gap: 0.5rem;
}

.gap-md {
  gap: 1rem;
}

.gap-lg {
  gap: 1.5rem;
}

.font-serif-eng {
  font-family: 'Cormorant Garamond', serif;
}

.font-medium {
  font-weight: 500;
}

.font-light {
  font-weight: 300;
}

.opacity-7 {
  opacity: 0.7;
}

.opacity-8 {
  opacity: 0.8;
}

.text-white {
  color: #fff;
}

.bg-primary {
  background: var(--primary);
}

.border-accent-top {
  border-top: 2px solid var(--accent);
}

.border-top-0 {
  border-top: none !important;
}

.border-bottom {
  border-bottom: 1px solid #eee;
}

.d-none {
  display: none !important;
}

/* Components */
.feature-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.feature-subtitle {
  font-size: 0.6em;
  font-weight: 300;
  opacity: 0.8;
}

.tag-primary {
  background: var(--primary);
  color: #fff;
  min-width: 80px;
  text-align: center;
  display: inline-block;
}

.nav-logo-img {
  max-height: 40px;
  width: auto;
}

.sign-img {
  max-height: 80px;
  width: auto;
}

.alert-success {
  background: #f4f9f4;
  border-radius: 4px;
}

.post-thumbnail {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.post-title-text {
  font-size: 2rem;
  line-height: 1.5;
}

.pagination-item {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border: 1px solid var(--primary);
  border-radius: 50%;
  transition: 0.3s;
  color: var(--primary);
  text-decoration: none;
}

.pagination-item.active,
.pagination-item:hover {
  background: var(--primary);
  color: #fff;
}

.sidebar-menu-list {
  list-style: none;
  padding: 0;
  line-height: 2;
  font-size: 0.9rem;
}

.post-tag {
  border: 1px solid #ddd;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
}

.section {
  padding: 8rem 0;
}

.section-dark {
  background-color: var(--primary);
  color: #fff;
}

.section-dark .title-md {
  color: #fff;
}

/* Header */
.r2-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
  color: #fff;
}

.r2-header .global-nav-ul>li>a {
  color: #fff;
}

.r2-header.scrolled,
.r2-header.menu-open {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  color: var(--text);
}

.r2-header.scrolled .global-nav-ul>li>a,
.r2-header.menu-open .global-nav-ul>li>a {
  color: var(--text);
}

.logo-white {
  display: block;
}

.logo-dark {
  display: none;
}

.r2-header.scrolled .logo-white,
.r2-header.menu-open .logo-white {
  display: none !important;
}

.r2-header.scrolled .logo-dark,
.r2-header.menu-open .logo-dark {
  display: block !important;
}

.r2-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo img {
  height: 40px;
  transition: var(--transition);
}

/* Navigation */
/* Hamburger Menu */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 35px;
  height: 24px;
  position: relative;
  z-index: 1000;
  margin-left: auto;
}

.hamburger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.r2-header.scrolled .hamburger-line,
.r2-header.menu-open .hamburger-line {
  background-color: var(--text);
}

.hamburger-line:nth-child(1) {
  top: 0;
}

.hamburger-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-line:nth-child(3) {
  bottom: 0;
}

.hamburger-menu.is-active .hamburger-line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  background-color: var(--text);
}

.hamburger-menu.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.is-active .hamburger-line:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
  background-color: var(--text);
}

.global-nav-ul {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.global-nav-ul>li {
  position: relative;
}

.global-nav-ul>li>a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding-bottom: 5px;
}

.global-nav-ul>li>a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.global-nav-ul>li:hover>a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  padding: 1rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  border-radius: 4px;
}

.global-nav-ul>li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li a {
  display: block;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text);
}

.sub-menu li a:hover {
  background: #f5f5f5;
  color: var(--accent);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Hero Slider Custom Styling */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background-color: var(--primary);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.5s ease-in-out, transform 5s linear;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide.zoom {
  transform: scale(1.1);
}

.hero-slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  color: #fff;
  transform: translateY(20px);
  animation: heroFadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content h1 {
  font-size: clamp(3rem, 3vw, 6rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-weight: 300;
  letter-spacing: 0.1em;
}

.hero-content p {
  font-size: clamp(1em, 3vw, 1em);
  font-weight: 300;
  opacity: 0.9;
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hug Layout Blocks (feature-hug.org style) */
.feature-sec {
  padding: 6rem 0;
}

.feature-sec-dark {
  background: var(--primary);
  color: #fff;
}

.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6rem;
}

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

.feature-img-wrap {
  width: 45%;
  position: relative;
}

.feature-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.feature-brand-box {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--accent);
  color: #fff;
  padding: 1.5rem 2rem;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-text-wrap {
  width: 50%;
}

.feature-quote-box {
  background: #eeeeee;
  /* very light warm gray/gold */
  border-left: none;
  /* remove left border, relying on background color to pop */
  padding: 2.5rem 2rem;
  margin: 2rem 0;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--primary);
}

.feature-sec-dark .feature-quote-box {
  background: rgba(255, 255, 255, 0.05);
  /* translucent white on dark bg */
  color: #fff;
}

.feature-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-bottom: 1rem;
  display: inline-block;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  padding-left: 2rem;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '―';
  position: absolute;
  left: 0;
  top: 1rem;
  color: var(--accent);
}

.feature-sec-dark .feature-list {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-sec-dark .feature-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.feature-link {
  position: relative;
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  padding-bottom: 5px;
  color: var(--primary);
  text-decoration: none;
  font-family: 'Noto Serif JP', serif;
}

.feature-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transition: background-color 0.3s ease;
}

.feature-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.3s ease-out;
}

.feature-link:hover {
  color: var(--primary);
  /* Ensure it stays visible */
}

.feature-link:hover::after {
  width: 100%;
}

.feature-link.text-white {
  color: #fff;
}

@media (max-width: 992px) {

  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    gap: 3rem;
  }

  .feature-img-wrap,
  .feature-text-wrap {
    width: 100%;
  }

  .feature-brand-box {
    bottom: -1rem;
    right: 0;
  }

  .feature-sec {
    padding: 3rem 0;
  }

  .feature-sec-dark {
    padding: 4rem 0;
  }
}

/* Unified Button Styles */
.btn-outline,
.btn-view-all,
.group-link-btn {
  display: inline-block;
  background: transparent !important;
  border: 1px solid var(--primary);
  color: var(--primary) !important;
  transition: color 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  z-index: 1;
  text-decoration: none;
  cursor: pointer;
}

.btn-outline span,
.btn-view-all span,
.group-link-btn span {
  position: relative;
  z-index: 2;
}

.btn-outline::before,
.btn-view-all::before,
.group-link-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
  z-index: -1;
}

.btn-outline:hover,
.btn-view-all:hover,
.group-link-btn:hover {
  color: #fff !important;
  border-color: var(--primary);
}

.btn-outline:hover::before,
.btn-view-all:hover::before,
.group-link-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-outline {
  padding: 1rem 3rem;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* News List */
.news-list {
  border-top: 1px solid #eee;
  margin-top: 3rem;
}

.news-item {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
  transition: var(--transition);
}

.news-item:hover {
  background: #f9f9f9;
  padding-left: 1rem;
}

.news-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #888;
  width: 120px;
  flex-shrink: 0;
}

.news-title {
  font-size: 1.1rem;
  color: var(--text);
}

/* Common Pages Hero */
.page-hero {
  padding: 12rem 0 6rem;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../../img/fv.webp');
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}

.page-hero-lg {
  background-image: none !important;
  background-color: var(--primary) !important;
}

.page-hero h1 {
  font-size: 4rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Grid Layouts for Domain */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.domain-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.domain-card:hover {
  transform: translateY(-10px);
}

.domain-card-img {
  height: 200px;
  background: #eee;
  overflow: hidden;
}

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

.domain-card-body {
  padding: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.domain-card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: 'Cormorant Garamond', serif;
}

.domain-card-text {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Lists & Tables */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.info-table th,
.info-table td {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.info-table th {
  width: 25%;
  font-weight: 500;
  color: var(--primary);
}

/* Forms */
.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

/* Footer */
.r2-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem;
}

.r2-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3rem;
}

.r2-footer-col {
  flex: 1;
}

.r2-footer-logo img {
  filter: brightness(0) invert(1);
  height: auto;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 200px;
  min-width: 150px;
  object-fit: contain;
}

.r2-footer-menu {
  display: flex;
  gap: 3rem;
  letter-spacing: 0;
}

.r2-footer-nav-links {
  display: flex;
  gap: 4rem;
}

.r2-footer-group {
  display: flex;
  gap: 3rem;
}

.r2-footer-menu-col li {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-sub-menu {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-sub-menu li {
  margin-bottom: 0.5rem !important;
  font-size: 0.85rem;
  opacity: 0.8;
}

.r2-footer-menu-col a:hover {
  color: #fff;
}

.r2-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.policy-nav a {
  margin-right: 1.5rem;
  font-size: 0.85rem;
}

.policy-nav a:hover {
  color: #fff;
}

.r2-footer-copy {
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {

  .r2-header-inner,
  .r2-footer-inner {
    width: 100%;
  }

  .policy-nav {
    display: grid;
    gap: 0.2rem;
  }

  .footer-top-wrap {
    flex-direction: column;
    align-items: center;
    gap: 4rem;
  }

  .r2-footer-logo {
    text-align: center;
    margin: 0 auto;
  }

  .r2-footer-menu {
    flex-direction: column;
    gap: 1rem;
  }

  /* Block 2 & 3: Perfectly Aligned 2-Column Grids */
  .r2-footer-nav-links,
  .r2-footer-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
  }

  .r2-footer-menu-col li {
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: -0.5px;
  }

  .footer-sub-menu li {
    font-size: 0.75rem;
  }

  .r2-footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .r2-footer-content .header-logo {
    margin: 0 auto 2rem auto;
  }


  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 1rem 0;
  }

  .info-table th {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* ------------------- ADDED UTILITIES -------------------- */
/* Utility & Layout Classes */
.margin-top-sm {
  margin-top: 1rem;
}

.margin-top-md {
  margin-top: 2rem;
}

.margin-top-lg {
  margin-top: 4rem;
}

.margin-top-xl {
  margin-top: 6rem;
}

.margin-bottom-xs {
  margin-bottom: 0.5rem;
}

.margin-bottom-sm {
  margin-bottom: 1rem;
}

.margin-bottom-md {
  margin-bottom: 1.5rem;
}

.margin-bottom-lg {
  margin-bottom: 2rem;
}

.margin-bottom-xl {
  margin-bottom: 3rem;
}

.padding-bottom-sm {
  padding-bottom: 0.5rem;
}

.padding-bottom-md {
  padding-bottom: 2rem;
}

.padding-top-xl {
  padding-top: 10rem;
  padding-bottom: 4rem;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-bold {
  font-weight: bold;
}

.text-muted {
  color: #555;
}

.text-light {
  color: #888;
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.text-inherit {
  color: inherit;
}

.text-xl {
  font-size: 1.5rem;
}

.text-lg {
  font-size: 1.2rem;
}

.text-md {
  font-size: 1.1rem;
}

.text-sm {
  font-size: 0.9rem;
}

.text-xs {
  font-size: 0.85rem;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

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

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

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

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

.text-decoration-none {
  text-decoration: none;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.gap-sm {
  gap: 0.5rem;
}

.gap-md {
  gap: 1.5rem;
}

.gap-lg {
  gap: 2rem;
}

.z-index-10 {
  z-index: 10;
  position: relative;
}

/* Page Nav */
.page-nav {
  padding: 0.5rem 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 72px;
  z-index: 900;
}

.page-nav-inner {
  display: flex;
  justify-content: center;
  gap: 4rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.page-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.page-nav-link .eng {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  margin-bottom: 0.2rem;
  letter-spacing: 0.05em;
}

.page-nav-link .jp {
  font-size: 0.75rem;
  color: #888;
}

.page-nav-link:hover,
.page-nav-link:hover .jp {
  color: var(--accent);
}

/* Split Layout */
.split-layout {
  display: flex;
  gap: 4rem;
  margin-bottom: 6rem;
  align-items: flex-start;
}

.split-left {
  width: 30%;
  flex-shrink: 0;
  border-top: 1px solid var(--accent);
  padding-top: 1.5rem;
}

.split-right {
  width: 70%;
  padding-top: 1.5rem;
}

.split-left-plain {
  width: 30%;
  flex-shrink: 0;
  padding-top: 0.5rem;
}

.split-left-plain h3 {
  font-size: 2rem;
}

/* Value Vertical List */
.value-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.value-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.value-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.value-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 0.8;
  font-style: italic;
  opacity: 0.9;
}

.value-content {
  flex-grow: 1;
}

/* Message Layout */
.msg-layout {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.msg-img {
  width: 40%;
  flex-shrink: 0;
}

.msg-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.msg-text {
  width: 60%;
}

/* Containers */
.max-w-1000 {
  max-width: 1000px;
  margin: 0 auto;
}

.max-w-900 {
  max-width: 900px;
  margin: 0 auto;
}

.max-w-800 {
  max-width: 800px;
  margin: 0 auto;
}

/* Detail Pages & Cards */
.card-container {
  background: #fff;
  padding: 4rem;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.card-dark {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 8px;
}

.card-dark-lg {
  background: rgba(255, 255, 255, 0.08);
  padding: 4rem 2rem;
  border-radius: 8px;
}

.detail-list-item {
  background: #fff;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* Forms & Links */
.form-wrap {
  background: #fff;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .form-wrap {
    padding: 1rem;
  }
}

/* reCAPTCHAバッジ非表示（表示位置への注釈を設置しているため） */
.grecaptcha-badge {
  visibility: hidden !important;
}

.group-link-btn {
  padding: 1.5rem;
  display: block;
}

.group-link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .group-link-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.checkbox-label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-text {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-align: left;
}

.text-underline {
  text-decoration: underline;
}

/* Company Elements */
.philosophy-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: flex-start;
}

.philosophy-col {
  flex: 1;
  min-width: 300px;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.map-wrap {
  width: 100%;
  height: 400px;
  background: #eee;
  position: relative;
}

.map-frame {
  border: 0;
  width: 100%;
  height: 100%;
}

.sign-text {
  margin-top: 3rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
}

.domain-tag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.domain-tag {
  font-size: 0.75rem;
  background: transparent;
  padding: 0.2rem 0.6rem;
  color: #333;
  border: 1px solid #333;
  transition: color 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-block;
}

.domain-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: #333;
  transition: width 0.3s ease;
  z-index: -1;
}

a.domain-tag:hover {
  color: #fff;
}

a.domain-tag:hover::before {
  width: 100%;
}

span.domain-tag {
  pointer-events: none;
}

.alliance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.alliance-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.alliance-logo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.alliance-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Photo Grid */
.photo-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.photo-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.photo-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0;
  /* Ensures consistent sharp corners */
}

/* Policy Details */
.policy-heading {
  border-bottom: 1px solid #eee;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.8rem, 4vw, 1rem);
}

.policy-list {
  list-style: disc;
  margin-left: 1.5rem;
  margin-top: 1rem;
}

.policy-footer {
  border-top: 1px solid #eee;
  margin-top: 3rem;
  padding-top: 2rem;
}

/* Miscellaneous Adjustments */
.footer-logo-img {
  max-height: 100px;
  filter: brightness(0) invert(1);
}

.footer-top-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
  width: 100%;
}

.news-offset {
  font-size: 1rem;
  opacity: 0.5;
  margin-left: 10px;
}

/* .btn-view-all rules are merged into the unified button styles */

.domain-card-link {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.domain-card-link:hover {
  opacity: 0.95;
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.arrow-right {
  display: inline-block;
  transform: translateX(5px);
}

/* Responsive overrides */
@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }

  .global-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #eee;
    z-index: 999;
  }

  .global-nav.active {
    display: block;
  }

  .global-nav.active .global-nav-ul>li>a {
    color: var(--text) !important;
  }

  .global-nav-ul {
    flex-direction: column;
    gap: 0;
  }

  .global-nav-ul>li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  .global-nav-ul>li>a {
    display: block;
    padding: 1rem 0;
  }

  .sub-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: block;
    /* 常時表示 */
    background: #f9f9f9;
  }

  /* Serviceの親liはサブメニューと一体化させるためborder-bottomを除去 */
  .has-drop {
    border-bottom: none !important;
  }

  .page-nav-inner {
    gap: 1rem;
    justify-content: flex-start;
    padding: 0 1rem;
  }

  .split-layout {
    flex-direction: column-reverse;
    gap: 1.5rem;
    margin-bottom: 4rem;
  }

  .split-left,
  .split-right,
  .split-left-plain {
    width: 100%;
    border-top: none;
    padding-top: 0;
  }

  .split-left {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .msg-layout {
    flex-direction: column;
    gap: 2.5rem;
    align-items: stretch;
  }

  .msg-img,
  .msg-text {
    width: 100%;
  }

  /* スマホ時：写真を本文より上（タイトルの直後）に表示 */
  .msg-img {
    order: -1;
  }

  .msg-text {
    order: 1;
  }

  /* 署名エリアは右寄せを維持 */
  .msg-text .text-right {
    text-align: right;
  }

  .sign-img {
    display: block;
    margin-left: auto;
  }

  .photo-grid.cols-2,
  .photo-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Service Domain List Layout
   ========================================================================== */
.service-list {
  margin-top: 4rem;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 6rem;
  margin-bottom: 8rem;
  text-decoration: none;
  color: var(--text);
  position: relative;
  transition: opacity 0.3s ease;
}

.service-item:hover {
  opacity: 0.9;
}

.service-item-img {
  width: 55%;
  overflow: hidden;
}

.service-item-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-item:hover .service-item-img img {
  transform: scale(1.03);
}

.service-item-text {
  width: 45%;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
}

.service-item-num {
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.service-item-title-eng {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.15em;
  color: var(--primary);
  text-transform: uppercase;
}

.service-item-title-jp {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 3rem;
  color: var(--primary);
  line-height: 1.2;
}

.service-item-catch {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.service-item-desc {
  font-size: 0.95rem;
  line-height: 2;
  color: #555;
}

@media (max-width: 992px) {
  .service-item {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 5rem;
  }

  .service-item-img,
  .service-item-text {
    width: 100%;
  }

  .service-item-title-jp {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
}

/* TOP Page Services Grid (5-column) */
.top-services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
}

.top-service-box {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
  text-decoration: none;
  background: var(--bg-soft);
}

.top-service-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-service-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.8) 100%);
  transition: background 0.3s ease;
}

.top-service-box:hover::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.6) 100%);
}

.top-service-box:hover img {
  transform: scale(1.08);
}

.top-service-box-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1.5rem;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.top-service-box-title h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: 0.05em;
}

.top-service-box-title p {
  font-size: 0.8rem;
  opacity: 0.9;
  font-weight: 500;
  margin: 0;
}

.top-service-box .arrow-circle {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 2;
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.top-service-box:hover .arrow-circle {
  transform: translateX(5px) translateY(-5px);
  background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 1200px) {
  .top-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .top-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .top-service-box {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 480px) {
  .top-services-grid {
    grid-template-columns: 1fr;
  }

  .top-service-box {
    aspect-ratio: 16 / 9;
  }
}

/* Group Intro Box */
.group-intro-box {
  background: var(--bg-soft, #f7f5f0);
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 3.5rem;
}

.group-intro-text-wrap {
  text-align: center;
  width: 100%;
}

.group-intro-text {
  font-size: 1.15rem;
  font-weight: bold;
  margin-bottom: 0;
  color: var(--primary);
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.group-intro-images {
  display: flex;
  justify-content: center;
  width: 100%;
}

.group-intro-images img {
  max-width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .group-intro-box {
    flex-direction: row;
    justify-content: center;
    gap: 4rem;
    padding: 1rem;
  }

  .group-intro-text-wrap {
    width: auto;
    flex: 1;
    text-align: left;
  }

  .group-intro-images {
    width: auto;
    flex-shrink: 0;
    justify-content: center;
  }

  .group-intro-images img {
    max-width: 300px;
    width: 100%;
  }
}

/* External Link Icons */
a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.4em;
  background-image: url('../../img/common/t-link_black.webp');
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  transform: translateY(-1px);
}

.r2-footer a[target="_blank"]::after,
.bg-primary a[target="_blank"]::after,
.text-white a[target="_blank"]::after,
.feature-link.text-white::after,
a.text-white[target="_blank"]::after,
.btn-outline[target="_blank"]:hover::after,
.btn-view-all[target="_blank"]:hover::after,
.group-link-btn[target="_blank"]:hover::after,
.domain-tag[target="_blank"]:hover::after {
  background-image: url('../../img/common/t-link_white.webp');
}

/* Specific block-card exceptions where inline ::after on the anchor messes up layout */
a[target="_blank"].alliance-card::after,
a[target="_blank"].service-item::after,
a[target="_blank"].domain-card-link::after,
a[target="_blank"].no-ext-icon::after {
  display: none !important;
}

/* Re-attach the background image icon inside the title for those block cards */
a[target="_blank"].alliance-card h3::after,
a[target="_blank"].service-item h3::after,
a[target="_blank"].domain-card-link h3::after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.4em;
  background-image: url('../../img/common/t-link_black.webp');
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  transform: translateY(-2px);
}

/* News List Company Tags */
.news-company-tag {
  display: inline-block;
  background: var(--bg-soft, #f4f3f0);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin: 0;
  pointer-events: none;
  font-weight: 500;
}

.news-company-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

/* TOP Page Loader */
.site-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.site-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.site-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.site-loader-logo {
  max-width: 200px;
  width: 50vw;
  opacity: 0;
  animation: fadeUpLogo 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.site-loader-text {
  color: #fff;
  font-family: var(--font-eng), serif;
  font-size: clamp(1rem, 3vw, 1.3rem);
  letter-spacing: 0.25em;
  font-weight: 300;
  display: flex;
  justify-content: center;
}

.site-loader-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInLetter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.site-loader-text span.spacer {
  width: 0.5em;
}

/* Sequential animation delays for each letter */
.site-loader-text span:nth-child(1) {
  animation-delay: 0.5s;
}

.site-loader-text span:nth-child(2) {
  animation-delay: 0.6s;
}

.site-loader-text span:nth-child(3) {
  animation-delay: 0.7s;
}

/* spacer */
.site-loader-text span:nth-child(4) {
  animation-delay: 0.8s;
}

.site-loader-text span:nth-child(5) {
  animation-delay: 0.9s;
}

.site-loader-text span:nth-child(6) {
  animation-delay: 1.0s;
}

.site-loader-text span:nth-child(7) {
  animation-delay: 1.1s;
}

.site-loader-text span:nth-child(8) {
  animation-delay: 1.2s;
}

.site-loader-text span:nth-child(9) {
  animation-delay: 1.3s;
}

.site-loader-text span:nth-child(10) {
  animation-delay: 1.4s;
}

.site-loader-text span:nth-child(11) {
  animation-delay: 1.5s;
}

@keyframes fadeInLetter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUpLogo {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Comprehensive Mobile Layout Overrides
   ========================================================================== */
@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  /* News Items */
  .news-item {
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
    padding: 1.5rem 0;
  }

  .news-date {
    width: auto;
  }

  .news-content-wrap {
    flex-basis: 100%;
    width: 100%;
  }

  /* Values Section */
  .value-item {
    flex-direction: column;
    gap: 1rem;
  }

  .value-num {
    margin-bottom: 0.5rem;
  }

  /* Service Detail Scaling */
  .service-item-title-jp {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .service-item-num {
    margin-bottom: 1rem;
  }

  /* Typography Scaling */
  .hero-content h1,
  .page-hero h1 {
    font-size: clamp(1rem, 6vw, 3rem);
    word-break: break-word;
    letter-spacing: 0.1em;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .display-title {
    font-size: 2.2rem;
  }

  /* Company List Alignment */
  .alliance-grid {
    grid-template-columns: 1fr;
  }

  .alliance-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.contact-alert {
  padding: 20px;
  margin-bottom: 40px;
  text-align: center;
  border: 1px solid;
}

.contact-alert.is-success {
  background: #f0f7f0;
  color: #2d5a2d;
  border-color: #d1e7d1;
}

.contact-alert.is-error {
  background: #fff0f0;
  color: #a94442;
  border-color: #ebccd1;
}

.common-tag-mini {
  font-size: 0.6rem;
  padding: 2px 8px;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  margin-left: 10px;
  vertical-align: middle;
}

.checkbox-label {
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox-label a {
  text-decoration: underline;
  color: var(--color-gold);
}