/* ========================================
   AM.LLC Corporate Site - Style Sheet v2
   ======================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  line-height: 1.8;
  color: #1a1a1a;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only {
  display: none;
}

.pc-only {
  display: inline;
}

@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }
  .pc-only {
    display: none;
  }
}

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: transform 0.3s;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--primary {
  background-color: #2c5aa0;
  color: #fff;
}

.btn--primary .btn__arrow {
  background: rgba(255, 255, 255, 0.2);
}

.btn--primary:hover {
  background-color: #1a3d7a;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44, 90, 160, 0.3);
}

.btn--white {
  background-color: #fff;
  color: #1a2e50;
}

.btn--white .btn__arrow {
  background: rgba(26, 46, 80, 0.1);
}

.btn--white:hover {
  background-color: #f0f4f8;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn--outline {
  background: transparent;
  color: #2c5aa0;
  border: 2px solid #2c5aa0;
}

.btn--outline:hover {
  background: #2c5aa0;
  color: #fff;
  opacity: 1;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  z-index: 1000;
  transition: box-shadow 0.3s, background 0.3s;
}

.header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.98);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a2e50;
  letter-spacing: 0.02em;
}

.header__logo-dot {
  color: #2c5aa0;
}

.header__nav-list {
  display: flex;
  gap: 32px;
}

.header__nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: #333;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
}

.header__nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2c5aa0;
  transition: width 0.3s;
}

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

.header__nav-link:hover {
  opacity: 1;
  color: #2c5aa0;
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1a2e50;
  transition: all 0.3s;
}

.header__hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    padding: 100px 40px 40px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s;
  }

  .header__nav.is-open {
    right: 0;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 24px;
  }

  .header__nav-link {
    font-size: 1rem;
  }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #1a2e50;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, rgba(26, 46, 80, 0.75) 0%, rgba(26, 46, 80, 0.5) 100%);
  pointer-events: none;
}

.hero__bg-text {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
}

.hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 0 24px;
}

.hero__subtitle {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s 0.3s forwards;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  margin-bottom: 24px;
}

.hero__title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: heroCharIn 0.6s forwards;
}

.hero__description {
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s 1.2s forwards;
}

.hero__btn-wrap {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s 1.5s forwards;
}

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

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

/* ========================================
   MARQUEE
   ======================================== */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 20px 0;
  background: #f7f8fa;
}

.marquee__inner {
  display: inline-flex;
  animation: marqueeScroll 25s linear infinite;
}

.marquee__text {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: rgba(26, 46, 80, 0.08);
  -webkit-text-stroke: 1.5px rgba(26, 46, 80, 0.25);
  letter-spacing: 0.08em;
  padding: 0 40px;
  text-transform: uppercase;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ========================================
   SECTIONS (common)
   ======================================== */
.section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.section--white {
  background-color: #fff;
}

.section--gray {
  background-color: #f7f8fa;
}

.section--navy {
  background-color: #1a2e50;
  color: #fff;
}

.section__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(4rem, 14vw, 12rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(26, 46, 80, 0.05);
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  text-transform: uppercase;
  line-height: 1;
}

.section--navy .section__bg-text {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
}

.section__heading {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

.section__title {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #1a2e50;
  text-transform: uppercase;
}

.section__heading--light .section__title {
  color: #fff;
}

.section__title-ja {
  font-size: 0.85rem;
  color: #888;
  margin-top: 8px;
  letter-spacing: 0.15em;
}

.section__heading--light .section__title-ja {
  color: rgba(255, 255, 255, 0.5);
}

.section__lead {
  text-align: center;
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 56px;
  line-height: 2.2;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .section__heading {
    margin-bottom: 48px;
  }

  .section__title {
    font-size: 1.8rem;
  }

  .section__bg-text {
    font-size: 3rem;
  }
}

/* ========================================
   NEWS
   ======================================== */
.news-list {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.news-list__item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.3s;
}

.news-list__item:first-child {
  border-top: 1px solid #e5e7eb;
}

.news-list__item:hover {
  background: rgba(44, 90, 160, 0.02);
}

.news-list__date {
  font-size: 0.85rem;
  color: #888;
  white-space: nowrap;
  min-width: 90px;
  letter-spacing: 0.05em;
}

.news-list__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  color: #2c5aa0;
  background-color: rgba(44, 90, 160, 0.08);
  padding: 3px 14px;
  border-radius: 50px;
  white-space: nowrap;
  min-width: 64px;
  text-align: center;
  letter-spacing: 0.03em;
}

.news-list__text {
  font-size: 0.95rem;
  color: #333;
}

.news-list__text a:hover {
  color: #2c5aa0;
  opacity: 1;
}

@media (max-width: 768px) {
  .news-list__item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
  }

  .news-list__date {
    min-width: auto;
  }

  .news-list__text {
    width: 100%;
    font-size: 0.9rem;
  }
}

/* ========================================
   SERVICE CARDS
   ======================================== */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: #fff;
  padding: 48px 32px 40px;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2c5aa0, #4a8dd6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.service-card__number {
  font-size: 3rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(44, 90, 160, 0.15);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.service-card__icon {
  color: #2c5aa0;
  margin-bottom: 20px;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a2e50;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.service-card__text {
  font-size: 0.88rem;
  color: #666;
  line-height: 2;
}

@media (max-width: 768px) {
  .service-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 36px 24px 32px;
  }
}

/* ========================================
   COMPANY TABLE
   ======================================== */
.company-table-wrap {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.company-table th,
.company-table td {
  padding: 22px 24px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}

.company-table th {
  width: 140px;
  font-weight: 700;
  color: #1a2e50;
  white-space: nowrap;
  background-color: rgba(44, 90, 160, 0.03);
}

.company-table td {
  color: #444;
}

@media (max-width: 768px) {
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }

  .company-table th {
    border-bottom: none;
    padding-bottom: 4px;
  }

  .company-table td {
    padding-top: 4px;
  }
}

/* ========================================
   CONTACT
   ======================================== */
.contact__lead {
  text-align: center;
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 48px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.contact__actions {
  text-align: center;
}

/* ---------- CF7 Form in Contact Section ---------- */
.contact__form-wrap {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact__form-wrap .wpcf7-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.contact__form-wrap .wpcf7-form p {
  margin-bottom: 24px;
}

.contact__form-wrap .wpcf7-form input[type="text"],
.contact__form-wrap .wpcf7-form input[type="email"],
.contact__form-wrap .wpcf7-form textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 0.95rem;
  font-family: "Noto Sans JP", sans-serif;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.contact__form-wrap .wpcf7-form input[type="text"]:focus,
.contact__form-wrap .wpcf7-form input[type="email"]:focus,
.contact__form-wrap .wpcf7-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.contact__form-wrap .wpcf7-form input[type="text"]::placeholder,
.contact__form-wrap .wpcf7-form input[type="email"]::placeholder,
.contact__form-wrap .wpcf7-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.contact__form-wrap .wpcf7-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact__form-wrap .wpcf7-form input[type="submit"] {
  display: inline-block;
  padding: 16px 56px;
  border: none;
  border-radius: 50px;
  background-color: #fff;
  color: #1a2e50;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: "Noto Sans JP", sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact__form-wrap .wpcf7-form input[type="submit"]:hover {
  background-color: #f0f4f8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.contact__form-wrap .wpcf7-form .wpcf7-response-output {
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
}

.contact__form-wrap .wpcf7-form .wpcf7-not-valid-tip {
  color: #fca5a5;
  font-size: 0.8rem;
  margin-top: 4px;
}

.contact__form-wrap .hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.contact__form-wrap .wpcf7-form .wpcf7-submit-wrap {
  text-align: center;
  margin-top: 12px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background-color: #0f1729;
  color: #9ca3af;
  padding: 56px 0 0;
}

.footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer__logo-dot {
  color: #2c5aa0;
}

.footer__address {
  font-size: 0.8rem;
  line-height: 1.8;
}

.footer__nav-list {
  display: flex;
  gap: 24px;
}

.footer__nav-list a {
  font-size: 0.8rem;
  color: #9ca3af;
  letter-spacing: 0.05em;
}

.footer__nav-list a:hover {
  color: #fff;
  opacity: 1;
}

.footer__bottom {
  padding: 24px 0;
  text-align: center;
}

.footer__copyright {
  font-size: 0.75rem;
  color: #4b5563;
}

@media (max-width: 768px) {
  .footer__top {
    flex-direction: column;
    gap: 24px;
  }

  .footer__nav-list {
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

/* Fade up */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Slide from left */
.slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale in */
.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Background text reveal */
.section__bg-text {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.section__bg-text.is-visible {
  opacity: 1;
}
