/* Responsive Enhancement Added — Non-destructive scaling version (vw-based) */

/* ========================================
   COMPANY PAGE STYLES
   ======================================== */

/* Page Background */
body.page-template-company,
.page-template-company {
  background-color: #000000;
  position: relative;
}

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  --vw-with-scrollbar: 100vw;
  --header-height-pc: calc(88 * var(--vw-with-scrollbar) / 1920);
  --header-height-sp: calc(64 * var(--vw-with-scrollbar) / 400);

  --company-primary-color: #ffdd57;
  --company-text-color: #fff;
  --company-bg-color: #000;
  --company-border-color: #333;
  --company-overlay-color: rgba(76, 175, 79, 0.486);

  /* Typography */
  --title-size-xl: 150px;
  --title-size-lg: 100px;
  --title-size-md: 90px;
  --title-size-sm: 50px;
  --title-size-xs: 50px;
  --title-size-xxs: 35px;

  --subtitle-size-lg: 24px;
  --subtitle-size-md: 40px;
  --subtitle-size-sm: 18px;
  --subtitle-size-xs: 16px;
  --subtitle-size-xxs: 14px;

  /* Spacing */
  --section-padding-lg: 120px;
  --section-padding-md: 80px;
  --section-padding-sm: 60px;
  --section-padding-xs: 50px;
}

/* ========================================
   COMMON TITLE STYLES
   ======================================== */
.section-title-en {
  font-size: var(--title-size-xl);
  font-weight: 900;
  letter-spacing: 0.1em;
  margin: 0;
  line-height: 0.9;
  font-family: var(--font-english);
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--company-text-color);
  text-decoration-thickness: 2px;
  text-decoration-thickness: calc(2 * var(--vw-with-scrollbar) / 1920);
  text-underline-offset: 2px;
  text-underline-offset: calc(2 * var(--vw-with-scrollbar) / 1920);
  color: var(--company-text-color);
  display: inline-block;
  width: fit-content;
}

.section-title-jp {
  font-size: var(--subtitle-size-md);
  margin-top: 10px;
  margin-top: calc(10 * var(--vw-with-scrollbar) / 1920);
  color: var(--company-text-color);
  font-weight: normal;
  font-family: var(--font-japanese);
}

/* ========================================
   1. HERO COMPANY SECTION
   ======================================== */
.hero-company {
  position: relative;
  width: 100%;
  height: 110vh;
  max-height: 1200px;
  max-height: calc(1000 * var(--vw-with-scrollbar) / 1920);
  min-height: 600px;
  min-height: calc(600 * var(--vw-with-scrollbar) / 1920);
  overflow: hidden;
  margin: 0;
  padding: 0px 0 0 0;
  background-color: var(--company-bg-color);
  z-index: 1;
}

.hero-company__container {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  z-index: 2;
}

.hero-company__content {
  position: absolute;
  top: 120px;
  top: calc(120 * var(--vw-with-scrollbar) / 1920);
  left: 90px;
  left: calc(90 * var(--vw-with-scrollbar) / 1920);
  z-index: 10;
  max-width: 600px;
  max-width: calc(600 * var(--vw-with-scrollbar) / 1920);
}

.hero-company__title {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  gap: calc(20 * var(--vw-with-scrollbar) / 1920);
}

/* Line Parts Base Styles */
.line-parts {
  display: inline-block;
  overflow: hidden;
}

.line-bg-black {
  background-color: #000;
  padding-right: 50px;
  padding-right: calc(50 * var(--vw-with-scrollbar) / 1920);
}

.line-bg-black2 {
  background-color: #000;
  padding-right: 0px;
}

/* Line Parts Animation for Title Section */
.hero-company__content .line-parts {
  width: fit-content;
  display: inline-block;
  overflow: hidden;
  position: relative;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
  padding-top: 5px;
}

.hero-company__content .line-parts.is-active {
  transform: scale(1);
}

.hero-company__content .line-parts:before,
.hero-company__content .line-parts:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.36, 0.48, 0.02, 0.98);
}

.hero-company__content .line-parts:before {
  transform: translateX(-100%);
}

.hero-company__content .line-parts:after {
  transform: translateX(0);
}

.hero-company__content .line-parts.is-active:before {
  transform: translateX(0);
}

.hero-company__content .line-parts.is-active:after {
  transform: translateX(100%);
  transition: transform 0.6s ease 0.4s;
}

.hero-company__content .line-parts.line-bg-black:before,
.hero-company__content .line-parts.line-bg-black:after {
  background-color: #000;
}

.hero-company__content .line-parts:before {
  z-index: 1;
}

.hero-company__content .line-parts:after {
  z-index: 5;
}

.hero-company__content .line-parts .hero-company__title-en,
.hero-company__content .line-parts .hero-company__title-jp {
  position: relative;
  z-index: 2;
}

.hero-company__title-en {
  font-size: 240px;
  font-size: clamp(120px, calc(240 * var(--vw-with-scrollbar) / 1920), 240px);
  font-weight: 900;
  margin: 0;
  line-height: 0.75;
  font-family: var(--font-english);
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--company-text-color);
  text-decoration-thickness: 2px;
  text-decoration-thickness: calc(2 * var(--vw-with-scrollbar) / 1920);
  text-underline-offset: 2px;
  text-underline-offset: calc(2 * var(--vw-with-scrollbar) / 1920);
  color: var(--company-text-color);
  background: transparent;
  width: fit-content;
}

.hero-company__title-jp {
  font-size: 40px;
  font-size: clamp(20px, calc(40 * var(--vw-with-scrollbar) / 1920), 40px);
  color: var(--company-text-color);
  font-weight: bold;
  text-align: left;
  font-family: var(--font-japanese);
  background: transparent;
  display: inline-block;
  width: fit-content;
  margin: 0;
}

.hero-company__image {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.hero-company__image .image-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  display: block;
  overflow: hidden;
}

.hero-company__image img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

/* Gradient overlay animation */
.hero-company__image .gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to top, #ffdd57, transparent);
  pointer-events: none;
  z-index: 2;
}

.hero-company__image .gradient-overlay.animate-gradient {
  animation: gradientOnce 3s ease-in-out forwards;
}

@keyframes gradientOnce {
  0% {
    height: 0;
    opacity: 0;
  }

  30% {
    height: 60%;
    opacity: 1;
  }

  70% {
    height: 60%;
    opacity: 1;
  }

  100% {
    height: 60%;
    opacity: 0;
  }
}

/* Business Text Background - Parallax */
.company-text-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: visible;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  will-change: transform;
}

.business-text-pattern {
  position: absolute;
  width: 400%;
  height: 100%;
  top: 0%;
  left: 0;
  transform: translateY(-80%) rotate(-15.69deg);
  display: flex;
  align-items: center;
  animation: business-text-scroll 40s linear infinite;
  gap: 60px;
  gap: calc(60 * var(--vw-with-scrollbar) / 1920);
}

.company-line {
  font-size: 80px;
  font-size: calc(80 * var(--vw-with-scrollbar) / 1920);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 0.8;
  font-family: var(--font-english);
  text-transform: uppercase;
  font-style: italic;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: left;
  white-space: nowrap;
  opacity: 1;
  user-select: none;
}

.company-line img {
  height: clamp(30px, calc(60 * var(--vw-with-scrollbar) / 1920), 60px);
  width: auto;
  display: block;
  vertical-align: baseline;
}

.company-line-1 {
  background: linear-gradient(to bottom, #ffffff 0%, #00552e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.company-line-2 {
  color: transparent;
  -webkit-text-stroke: 1px #ffd557;
  font-style: italic;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 900;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: auto;
  paint-order: stroke fill;
  text-rendering: geometricPrecision;
}

/* Image Wrapper */
.image-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
  width: fit-content;
  height: fit-content;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.image-wrapper img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: right bottom;
  display: block;
}

/* Static Noise Effect */
.image-wrapper.static-noise-effect {
  overflow: hidden;
}

.image-wrapper.static-noise-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><filter id="noise"><feTurbulence baseFrequency="0.95" numOctaves="4" result="noise" seed="1"/><feColorMatrix in="noise" type="saturate" values="0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.8"/></svg>');
  background-size: 120px 120px;
  background-size: calc(120 * var(--vw-with-scrollbar) / 1920)
    calc(120 * var(--vw-with-scrollbar) / 1920);
  animation: static-noise 0.1s infinite steps(8);
  z-index: 10;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 1;
}

.image-wrapper.static-noise-effect::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><defs><filter id="grain"><feTurbulence baseFrequency="1.5" numOctaves="3" result="noise" seed="3"/><feColorMatrix in="noise" type="saturate" values="0"/></filter></defs><rect width="100%" height="100%" filter="url(%23grain)" opacity="0.7"/></svg>');
  background-size: 70px 70px;
  background-size: calc(70 * var(--vw-with-scrollbar) / 1920)
    calc(70 * var(--vw-with-scrollbar) / 1920);
  animation: static-flicker 0.08s infinite steps(6),
    static-movement 0.15s infinite steps(4);
  z-index: 11;
  pointer-events: none;
  opacity: 0.9;
  mix-blend-mode: overlay;
}

/* Business Text Animations */
@keyframes business-text-scroll {
  0% {
    transform: translateY(-80%) rotate(-15.69deg) translateX(0);
  }

  100% {
    transform: translateY(-80%) rotate(-15.69deg) translateX(-50%);
  }
}

/* Static Noise Animations */
@keyframes static-noise {
  0% {
    background-position: 0px 0px;
  }

  12% {
    background-position: 0px 1px;
  }

  25% {
    background-position: 0px -1px;
  }

  37% {
    background-position: 0px 2px;
  }

  50% {
    background-position: 1px 0px;
  }

  62% {
    background-position: -1px 1px;
  }

  75% {
    background-position: 0px -2px;
  }

  87% {
    background-position: 2px 0px;
  }

  100% {
    background-position: 0px 0px;
  }
}

@keyframes static-flicker {
  0% {
    opacity: 0.5;
  }

  8% {
    opacity: 0.7;
  }

  16% {
    opacity: 0.4;
  }

  24% {
    opacity: 0.6;
  }

  32% {
    opacity: 0.8;
  }

  40% {
    opacity: 0.3;
  }

  48% {
    opacity: 0.9;
  }

  56% {
    opacity: 0.5;
  }

  64% {
    opacity: 0.7;
  }

  72% {
    opacity: 0.4;
  }

  80% {
    opacity: 0.6;
  }

  88% {
    opacity: 0.8;
  }

  96% {
    opacity: 0.5;
  }

  100% {
    opacity: 0.7;
  }
}

@keyframes static-movement {
  0% {
    background-position: 0px 0px;
  }

  25% {
    background-position: 0px 2px;
  }

  50% {
    background-position: 0px 4px;
  }

  75% {
    background-position: 0px -3px;
  }

  100% {
    background-position: 0px 0px;
  }
}

/* ========================================
   2. MESSAGE SECTION
   ======================================== */
.message {
  padding: 400 0px;
  padding: calc(400 * var(--vw-with-scrollbar) / 1920) 0;
  background-color: transparent;
  color: var(--company-text-color);
  position: relative;
  z-index: 1;
}

.message__container {
  max-width: 1000px;
  max-width: calc(1000 * var(--vw-with-scrollbar) / 1920);
  margin: 0 auto;
  padding: 0 20px;
  padding: 0 calc(20 * var(--vw-with-scrollbar) / 1920);
}

.message__header {
  text-align: center;
  margin-bottom: 80px;
  margin-bottom: calc(80 * var(--vw-with-scrollbar) / 1920);
}

.message__title {
  margin: 0;
}

.message__title-en {
  font-size: 150px;
  font-size: clamp(75px, calc(150 * var(--vw-with-scrollbar) / 1920), 150px);
  font-weight: 900;
  margin-bottom: -10px;
  margin-bottom: calc(-10 * var(--vw-with-scrollbar) / 1920);
  line-height: 0.9;
  font-family: var(--font-english);
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: #fff;
  text-decoration-thickness: 2px;
  text-decoration-thickness: calc(2 * var(--vw-with-scrollbar) / 1920);
  text-underline-offset: 2px;
  text-underline-offset: calc(2 * var(--vw-with-scrollbar) / 1920);
  color: #fff;
  display: block;
}

.message__title-jp {
  display: block;
  font-size: 24px;
  font-size: clamp(18px, calc(24 * var(--vw-with-scrollbar) / 1920), 24px);
  font-weight: bold;
  color: var(--company-text-color);
  letter-spacing: 0.15em;
  font-family: var(--font-japanese);
}

.message__content {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  gap: calc(80 * var(--vw-with-scrollbar) / 1920);
}

.message__image {
  flex: 0 0 400px;
  flex: 0 0 calc(400 * var(--vw-with-scrollbar) / 1920);
  width: 400px;
  width: calc(400 * var(--vw-with-scrollbar) / 1920);
  opacity: 0;
  transform: scale(0.3);
  /* transition: all 0.8s ease-out; */
  transition: all 0.5s ease-out;
  position: relative;
  z-index: 2;
}

.message__image.animate-in {
  opacity: 1;
  transform: scale(1);
  /* animation: zoomIn 0.3s ease-out; */
}

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

/* Zoom In Animation */
@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.message__text {
  flex: 1;
  padding-top: 20px;
  padding-top: calc(20 * var(--vw-with-scrollbar) / 1920);
}

.message__body {
  margin-bottom: 60px;
  margin-bottom: calc(60 * var(--vw-with-scrollbar) / 1920);
}

.message__paragraph {
  font-size: 18px;
  font-size: clamp(14px, calc(18 * var(--vw-with-scrollbar) / 1920), 18px);
  font-weight: bold;
  line-height: 1.8;
  color: var(--company-text-color);
  margin-bottom: 20px;
  margin-bottom: calc(20 * var(--vw-with-scrollbar) / 1920);
  font-family: var(--font-japanese);
  letter-spacing: 0.02em;
}

.message__paragraph:last-child {
  margin-bottom: 0;
}

/* Scroll-based color animation for characters */
.message__paragraph span,
.message__signature-title span,
.message__signature-name span {
  color: #555;
  /* Initial dark color */
  transition: color 0.1s ease-out;
}

.message__signature {
  text-align: right;
}

.message__signature-text {
  margin: 0;
}

.message__signature-title {
  display: inline-block;
  font-size: 18px;
  font-size: clamp(12px, calc(18 * var(--vw-with-scrollbar) / 1920), 18px);
  font-weight: bold;
  color: var(--company-text-color);
  margin-right: 20px;
  margin-right: calc(20 * var(--vw-with-scrollbar) / 1920);
  font-family: var(--font-japanese);
}

.message__signature-name {
  display: inline-block;
  font-size: 18px;
  font-size: clamp(14px, calc(18 * var(--vw-with-scrollbar) / 1920), 18px);
  font-weight: bold;
  color: var(--company-text-color);
  font-family: var(--font-japanese);
}

/* ========================================
   3. PROFILE SECTION
   ======================================== */
.profile {
  padding: var(--section-padding-lg) 0;
  background-color: transparent;
  color: var(--company-text-color);
  position: relative;
  z-index: 1;
}

.profile__container {
  max-width: 1000px;
  max-width: calc(1000 * var(--vw-with-scrollbar) / 1920);
  margin: 0 auto;
  padding: 0 20px;
  padding: 0 calc(20 * var(--vw-with-scrollbar) / 1920);
}

.profile__header {
  text-align: center;
  margin-bottom: 80px;
  margin-bottom: calc(80 * var(--vw-with-scrollbar) / 1920);
}

.profile__title {
  margin: 0;
}

.profile__title-en {
  display: block;
  font-size: var(--title-size-xl);
  font-weight: 900;
  color: var(--company-text-color);
  line-height: 0.8;
  font-style: italic;
  text-transform: uppercase;
  font-family: var(--font-english);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-underline-offset: calc(2 * var(--vw-with-scrollbar) / 1920);
  text-decoration-thickness: 2px;
  text-decoration-thickness: calc(2 * var(--vw-with-scrollbar) / 1920);
}

.profile__title-jp {
  display: block;
  font-size: 24px;
  font-size: clamp(18px, calc(24 * var(--vw-with-scrollbar) / 1920), 24px);
  font-weight: bold;
  color: var(--company-text-color);
  letter-spacing: 0.15em;
  font-family: var(--font-japanese);
  /* margin-top: -10px; */
  margin-top: -5px;
  /* margin-top: calc(-10 * var(--vw-with-scrollbar) / 1920); */
  margin-top: calc(-5 * var(--vw-with-scrollbar) / 1920);
}

.profile__content {
  width: 100%;
  background-color: #000;
}

.profile__table {
  width: 100%;
  border-collapse: collapse;
}

.profile__row {
  border-bottom: none;
  opacity: 0;
  transform: translateY(30px);
  transform: translateY(calc(30 * var(--vw-with-scrollbar) / 1920));
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.profile__row.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.profile__label {
  padding: 25px 0;
  padding: calc(25 * var(--vw-with-scrollbar) / 1920) 0;
  text-align: left;
  font-size: 23px;
  font-size: clamp(16px, calc(23 * var(--vw-with-scrollbar) / 1920), 23px);
  font-weight: bold;
  color: var(--company-primary-color);
  width: 30%;
  vertical-align: top;
  font-family: var(--font-japanese);
  border-bottom: 1px solid transparent;
  transition: border-color 0.6s ease-out;
}

.profile__row.fade-in .profile__label {
  border-bottom-color: #ffdd57;
}

.profile__value {
  padding: 25px 0 25px 40px;
  padding: calc(25 * var(--vw-with-scrollbar) / 1920) 0
    calc(25 * var(--vw-with-scrollbar) / 1920)
    calc(40 * var(--vw-with-scrollbar) / 1920);
  text-align: left;
  font-size: 23px;
  font-size: clamp(16px, calc(23 * var(--vw-with-scrollbar) / 1920), 23px);
  font-weight: bold;
  color: var(--company-text-color);
  line-height: 1.8;
  vertical-align: top;
  font-family: var(--font-japanese);
  border-bottom: 1px solid transparent;
  transition: border-color 0.6s ease-out;
}

.profile__row.fade-in .profile__value {
  border-bottom-color: #fff;
}

/* ========================================
   4. HISTORY SECTION
   ======================================== */
.history {
  position: relative;
  padding: var(--section-padding-lg) 0;
  overflow: hidden;
  z-index: 1;
  background-color: transparent;
  scroll-margin-top: 120px;
  scroll-margin-top: calc(120 * var(--vw-with-scrollbar) / 1920);
}

.history__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.history__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
}

.history__background .noise-canvas {
  object-fit: cover;
  object-position: center;
}

.history__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.history__container {
  position: relative;
  max-width: 1000px;
  max-width: calc(1000 * var(--vw-with-scrollbar) / 1920);
  margin: 0 auto;
  padding: 0 20px;
  padding: 0 calc(20 * var(--vw-with-scrollbar) / 1920);
  z-index: 3;
}

.history__header {
  text-align: center;
  margin-bottom: 80px;
  margin-bottom: calc(80 * var(--vw-with-scrollbar) / 1920);
}

.history__title {
  margin: 0;
}

.history__title-en {
  display: block;
  font-size: var(--title-size-xl);
  font-weight: 900;
  color: var(--company-text-color);
  line-height: 0.8;
  font-style: italic;
  margin-bottom: 0px;
  text-transform: uppercase;
  font-family: var(--font-english);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-underline-offset: calc(2 * var(--vw-with-scrollbar) / 1920);
  text-decoration-thickness: 3px;
  text-decoration-thickness: calc(3 * var(--vw-with-scrollbar) / 1920);
}

.history__title-jp {
  display: block;
  font-size: 24px;
  font-size: clamp(18px, calc(24 * var(--vw-with-scrollbar) / 1920), 24px);
  font-weight: bold;
  color: var(--company-text-color);
  letter-spacing: 0.15em;
  font-family: var(--font-japanese);
  margin-top: -10px;
  margin-top: calc(-10 * var(--vw-with-scrollbar) / 1920);
}

.history__content {
  width: 100%;
}

.history__timeline {
  max-width: 1000px;
  max-width: calc(1000 * var(--vw-with-scrollbar) / 1920);
  margin: 0 auto;
}

.history__item {
  display: flex;
  align-items: stretch;
  margin-bottom: 2px;
  margin-bottom: calc(2 * var(--vw-with-scrollbar) / 1920);
  background-color: rgba(255, 255, 255, 0.9);
  min-height: 60px;
  min-height: calc(60 * var(--vw-with-scrollbar) / 1920);
  opacity: 0;
  transform: translateY(30px);
  transform: translateY(calc(30 * var(--vw-with-scrollbar) / 1920));
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.history__item.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.history__year {
  font-size: 40px;
  font-size: clamp(20px, calc(40 * var(--vw-with-scrollbar) / 1920), 40px);
  color: #ffdd57;
  margin: 0 0 30px 0;
  margin: 0 0 calc(30 * var(--vw-with-scrollbar) / 1920) 0;
  font-weight: bold;
  -webkit-text-stroke: 3px #000000;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: auto;
  paint-order: stroke fill;
  text-rendering: geometricPrecision;
  letter-spacing: -0.02em;
  flex: 0 0 250px;
  flex: 0 0 calc(250 * var(--vw-with-scrollbar) / 1920);
  width: 250px;
  width: calc(250 * var(--vw-with-scrollbar) / 1920);
  padding: 20px;
  padding: calc(20 * var(--vw-with-scrollbar) / 1920);
}

.history__event {
  flex: 1;
  padding: 20px 30px;
  padding: calc(20 * var(--vw-with-scrollbar) / 1920)
    calc(30 * var(--vw-with-scrollbar) / 1920);
  color: var(--company-bg-color);
  font-size: 23px;
  font-size: clamp(16px, calc(23 * var(--vw-with-scrollbar) / 1920), 23px);
  font-weight: bold;
  line-height: 1.6;
  font-family: var(--font-japanese);
}

/* ========================================
   5. ACCESS SECTION
   ======================================== */
.access {
  padding: var(--section-padding-lg) 0;
  background-color: transparent;
  color: var(--company-text-color);
  position: relative;
  z-index: 1;
  scroll-margin-top: 120px;
  scroll-margin-top: calc(120 * var(--vw-with-scrollbar) / 1920);
}

.access__container {
  max-width: 1000px;
  max-width: calc(1000 * var(--vw-with-scrollbar) / 1920);
  margin: 0 auto;
  padding: 0 20px;
  padding: 0 calc(20 * var(--vw-with-scrollbar) / 1920);
}

.access__header {
  text-align: center;
  margin-bottom: 80px;
  margin-bottom: calc(80 * var(--vw-with-scrollbar) / 1920);
}

.access__title {
  margin: 0;
}

.access__title-en {
  display: block;
  font-size: var(--title-size-xl);
  font-weight: 900;
  color: var(--company-text-color);
  line-height: 0.8;
  font-style: italic;
  text-transform: uppercase;
  font-family: var(--font-english);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-underline-offset: calc(2 * var(--vw-with-scrollbar) / 1920);
  text-decoration-thickness: 3px;
  text-decoration-thickness: calc(3 * var(--vw-with-scrollbar) / 1920);
}

.access__title-jp {
  display: block;
  font-size: 24px;
  font-size: clamp(18px, calc(24 * var(--vw-with-scrollbar) / 1920), 24px);
  font-weight: bold;
  color: var(--company-text-color);
  letter-spacing: 0.15em;
  font-family: var(--font-japanese);
  margin-top: -10px;
  margin-top: calc(-10 * var(--vw-with-scrollbar) / 1920);
}

.access__content {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  gap: calc(80 * var(--vw-with-scrollbar) / 1920);
}

.access__map {
  flex: 1;
  width: 100%;
  height: 400px;
  height: calc(400 * var(--vw-with-scrollbar) / 1920);
  overflow: hidden;
}

.access__map-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.access__map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 2px solid #555;
  border: calc(2 * var(--vw-with-scrollbar) / 1920) solid #555;
  display: block;
  font-family: "Arial", "Helvetica", sans-serif;
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
}

.access__info {
  flex: 0 0 400px;
  flex: 0 0 calc(400 * var(--vw-with-scrollbar) / 1920);
  width: 400px;
  width: calc(400 * var(--vw-with-scrollbar) / 1920);
}

.access__contact {
  padding: 40px 30px;
  padding: calc(40 * var(--vw-with-scrollbar) / 1920)
    calc(30 * var(--vw-with-scrollbar) / 1920);
  border-radius: 8px;
  border-radius: calc(8 * var(--vw-with-scrollbar) / 1920);
}

.access__contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
  margin-bottom: calc(25 * var(--vw-with-scrollbar) / 1920);
}

.access__contact-item:last-child {
  margin-bottom: 0;
}

.access__contact-label {
  font-size: 16px;
  font-size: clamp(12px, calc(16 * var(--vw-with-scrollbar) / 1920), 16px);
  font-weight: 700;
  color: var(--company-primary-color);
  margin-bottom: 8px;
  margin-bottom: calc(8 * var(--vw-with-scrollbar) / 1920);
  font-family: var(--font-japanese);
}

.access__contact-value {
  font-size: 18px;
  font-size: clamp(14px, calc(18 * var(--vw-with-scrollbar) / 1920), 18px);
  font-weight: bold;
  color: var(--company-text-color);
  line-height: 1.6;
  font-family: var(--font-japanese);
  opacity: 0.3;
  filter: blur(5px);
  filter: blur(calc(5 * var(--vw-with-scrollbar) / 1920));
  transition: opacity 0.8s ease, filter 0.8s ease;
}

.access__contact-value.animate-blur-clear {
  opacity: 1;
  filter: blur(0);
}

/* ========================================
   6. RESPONSIVE STYLES - MOBILE
   ======================================== */

/* Mobile */
@media (max-width: 1024px) {
  .section-title-en {
    text-decoration-thickness: 2px;
    text-decoration-thickness: calc(2 * 100vw / 400);
    text-underline-offset: 2px;
    text-underline-offset: calc(2 * 100vw / 400);
  }

  .section-title-jp {
    margin-top: 8px;
    margin-top: calc(8 * 100vw / 400);
  }

  /* Hero Company */
  .hero-company {
    height: 35vh;
    max-height: 800px;
    max-height: calc(800 * 100vw / 400);
    min-height: 500px;
    min-height: calc(430 * 100vw / 400);
  }

  .hero-company__content {
    left: 15px;
    left: calc(15 * 100vw / 400);
    top: 100px;
    top: calc(100 * 100vw / 400);
    max-width: 250px;
    max-width: calc(250 * 100vw / 400);
  }

  .line-bg-black {
    padding-right: 30px;
    padding-right: calc(30 * 100vw / 400);
  }

  .hero-company__title-en {
    font-size: 80px;
    font-size: calc(80 * 100vw / 400);
  }

  .hero-company__title-jp {
    font-size: 24px;
    font-size: calc(24 * 100vw / 400);
    padding: 0;
  }

  .hero-company__image {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8vh;
  }

  .hero-company__image .image-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .hero-company__image .image-wrapper img {
    content: url("../images/hero-company-sp.webp");
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    display: block;
  }

  .company-text-background {
    height: 230vh;
  }

  .business-text-pattern {
    top: 50%;
    animation: business-text-scroll 10s linear infinite;
  }

  .company-line {
    font-size: 50px;
    font-size: calc(50 * 100vw / 400);
  }

  .company-line img {
    height: calc(30 * 100vw / 400);
  }

  /* Common Section Adjustments */
  .message {
    padding: 150px 0;
    padding: calc(150 * 100vw / 400) 0;
  }

  .profile,
  .history,
  .access {
    padding: 40px 0;
    padding: calc(40 * 100vw / 400) 0;
    scroll-margin-top: 60px;
    scroll-margin-top: calc(60 * 100vw / 400);
  }

  /* Container Padding */
  .message__container,
  .profile__container,
  .history__container,
  .access__container {
    padding: 0 10px;
    padding: 0 calc(10 * 100vw / 400);
    max-width: 100%;
  }

  /* Section Headers */
  .message__header,
  .profile__header,
  .history__header,
  .access__header {
    margin-bottom: 30px;
    margin-bottom: calc(30 * 100vw / 400);
    text-align: left;
  }

  /* Title Sizes */
  .message__title-en,
  .profile__title-en,
  .history__title-en,
  .access__title-en {
    font-size: 50px;
    font-size: calc(50 * 100vw / 400);
    margin-bottom: 0;
  }

  .message__title-jp,
  .profile__title-jp,
  .history__title-jp,
  .access__title-jp {
    font-size: 22px;
    font-size: calc(22 * 100vw / 400);
  }

  /* Message Section */
  .message__content {
    flex-direction: column;
    gap: 30px;
    gap: calc(30 * 100vw / 400);
  }

  .message__image {
    flex: none;
    width: 100%;
    margin: 0;
  }

  .message__text {
    padding-top: 0;
  }

  .message__body {
    margin-bottom: 30px;
    margin-bottom: calc(30 * 100vw / 400);
  }

  .message__paragraph {
    font-size: 16px;
    font-size: calc(16 * 100vw / 400);
    line-height: 1.7;
    margin-bottom: 15px;
    margin-bottom: calc(15 * 100vw / 400);
  }

  .message__signature {
    text-align: right;
  }

  .message__signature-title {
    font-size: 16px;
    font-size: calc(16 * 100vw / 400);
    margin-right: 8px;
    margin-right: calc(8 * 100vw / 400);
    display: inline-block;
  }

  .message__signature-name {
    font-size: 14px;
    font-size: calc(14 * 100vw / 400);
    display: inline-block;
  }

  /* Profile Section */
  .profile__row {
    display: block;
    border-bottom: 1px solid #fff;
    padding: 12px 0;
    padding: calc(12 * 100vw / 400) 0;
    transform: translateY(20px);
    transform: translateY(calc(20 * 100vw / 400));
  }

  .profile__label {
    display: block;
    width: 100%;
    padding: 0 0 10px 0;
    padding: 0 0 calc(10 * 100vw / 400) 0;
    font-size: 16px;
    font-size: calc(16 * 100vw / 400);
    border-bottom: none;
  }

  .profile__value {
    display: block;
    width: 100%;
    padding: 0;
    font-size: 16px;
    font-size: calc(16 * 100vw / 400);
    line-height: 1.7;
    border-bottom: none;
  }

  /* History Section */
  .history__timeline {
    max-width: 100%;
  }

  .history__item {
    flex-direction: column;
    margin-bottom: 1px;
    min-height: 50px;
    min-height: calc(50 * 100vw / 400);
    transform: translateY(20px);
    transform: translateY(calc(20 * 100vw / 400));
  }

  .history__year {
    flex: none;
    width: 100%;
    padding: 10px;
    padding: calc(10 * 100vw / 400);
    font-size: 20px;
    font-size: calc(20 * 100vw / 400);
    text-align: left;
    justify-content: flex-start;
    margin-bottom: 0;
  }

  .history__event {
    padding: 16px 10px;
    padding: calc(16 * 100vw / 400) calc(10 * 100vw / 400);
    font-size: 16px;
    font-size: calc(16 * 100vw / 400);
    line-height: 1.7;
  }

  /* Access Section */
  .access__content {
    flex-direction: column;
    gap: 25px;
    gap: calc(25 * 100vw / 400);
  }

  .access__map {
    width: 100%;
    flex: none;
    height: 220px;
    height: calc(220 * 100vw / 400);
    order: 2;
  }

  .access__info {
    flex: none;
    width: 100%;
    order: 1;
  }

  .access__contact {
    padding: 15px 0;
    padding: calc(15 * 100vw / 400) 0;
  }

  .access__contact-item {
    margin-bottom: 12px;
    margin-bottom: calc(12 * 100vw / 400);
  }

  .access__contact-label {
    font-size: 12px;
    font-size: calc(12 * 100vw / 400);
    margin-bottom: 5px;
    margin-bottom: calc(5 * 100vw / 400);
  }

  .access__contact-value {
    font-size: 16px;
    font-size: calc(16 * 100vw / 400);
    line-height: 1.7;
    filter: blur(5px);
    filter: blur(calc(5 * 100vw / 400));
  }

  .image-wrapper.static-noise-effect::before {
    background-size: 100px 100px;
    background-size: calc(100 * 100vw / 400) calc(100 * 100vw / 400);
  }

  .image-wrapper.static-noise-effect::after {
    background-size: 60px 60px;
    background-size: calc(60 * 100vw / 400) calc(60 * 100vw / 400);
  }
}
