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

:root {
  --color-primary: #111111;
  --color-primary-dark: #000000;
  --color-accent: #555555;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f3f4f6;
  --color-border: #e5e7eb;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 8%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: background 0.3s, border-bottom 0.3s, backdrop-filter 0.3s;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav {
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 8%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 1rem;
}

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

.nav-logo-text {
  font-size: 3.2rem;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.04em;
}

.nav-logo-bold {
  font-weight: 700;
  color: #111;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  justify-content: flex-start;
  margin-left: 1rem;
}

.nav-menu > li > a {
  color: #111;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  transition: color 0.2s;
  padding: 0.5rem 0;
  display: block;
}

.nav-menu > li > a:hover {
  color: #555;
}

/* Dropdown Menu */
.nav-dropdown {
  position: static;
}

.nav-dropdown > a::after {
  content: "‹";
  margin-left: 0.4em;
  font-size: 0.9em;
  display: inline-block;
  transform: rotate(-90deg);
  transition: transform 0.3s ease;
}

.nav-dropdown:hover > a::after {
  transform: rotate(90deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% - 25px);
  left: 0;
  right: 0;
  background: #2B5BA8;
  padding: 1.2rem 8%;
  padding-top: 1.6rem;
  list-style: none;
  white-space: nowrap;
  clip-path: polygon(
    0 0,
    calc(8% + 55px) 0,
    calc(8% + 75px) 10px,
    calc(8% + 95px) 0,
    100% 0,
    100% 100%,
    0 100%
  );
}

.nav-dropdown:hover .dropdown-menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu li {
  padding: 0;
  opacity: 0;
  animation: menuItemSlide 0.4s ease forwards;
}

.dropdown-menu li:nth-child(1) { animation-delay: 0.05s; }
.dropdown-menu li:nth-child(2) { animation-delay: 0.1s; }
.dropdown-menu li:nth-child(3) { animation-delay: 0.15s; }
.dropdown-menu li:nth-child(4) { animation-delay: 0.2s; }

@keyframes menuItemSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s;
  border-radius: 4px;
}

.dropdown-menu a:hover {
  opacity: 0.75;
}

/* Language Switcher */
.lang-switcher {
  position: absolute;
  top: 1.5rem;
  right: 8%;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid #111;
}

.lang-switcher a {
  font-size: 1rem;
  font-weight: 500;
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.lang-switcher a:hover {
  color: #111;
}

.lang-switcher a.lang-active {
  color: #111;
  font-weight: 700;
}

.lang-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.05em;
}

.lang-divider {
  color: #999;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 60px;
  background: #fff;
  overflow: hidden;
}

.hero-simple {
  background: #f8f8f8;
  min-height: 80vh;
  padding-top: 120px;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  margin-top: 60px;
}

.hero-tagline {
  font-size: 2.7rem;
  font-weight: 500;
  color: #111;
  letter-spacing: 0.2em;
  margin: 0;
  margin-bottom: -10px;
  line-height: 1.2;
}

.hero-logo {
  width: 400px;
  height: auto;
  margin: 0;
}

.hero-company {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 2.8rem;
  font-weight: 500;
  color: #111;
  letter-spacing: 0.1em;
  margin: 0;
  line-height: 1;
}

.hero-simple .hero-tagline,
.hero-simple .hero-company {
  color: #333;
  text-shadow: none;
}

.hero-simple .hero-company {
  color: #555;
}

.hero-menu-links {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.hero-menu-link {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #333;
  transition: opacity 0.2s;
}

.hero-menu-link:hover {
  opacity: 0.6;
}

.hero-slideshow {
  position: absolute;
  top: 180px;
  left: 60px;
  right: 60px;
  bottom: 60px;
  width: auto;
  height: auto;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 180px;
  left: 60px;
  right: 60px;
  bottom: 60px;
  background: rgba(255, 255, 255, 0.7);
}

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

.hero-headline {
  font-size: 6rem;
  font-weight: 900;
  color: #111;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.5s ease forwards 0.5s;
  text-align: left;
}

.headline-line1 {
  display: block;
}

.headline-line2 {
  display: block;
  padding-left: 4em;
}

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

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* Company */
.company-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}

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

.company-table th,
.company-table td {
  padding: 1.5rem 0;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.1rem;
  background: transparent;
}

.company-table tr:first-child th,
.company-table tr:first-child td {
  border-top: 1px solid var(--color-border);
}

.company-table th {
  width: 160px;
  font-weight: 500;
  color: var(--color-text-light);
  padding-right: 2rem;
}

.company-table td {
  color: var(--color-text);
}

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

.company-description p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Mission */
.mission-content {
  max-width: 800px;
  margin: 0 auto;
}

.mission-statement {
  text-align: center;
  margin-bottom: 4rem;
}

.mission-heading {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.mission-text {
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.mission-subheading {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.mission-values {
  margin-bottom: 4rem;
}

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

.value-item {
  text-align: center;
  padding: 2rem;
  background: var(--color-bg-alt);
  border-radius: 8px;
}

.value-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.value-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

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

/* Team */
.team-content {
  max-width: 800px;
  margin: 0 auto;
}

.team-member {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.member-photo {
  width: 200px;
  height: 200px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

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

.member-info {
  flex: 1;
}

.member-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.member-title {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.member-bio {
  color: var(--color-text-light);
  line-height: 1.8;
}

/* News */
.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.news-date {
  font-size: 0.9rem;
  color: var(--color-text-light);
  min-width: 100px;
}

.news-category {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 4px;
}

.news-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  min-width: 200px;
}

.news-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

.news-title a:hover {
  color: var(--color-primary);
}

.products-page {
  padding-top: 12rem;
}

.company-page {
  padding-top: 12rem;
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--color-bg);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.product-image {
  height: 160px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.product-info {
  padding: 1.25rem;
}

.product-info h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.product-info p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-tags span {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: var(--color-bg-alt);
  border-radius: 4px;
  color: var(--color-text-light);
}

/* Product Detail */
.product-detail {
  padding: 10rem 0 4rem;
}

.product-detail-back {
  margin-bottom: 2rem;
}

.product-detail-back a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.product-detail-back a:hover {
  color: var(--color-primary);
}

.product-detail-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.product-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.product-detail-tags span {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  background: var(--color-bg-alt);
  border-radius: 4px;
  color: var(--color-text-light);
}

.product-detail-body h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.product-detail-body p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.product-detail-body ul {
  color: var(--color-text-light);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.product-detail-body li {
  margin-bottom: 0.4rem;
}

/* Contact */
.contact-form {
  max-width: 520px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--color-primary-dark);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 768px) {
  /* ヘッダー調整 */
  .nav {
    height: 70px;
    padding: 0 1rem;
  }

  .nav-logo-img {
    height: 36px;
  }

  .nav-logo-text {
    font-size: 1.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu.open {
    display: flex;
  }

  /* ヒーロー調整 */
  .hero-headline {
    font-size: 2.2rem;
    letter-spacing: 0.03em;
  }

  .headline-line2 {
    padding-left: 4em;
  }

  /* ページ上部の余白調整 */
  .products-page,
  .company-page {
    padding-top: 6rem;
  }

  .product-detail {
    padding: 6rem 0 3rem;
  }

  /* セクション調整 */
  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 2rem;
  }

  /* プロダクト調整 */
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-title {
    font-size: 1.5rem;
  }

  /* テーブル調整 */
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .company-table th {
    border-bottom: none;
    padding-bottom: 0.25rem;
  }

  .company-table td {
    padding-top: 0.25rem;
  }

  /* コンテナ調整 */
  .container {
    padding: 0 1rem;
  }

  /* フォーム調整 */
  .btn {
    width: 100%;
    text-align: center;
  }

  /* ミッション調整 */
  .mission-heading {
    font-size: 1.3rem;
  }

  .mission-text {
    font-size: 1rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .value-item {
    padding: 1.5rem;
  }

  /* 経営者紹介調整 */
  .team-member {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .member-photo {
    width: 150px;
    height: 150px;
  }

  /* ドロップダウン調整 */
  .nav-dropdown {
    position: static;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 1rem;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }
}

/* Under Construction */
.under-construction {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-light);
}

.under-construction p {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.1em;
}

.under-construction .under-construction-sub {
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0.5rem;
  color: var(--color-text-light);
}

.coming-soon {
  text-align: center;
  padding: 4rem 2rem;
}

.coming-soon-label {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.coming-soon-text {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.8;
}
