:root {
  --font-sans-jp: "Noto Sans JP", sans-serif;
  --font-inter: "Inter", sans-serif;
  --color-primary: #D6000F;
  --color-secondary: #6C0001;
  --color-accent: #6C0001;
  --color-text-light: #ffffff;
  --color-text-dark: #000;
  --color-background-light: #f7f7f7;
  --color-background-dark: #000;
  --header-height: 80px;
}

/* ロゴ使用 D6000F 明るめ赤 6C0001 暗め赤 000 黒 F7F7F7 */


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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans-jp);
  color: var(--color-text-dark);
  line-height: 1.8;
  background-color: var(--color-background-dark);
}

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

ul {
  list-style: none;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}



.container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.3s;
  backdrop-filter: blur(34px);
}
.header.scrolled {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.logo img {
  height: 32px;
}

.nav-desktop ul {
  display: flex;
  gap: 28px;
}

.nav-desktop a {
  color: var(--color-text-light);
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s;
}

.nav-desktop a:hover {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
}
.btn-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}
.btn-primary .icon-launch {
  filter: brightness(0) invert(1);
}
.btn-primary:hover .icon-launch {
  filter: none;
}

.btn-secondary {
  background-color: var(--color-text-light);
  color: var(--color-text-dark);
  border-color: var(--color-text-dark);
}
.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.icon-launch {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
}
.nav-toggle img {
  width: 32px;
  height: 32px;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-text-dark);
  z-index: 1001;
  padding: 20px;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}
.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.nav-close img {
  width: 32px;
  height: 32px;
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nav-mobile ul li {
  width: 100%;
  text-align: left;
}

.nav-mobile a {
  color: var(--color-text-light);
  font-size: 18px;
  font-weight: 500;
}

.menubtn,
.closebtn{
  color: #fff;
}

.nav-mobile ul li.cttbtn,
.nav-mobile ul li.rctbtn {
  text-align: center;
}

.cttbtn a {
width: 100%;
    display: block;
    background: #fff;
    padding: 10px 0;
    border-radius: 90px;
    box-sizing: border-box;
    border: solid #fff 1px;
    background:  var(--color-text-dark);
}

.rctbtn a{
      width: 100%;
    display: block;
    background:  var(--color-accent);
    padding: 10px 0;
    border-radius: 90px;
}

.rctbtn a span {
      vertical-align: sub;
}

.nav-mobile ul li.stdbtn a {
      width: 100%;
    display: inline-block;
    border-bottom: solid 1px #fff;
    padding-bottom: 15px;
}




/* Hero Section */
.hero {
  height: 100vh;
  background-image: url("../img/bg.webp");
  background-size: cover;
  background-position: center;
  position: sticky;
  top: 0;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--color-background-dark) 0%, rgba(0, 26, 45, 0.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  color: var(--color-text-light);
}

.hero-text {
  font-family: var(--font-inter);
  font-size: 72px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-logo {
  width: 300px;
  align-self: center;
}

.hero-side-text {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  color: var(--color-text-light);
  font-size: 14px;
  z-index: 2;
}

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

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title .title-jp {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-dark);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 8px;
}
.section-title .title-jp::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background-color: var(--color-primary);
}
.section-title .title-en {
  font-family: var(--font-inter);
  font-size: 60px;
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: 0.1em;
}
.section-title.alt .title-jp {
  color: var(--color-text-light);
}
.section-title.alt .title-jp::after {
  background-color: var(--color-text-light);
}
.section-title.alt .title-en {
  color: var(--color-text-light);
}

/* About Section */
.about-section {
  padding: 100px 0;
      backdrop-filter: blur(2px);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 61%);
}
.about-content-box {
  background: var(--color-background-light);
  padding: 80px 130px;
  max-width: 960px;
  margin: 0 auto;
}
.about-section .section-title {
  text-align: left;
}
.about-section .section-title .title-jp::after {
  left: 0;
  transform: translateX(0);
}
.about-section h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}
.about-section p {
  font-size: 16px;
}

/* Service Section */
.service-section {
  padding: 100px 0;
  background: #000;
  color: var(--color-text-light);
}
.service-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.service-category {
}
.service-category h4 {font-size: 20px;
    font-weight: 500;
    margin-bottom: 32px;
    text-align: center;
    padding: 15px 0;
    border: solid 1px #fff;
}
.service-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.service-item h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.service-item p {
  font-size: 16px;
  line-height: 1.6;
}

/* Case Study Section */
.casestudy-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #d2d2d2 0%, #ededed 48%, #f9f9f9 100%);
}
.casestudy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-card {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.case-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-content {
  padding: 20px;
}
.tag {
  display: inline-block;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 16px;
  min-height: 67px;
}
.card-company {
  font-size: 12px;
  color: #4f4f4f;
}

/* Team Section */
.team-section {
  padding: 100px 0;
  background: #f7f7f7;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  justify-content: center;
}
.team-member {
  text-align: center;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.team-member:hover img {
  transform: scale(1.05);
  transition: transform 0.3s;
}
.team-member:hover .member-name {
  color: var(--color-accent);
}
.team-member img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  margin-bottom: 8px;
}
.member-name {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}
.member-role {
  font-size: 12px;
  color: #5b5b5b;
}

/* Recruit Section */
.recruit-section {
  padding: 150px 0;
  background-image: url("../img/rbg.webp");
  background-size: cover;
  background-position: center;
  position: relative;
}
.recruit-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.recruit-section .container {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  padding: 60px 120px;
  text-align: left;
}
.recruit-section h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 24px;
}
.recruit-section p {
}


.recruit-section .flex a {
  height: 50px;
}

.btn-outline {
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  padding: 10px 24px;
}
.btn-outline:hover {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
}
.btn-outline .icon-launch {
  filter: invert(19%) sepia(98%) saturate(4319%) hue-rotate(235deg) brightness(97%) contrast(101%);
}
.btn-outline:hover .icon-launch {
  filter: brightness(0) invert(1);
}

/* Company Section */
.company-section {
  padding: 100px 0;
  background-color: var(--color-background-light);
}
.company-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.company-info dl div {
  display: flex;
  padding: 16px 0;
  border-bottom: 1px solid #dcdcdc;
  font-size: 14px;
}
.company-info dt {
  flex-basis: 150px;
  flex-shrink: 0;
  font-weight: 700;
}
.company-info dd {
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background: #eaecee;
}
.contact-description {
  text-align: center;
  margin-bottom: 40px;
}
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group.full-width {
  grid-column: 1 / -1;
}
.form-group label {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}
.form-group label span {
  color: var(--color-primary);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #9b9b9b;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
}
.select-wrapper {
  position: relative;
}
.select-wrapper::after {
  content: "▼";
  font-size: 12px;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #9b9b9b;
}
.form-group select {
  appearance: none;
}
.privacy-policy {
  background: rgba(238, 238, 238, 0.75);
  padding: 20px;
  margin-top: 20px;
}
.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  margin-bottom: 12px;
}
.checkbox-container input {
  width: auto;
  margin-right: 10px;
}
.privacy-policy a {
  color: #333;
  text-decoration: underline;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.privacy-policy a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--color-accent);
  color: var(--color-text-light);
  font-size: 16px;
  border-radius: 0;
}
.btn-submit:hover {
  background: var(--color-primary);
}

/* Footer */
.footer {
  background: #000;
  color: var(--color-text-light);
  padding: 40px 0;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.footer .logo img {
  height: 28px;
}
.footer p {
  font-size: 12px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

body.modal-open {
  overflow: hidden;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  width: 90%;
  max-width: 816px;
  transform: scale(0.95);
  transition: transform 0.3s;
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 30px;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  display: flex;
  gap: 20px;
}

.modal-img {
  flex: 0 0 280px;
  height: 410px;
}

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

.modal-info {
  flex: 1;
  padding: 20px;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.info-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-dark);
}

.info-header a img {
  width: 24px;
  height: 24px;
}

#modal-role {
  font-size: 14px;
  color: var(--color-text-dark);
  margin-bottom: 20px;
}

.modal-info hr {
  border: none;
  border-top: 1px solid #eee;
  margin-bottom: 20px;
}

#modal-desc {
  font-size: 14px;
  line-height: 1.8;
}

.formicon{
      font-size: 20px;
    vertical-align: text-top;
}

/* Responsive */
@media (max-width: 860px) {
.hero {
  background-image: url("../img/bgsp.webp");
}

  .hero-content {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 40px;
  }
  .hero-text {
    font-size: 48px;
  }
  .hero-logo {
    width: 200px;
  }
  .modal-body {
    flex-direction: column;
  }
  .modal-img {
    height: auto;
        flex: auto;
  }
  .modal-info {
    padding: 0;
  }
  .nav-desktop,
  .header-actions {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .hero-side-text {
    display: none;
  }
  .about-content-box {
    padding: 60px 40px;
  }
  .service-items {
    grid-template-columns: 1fr;
  }
  .casestudy-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .company-content {
    grid-template-columns: 1fr;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }


}

@media (max-width: 540px) {
  :root {
    --header-height: 70px;
  }
  .header-container,
  .footer-container {
    padding: 0 20px;
  }
  .hero-text {
    font-size: 36px;
  }
  .hero-logo {
    width: 150px;
  }
  .section-title .title-en {
    font-size: 32px;
  }
  .about-content-box {
    padding: 40px 24px;
  }
  .about-section h3 {
    font-size: 24px;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .recruit-section .container {
    padding: 40px 24px;
  }
  .recruit-section h3 {
    font-size: 18px;
  }
  .contact-form {
    padding: 20px;
  }

.modal-img img {
  width: 100%;
  height: 133%;
  object-fit: cover;
  margin: 0 auto;
}

  .modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 20px 0;
  }
  .modal-content {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin: 0 10px;
  }


}


.form-message {
  padding: 1em;
  margin-bottom: 20px;
  border-radius: 4px;
  text-align: center;
}

.form-message.success {
  background-color: #e0f2f1;
  color: #004d40;
  border: 1px solid #b2dfdb;
}

.form-message.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.form-message.error ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.form-message.error li {
  margin-bottom: 0.5em;
}
.form-message.error li:last-child {
  margin-bottom: 0;
}
#form-status-message {
  margin-bottom: 20px;
}

.form-field-error{
  font-size: 12px;
  color: #c62828;
  font-weight: bold;
}

#form-status-message {
      grid-column: 1 / -1;
}