/* Google Fonts */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', Helvetica, sans-serif;
  background-color: white;
  color: #333333;
  overflow-x: hidden;
  line-height: 1.6;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Hero */
.section-hero {
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('../images/company/company_fv.webp');
  background-size: cover;
  background-position: center;
}

.hero-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
}

.hero-title {
  font-weight: 400;
  color: white;
  font-size: 40px;
  letter-spacing: 6px;
  line-height: 1.2;
}

/* Company Info Section */
.section-company-info {
  position: relative;
  width: 100%;
  padding: 0 20px;
  margin-top: -160px;
  background-color: transparent;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.company-info-container {
  width: 100%;
  max-width: 960px;
  background-color: white;
  border-radius: 50px;
  box-shadow: 0px 0px 15px 10px rgba(153, 204, 102, 0.25);
  padding: 120px 15px;
}

.company-info-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  margin-bottom: 160px;
}

.company-info-section:last-child {
  margin-bottom: 0;
}

.company-info-section.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(10px);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.company-info-section.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .company-info-section.reveal {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .info-cards-image.reveal {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .cta-card.reveal {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .message-media.reveal,
  .company-dl-row.reveal {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .footer-card.reveal {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .footer-card-image {
    transition: none;
  }
}

.company-info-label {
  font-weight: 500;
  color: #99cc66;
  font-size: 20px;
  text-align: center;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.company-info-title {
  font-family: 'Inter', Helvetica;
  font-weight: 600;
  color: #333333;
  font-size: 42px;
  text-align: center;
  letter-spacing: 4.2px;
  line-height: normal;
}

.company-info-title.large {
  font-weight: 700;
  line-height: 70px;
}

/* Info Cards Section */
.section-info-cards {
  position: relative;
  top: -100px;
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: #f3f1ef;
  padding: 250px 20px 200px;
}

.info-cards-wrapper {
  width: 100%;
  max-width: 960px;
}

.info-cards-content {
  display: grid;
  grid-template-columns: minmax(280px, 500px) 1fr;
  gap: 40px;
  align-items: center;
}

.info-cards-image {
  /* PC: 左側に飛び出して見せる */
  --bleed-left: clamp(24px, 6vw, 120px);
  width: 100%;
  width: 800px;
  height: 500px;
  background-image: url('../images/company/message_kodama.webp');
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: 30px 30px 0px #e7e7e7;
  transform: translateX(calc(-3.5 * var(--bleed-left)));
}

.info-cards-image.reveal {
  opacity: 0;
  transform: translateX(calc(-3.5 * var(--bleed-left)));
  filter: blur(10px);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, filter;
}

.info-cards-image.reveal.is-visible {
  opacity: 1;
  transform: translateX(calc(-3.5 * var(--bleed-left)));
  filter: blur(0);
}

.info-cards-text {
  display: flex;
  flex-direction: column;
  gap: 50px;
  flex: 1;
}

.info-cards-text-group {
  display: flex;
  flex-direction: column;
  gap: 43px;
}

.info-cards-title {
  font-weight: 400;
  color: #333;
  font-size: 28px;
  letter-spacing: 0.2px;
  line-height: normal;
}

.info-cards-description {
  font-weight: 400;
  color: #999999;
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 30px;
}

.info-cards-button-wrapper {
  display: flex;
  justify-content: flex-end;
}

.btn-arrow {
  width: 300px;
  height: 60px;
  border: 1px solid #169442;
  position: relative;
  overflow: visible;
  transition: background-color 0.3s ease;
  text-align: center;
}

.btn-arrow span {
  font-weight: 400;
  color: #169442;
  font-size: 18px;
  letter-spacing: 1px;
  line-height: 55px;
  display: block;
  transition: background-color 0.3s ease;
}

.btn-arrow:hover {
  background-color: #169442;
  transform: none;
  cursor: pointer;
}

.btn-arrow:hover span {
  color: #fff;
}

.btn-arrow-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.btn-arrow:hover .btn-arrow-icon path {
  stroke: #fff;
}

.btn-arrow-circle {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Call To Action Section */
.section-cta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 16px;
  background-color: white;
}

.cta-title {
  color: #333333;
  font-size: 28px;
  text-align: center;
  letter-spacing: 7.2px;
  white-space: nowrap;
  font-weight: 400;
  line-height: 46px;
}

.cta-description {
  margin-top: 16px;
  max-width: 641px;
  font-weight: 400;
  color: #999999;
  font-size: 18px;
  text-align: center;
  letter-spacing: 0;
  line-height: 30px;
}

.cta-cards-wrapper {
  width: 100%;
  max-width: 1220px;
  margin-top: 90px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.cta-card {
  width: 100%;
  width: 390px;
  min-height: 320px;
  background: linear-gradient(135deg, #0A504A 0%, #55AC91 100%);
  box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.25);
  transition: box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
  padding: 56px 40px 40px;
  display: flex;
  flex-direction: column;
}

.cta-card.reveal {
  opacity: 0;
  transform: translateX(-26px);
  filter: blur(10px);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
  /* revealの遅延を影まで引きずらない（hover時の影ズレ防止） */
  transition-delay:
    var(--reveal-delay, 0ms),
    var(--reveal-delay, 0ms),
    var(--reveal-delay, 0ms),
    0ms;
  will-change: opacity, transform, filter, box-shadow;
}

.cta-card.reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.cta-cards-wrapper a {
  display: block;
  text-decoration: none;
  transform: translateY(0);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.cta-cards-wrapper a:hover {
  transform: translateY(-8px);
}

.cta-cards-wrapper a:focus-visible {
  transform: translateY(-8px);
  outline: 2px solid rgba(0, 0, 0, 0.35);
  outline-offset: 6px;
  border-radius: 24px;
}

.cta-cards-wrapper a:hover .cta-card,
.cta-cards-wrapper a:focus-visible .cta-card {
  box-shadow: 0px 14px 28px rgba(0, 0, 0, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .cta-cards-wrapper a {
    transition: none;
  }

  .cta-cards-wrapper a:hover,
  .cta-cards-wrapper a:focus-visible {
    transform: none;
  }
}

.cta-card-title {
  width: 100%;
  color: white;
  font-size: 24px;
  text-align: center;
  letter-spacing: 4.8px;
  line-height: 40px;
  font-weight: 700;
  white-space: pre-line;
  text-shadow: 0px 2px 3px rgba(0, 0, 0, 0.25);
}

.cta-card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-card-icon {
  width: 70px;
  height: 70px;
  background-color: white;
  border-radius: 35.25px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.cta-card-icon img {
  width: 52.48%;
  height: 52.48%;
}

.cta-card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-card-label {
  font-weight: 700;
  color: white;
  font-size: 20px;
  letter-spacing: 0;
  line-height: 18px;
  white-space: nowrap;
}

.cta-card-sublabel {
  font-weight: 400;
  color: white;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 18px;
  white-space: nowrap;
}

/* Eco Message Section */
.section-eco-message {
  position: relative;
  width: 100%;
  height: 367px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url('../images/company/cta_bg.webp');
}

.eco-message-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.eco-message-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 16px;
}

.eco-message-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.eco-message-item-1 {
  font-weight: 700;
  color: white;
  font-size: 20px;
  text-align: center;
  letter-spacing: 4px;
  white-space: nowrap;
}

.eco-message-item-2 {
  max-width: 664px;
  height: 72px;
  font-weight: 700;
  color: white;
  font-size: 32px;
  text-align: center;
  letter-spacing: 7.2px;
  line-height: 40px;
  margin-bottom: 27px;
}

.eco-message-item-3 {
  position: relative;
  max-width: 456px;
  height: 27px;
  margin-bottom: 8px;
}

.eco-message-item-3 img:first-child {
  position: absolute;
  left: 0;
  top: 3px;
  width: 21px;
  height: 21px;
}

.eco-message-item-3 img:last-child {
  position: absolute;
  right: 0;
  top: 4px;
  width: 21px;
  height: 21px;
}

.eco-message-item-3 div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 454px;
  height: 27px;
  font-weight: 700;
  color: white;
  font-size: 20px;
  text-align: center;
  letter-spacing: 4px;
  line-height: 40px;
  white-space: nowrap;
}

.btn-check {
  position: relative;
  width: 550px;
  height: 60px;
  background-color: #ac9e4c;
  border-radius: 30px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 30px;
}

.btn-check:hover {
  background-color: #9a8d43;
  transform: none;
}

.btn-check-text {
  font-weight: 900;
  color: white;
  font-size: 24px;
  text-align: center;
  letter-spacing: 4.8px;
  line-height: 40px;
}

.btn-check-number {
  position: absolute;
  top: 10px;
  left: 100px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 50%;
  overflow: hidden;
  font-weight: 900;
  color: #ac9e4c;
  font-size: 34px;
  text-align: center;
  white-space: nowrap;
}

/* Message Section (Company Info) */
.section-message {
  width: 100%;
  background-color: #f3f1ef;
  padding: 80px 16px 100px;
}

.message-container {
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
}

.message-image {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: grayscale(100%);
  bottom: -60px;
  right: -60px;
}

.message-title {
  font-weight: 400;
  color: #333333;
  font-size: 28px;
  text-align: left;
  letter-spacing: 7.2px;
  line-height: 36px;
  white-space: nowrap;
  margin-bottom: 48px;
}

.message-card {
  padding: 40px 140px 100px 0;
  display: grid;
  grid-template-columns: minmax(280px, 500px) 1fr;
  gap: 40px;
}

.message-media {
  width: 100%;
}

.message-media.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  filter: blur(10px);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.message-media.reveal.is-visible {
  background-color: #e7e7e7;
  position: relative;
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.company-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.company-dl-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: start;
}

.company-dl-row.reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(10px);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 800ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.company-dl-row.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.company-dl-row dt {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 400;
  color: #999999;
  font-size: 16px;
  letter-spacing: -0.4px;
  line-height: 30px;
  white-space: nowrap;
}

.company-dl-icon {
  width: 15px;
  height: 15px;
  background-color: #999999;
  flex: 0 0 auto;
}

.company-dl-row dd {
  margin: 0;
  font-weight: 400;
  color: #999999;
  font-size: 16px;
  letter-spacing: 0.6px;
  line-height: 35px;
  white-space: normal;
}

.company-dl-multiline {
  white-space: normal;
}

/* Footer Section */
.section-footer {
  width: 100%;
  height: 500px;
  padding: 48px 16px;
  margin-top: 300px;
  background-color: white;
  background-image: url('../images/company/doc_bg02.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.footer-grid {
  position: relative;
  top: -150px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-card {
  position: relative;
  background-color: white;
  box-shadow: 0px 0px 10px rgba(153, 153, 153, 0.5);
}

.footer-card.reveal {
  opacity: 0;
  transform: translateX(-26px);
  filter: blur(10px);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.footer-card.reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.footer-card-image {
  position: absolute;
  width: 350px;
  height: 200px;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-card:hover .footer-card-image {
  transform: translate(-50%, -10px);
}

.footer-card-image img {
  width: 100%;
  height: 200px;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 5px #ADADAD;
}

.footer-card-content {
  padding: 150px 32px 32px;
}

.footer-card-title {
  color: #999999;
  font-size: 28px;
  letter-spacing: 0;
  font-weight: 700;
  line-height: 46px;
  margin-bottom: 28px;
}

.footer-card-description {
  font-weight: 400;
  color: #999999;
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 30px;
  margin-bottom: 32px;
}

.footer-card-button-wrapper {
  display: flex;
  justify-content: center;
}

@media (max-width: 1536px) {
  .info-cards-image {
    width: 700px;
    height: 400px;
  }
}

@media (max-width: 1024px) {

  .section-hero {
    padding: 72px 16px 180px;
  }

  .hero-title {
    font-size: 34px;
    letter-spacing: 5px;
  }

  .message-title {
    margin-bottom: 28px;
  }

  .message-card {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 24px;
  }

  .company-dl-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .company-dl-row dt {
    white-space: normal;
  }

  .info-cards-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .info-cards-image {
    --bleed-left: 0px;
    width: 100%;
    max-width: none;
    transform: none;
  }

  /* Overlaps/offsets: keep PC look but avoid small-screen collapse */
  .section-company-info {
    margin-top: -140px;
    padding: 0 20px 100px;
  }

  .section-info-cards {
    top: 0;
    padding: 120px 20px 140px;
  }

  /* Footer docs area: remove fixed height + negative offsets on smaller screens */
  .section-footer {
    height: auto;
    padding: 120px 16px 80px;
  }

  .footer-grid {
    top: 0;
  }

  .footer-card-image {
    position: static;
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 0 auto 16px;
    left: auto;
    top: auto;
    transform: none;
  }

  .footer-card:hover .footer-card-image {
    transform: translateY(-10px);
  }

  .footer-card-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 7 / 4;
    object-fit: cover;
  }

  .footer-card-content {
    padding: 24px 32px 32px;
  }
}

@media (max-width: 768px) {
  .section-hero {
    min-height: 100px;
    padding: 50px 5px;
  }

  .info-cards-title {
    font-size: 24px;
  }

  .hero-title {
    font-size: 30px;
    letter-spacing: 4px;
  }

  .cta-title {
    white-space: normal;
  }

  .cta-cards-wrapper {
    flex-direction: column;
  }

  .cta-cards-wrapper a {
    width: 100%;
  }

  .cta-card {
    width: 100%;
    max-width: 100%;
  }

  .cta-card-sublabel {
    font-size: 14px;
  }

  .eco-message-item-1 {
    font-size: 16px;
  }

  .eco-message-item-2 {
    font-size: 20px;
  }

  .btn-check {
    width: 100%;
    max-width: 400px;
  }

  .section-company-info {
    margin-top: -120px;
    padding: 0 20px 80px;
  }

  .company-info-container {
    padding: 60px 15px;
  }

  .company-info-section {
    margin-bottom: 80px;
  }

  .company-info-title {
    font-size: 28px;
    letter-spacing: 2.8px;
  }

  .company-info-title.large {
    line-height: 30px;
  }

  .section-info-cards {
    top: 0;
    padding: 80px 20px 80px;
  }

  .section-footer {
    padding: 100px 16px 70px;
    margin-top: 0;
  }

  .footer-grid {
    top: 0;
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {

  .hero-title {
    font-size: 26px;
    letter-spacing: 3px;
  }

  .section-company-info {
    margin-top: -90px;
    padding: 0 16px 70px;
  }

  .cta-title {
    font-size: 24px;
    letter-spacing: 2px;
  }

  .cta-description {
    font-size: 14px;
  }

  .company-info-title {
    font-size: 17px;
    letter-spacing: 2px;
  }

  .btn-check {
    width: 100%;
    max-width: 330px;
    height: 50px;
  }

  .btn-check-text {
    font-size: 18px;
  }

  .btn-check-number {
    top: 5px;
    left: 20px;
    width: 40px;
    height: 40px;
    font-size: 34px;
  }

  .eco-message-item-2 {
    font-size: 20px;
    letter-spacing: 2.4px;
  }

  .eco-message-item-3 div {
    font-size: 12px;
  }

  .section-message {
    padding: 80px 16px 100px;
  }

  .message-title {
    font-size: 24px;
  }

  .company-dl-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
  }

  .company-dl-row dt {
    font-size: 16px;
  }

  .company-dl-row dd {
    font-size: 14px;
  }

  .footer-card-title {
    font-size: 22px;
    line-height: 34px;
  }

  .footer-card-content {
    padding: 20px 20px 28px;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #99cc66;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #88bb55;
}

#content .l-content__body {
  margin: 0 auto;
}