@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  --primary-color: #1B4F8B; /* Favicon Blue */
  --secondary-color: #2774C4; /* Favicon Light Blue */
  --accent-color: #F15A24; /* Favicon Orange */
  --text-color: #333333;
  --text-light: #666666;
  --bg-color: #ffffff;
  --bg-light: #f5f8fa;
  --border-color: #e2e8f0;
  
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Inter', sans-serif;
  
  --header-height: 64px;
  --transition: all 0.3s ease;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(13, 43, 77, 0.08);
  --shadow-hover: 0 15px 40px rgba(13, 43, 77, 0.15);
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-jp);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.lang-en {
  font-family: var(--font-en);
}

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

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-padding {
  padding: 6rem 5%;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.header.scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.125rem;
  font-weight: 900;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-color);
  transition: var(--transition);
  font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--secondary-color);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  min-width: 180px;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 10px 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 10px);
}
.dropdown-menu li {
  width: 100%;
}
.dropdown-menu a {
  padding: 10px 20px;
  display: block;
  font-weight: normal;
}
.dropdown-menu a:hover {
  background: var(--bg-light);
}

.lang-switch {
  display: flex;
  background: var(--bg-light);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.lang-btn {
  border: none;
  background: none;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--primary-color);
  color: white;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  transition: var(--transition);
  display: inline-block;
  box-shadow: 0 4px 15px rgba(255, 126, 103, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 126, 103, 0.6);
  color: white;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  background: #ffffff;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.hero-image {
  position: relative;
}

.dummy-img {
  width: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.5rem;
  text-align: center;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}

.dummy-img img {
  height: auto !important;
}

/* Common Section Styles */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

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

.card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* About Section */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: white;
  padding: 15px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.feature-item-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-item-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  padding-left: 45px;
}

.check-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  background: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Effects Section */
.effect-box {
  border-left: 4px solid var(--secondary-color);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

/* Usage Section (Step Grid) */
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  position: relative;
  background: white;
  border-radius: var(--radius);
  padding: 40px 20px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  margin-top: 25px;
  display: flex;
  flex-direction: column;
}

.step-number {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: white;
  font-size: 1.5rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 123, 181, 0.3);
}

.step-img {
  height: 240px;
  width: 100%;
  font-size: 0.95rem;
  margin-bottom: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-img img {
  height: 100% !important;
  max-width: 100%;
  object-fit: contain;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: left;
}

/* Comparison */
.table-responsive {
  overflow-x: auto;
}
.comparison-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th, .comparison-table td {
  padding: 1.2rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
}

.comparison-table th:first-child {
  text-align: left;
}
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--primary-color);
}

.table-our {
  background: rgba(0, 123, 181, 0.05);
  font-weight: 700;
  color: var(--secondary-color);
}

/* Pricing */
.price-card {
  text-align: center;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.price-card.recommended {
  border-color: var(--secondary-color);
  position: relative;
  transform: scale(1.05);
  z-index: 1;
}
.price-card.recommended:hover {
    transform: scale(1.05) translateY(-5px);
}

.recommended-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.price-amount {
  font-size: 2.1rem; /* 4カラム化に伴い少しだけ縮小 */
  font-weight: 900;
  color: var(--primary-color);
  margin: 1.5rem 0;
  white-space: nowrap;
}
.price-amount span {
  font-size: 1rem;
  color: var(--text-light);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 181, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: white;
  padding: 4rem 5% 2rem;
  text-align: center;
}

.footer a {
  color: white;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  cursor: pointer;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

/* Language Switch Logic */
[data-lang="en"] {
  display: none;
}

body.lang-en [data-lang="ja"] {
  display: none !important;
}
body.lang-en [data-lang="en"] {
  display: block !important;
}
body.lang-en span[data-lang="en"],
body.lang-en a[data-lang="en"] {
  display: inline !important;
}
body.lang-en .nav-links a[data-lang="en"] {
    display: inline-block !important;
}

/* News Section */
.news-list {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
}
.news-item {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}
.news-header {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}
.news-date {
  font-size: 0.9rem;
  color: var(--text-light);
  min-width: 90px;
}
.news-category {
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--bg-light);
  color: var(--text-color);
  white-space: nowrap;
}
.news-title {
  font-weight: 600;
  flex-grow: 1;
  transition: color 0.3s;
}
.news-header:hover .news-title {
  color: var(--primary-color);
}
.news-icon {
  transition: transform 0.3s;
  font-size: 0.8rem;
  color: var(--text-light);
}
.news-item.open .news-icon {
  transform: rotate(180deg);
}
.news-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--text-light);
  line-height: 1.6;
}
.news-body p {
  padding-top: 15px;
  padding-left: 105px;
  margin: 0;
  white-space: pre-wrap;
}

/* Partner Section */
.partner-banner {
  background-color: white;
  border: 2px solid var(--accent-color);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  margin-top: 4rem;
}
.partner-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.partner-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}
.partner-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .partner-banner {
    padding: 20px;
  }
  .partner-title {
    font-size: 1.2rem;
  }
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  transition: 0.3s;
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content, .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-3, .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .step-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }
  .price-card.recommended {
      transform: none;
  }
  .price-card.recommended:hover {
      transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    margin-left: 10px;
  }
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .nav-links {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    display: none;
    gap: 0;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    display: block;
    padding: 15px 0;
  }
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    padding: 0;
    display: flex;
    background: var(--bg-light);
  }
  .dropdown-menu a {
    padding-left: 40px;
  }
  .news-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .news-title {
    width: 100%;
  }
  .news-body p {
    padding-left: 0;
  }
  .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .step-grid {
    grid-template-columns: 1fr;
    gap: 40px 0;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .section-padding {
    padding: 4rem 5%;
  }
}
