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

:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a5f;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --red-500: #ef4444;
  --radius: 0.625rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ===== Layout ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.main-content {
  padding-top: 72px;
}

.section {
  padding: 5rem 0;
}

.bg-white { background: var(--white); }
.bg-gray { background: var(--gray-50); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title { font-size: 2.25rem; }
}

.section-bar {
  width: 5rem;
  height: 4px;
  background: var(--blue-600);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.section-desc {
  color: var(--gray-600);
  max-width: 42rem;
  margin: 0 auto;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  z-index: 50;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-svg {
  width: 2.75rem;
  height: 2.75rem;
}

.logo-company {
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.nav-desktop {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  color: var(--gray-700);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--blue-600);
}

.menu-toggle {
  display: block;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.menu-icon span {
  display: block;
  height: 2px;
  background: var(--gray-700);
  border-radius: 1px;
  transition: all 0.3s;
}

.menu-icon.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-icon.open span:nth-child(2) {
  opacity: 0;
}
.menu-icon.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1rem 1rem;
}

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

.nav-link-mobile {
  color: var(--gray-700);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link-mobile:hover {
  color: var(--blue-600);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(30,58,95,0.8), rgba(29,78,216,0.6));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 1rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .hero-title { font-size: 3rem; }
}

.hero-subtitle {
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-subtitle { font-size: 1.25rem; }
}

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

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

/* ===== Business Cards ===== */
.business-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .business-grid { grid-template-columns: repeat(3, 1fr); }
}

.business-card {
  border-top: 4px solid var(--blue-600);
  display: block;
}

.card-image-wrap {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.business-card:hover .card-image {
  transform: scale(1.1);
}

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.card-body {
  padding: 2rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.card-desc {
  color: var(--gray-600);
  line-height: 1.75;
}

.card-link {
  margin-top: 1rem;
  color: var(--blue-600);
  font-weight: 600;
}

.business-card:hover .card-link {
  text-decoration: underline;
}

/* ===== Company Info ===== */
.info-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow 0.3s;
}

.info-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.info-card-full {
  margin-bottom: 0;
}

.info-icon-wrap {
  padding: 0.75rem;
  background: var(--blue-100);
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.info-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--blue-600);
}

.info-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
}

/* ===== Contact Info ===== */
.contact-info-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .contact-info-grid { grid-template-columns: repeat(3, 1fr); }
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.3s;
}

.contact-info-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.contact-info-icon {
  width: 3rem;
  height: 3rem;
  padding: 0.75rem;
  background: var(--blue-100);
  border-radius: 50%;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--blue-600);
}

.contact-info-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.contact-info-value {
  font-weight: 600;
  color: var(--gray-900);
  white-space: pre-line;
}

.contact-info-link {
  transition: color 0.2s;
}

.contact-info-link:hover {
  color: var(--blue-600);
}

/* ===== Contact Form ===== */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 2rem;
  max-width: 48rem;
  margin: 0 auto;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-row { grid-template-columns: repeat(2, 1fr); }
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.required {
  color: var(--red-500);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: calc(var(--radius) - 2px);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--gray-900);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-textarea {
  resize: vertical;
}

.form-error {
  font-size: 0.875rem;
  color: var(--red-500);
  margin-top: 0.25rem;
  min-height: 0;
}

.form-error:empty {
  display: none;
}

.form-submit-wrap {
  display: flex;
  justify-content: center;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gray-900);
  color: var(--white);
  font-weight: 500;
  font-size: 1.125rem;
  padding: 0.875rem 2rem;
  border-radius: calc(var(--radius) - 2px);
  transition: background 0.2s;
  width: 100%;
}

@media (min-width: 768px) {
  .btn-submit { width: auto; }
}

.btn-submit:hover {
  background: var(--gray-700);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.form-disclaimer {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-align: center;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--gray-900);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  transform: translateY(150%);
  opacity: 0;
  transition: all 0.3s;
  z-index: 100;
  max-width: 400px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-message {
  font-size: 0.875rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo-company {
  color: var(--white);
}

.footer-logo-subtitle {
  color: var(--gray-300);
}

.footer-right {
  text-align: center;
}

@media (min-width: 768px) {
  .footer-right { text-align: right; }
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.footer-number {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* ===== Business Detail Page ===== */
.detail-hero {
  position: relative;
  height: 400px;
}

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

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(30,58,95,0.8), rgba(29,78,216,0.6));
}

.detail-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-hero-text {
  text-align: center;
  color: var(--white);
  padding: 0 1rem;
}

.detail-hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .detail-hero-title { font-size: 3rem; }
}

.detail-hero-desc {
  font-size: 1.125rem;
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .detail-hero-desc { font-size: 1.25rem; }
}

.detail-content {
  padding: 4rem 0;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--gray-300);
  padding: 0.5rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 2rem;
  transition: background 0.2s;
}

.btn-back:hover {
  background: var(--gray-100);
}

.btn-back svg {
  width: 1rem;
  height: 1rem;
}

.detail-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
}

.detail-section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-dot-wrap {
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
}

.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-600);
}

.feature-text {
  color: var(--gray-700);
  font-size: 1.125rem;
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit-card {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-600);
  border-radius: var(--radius);
  padding: 1rem;
}

.benefit-card p {
  font-weight: 600;
  color: var(--gray-900);
}

.detail-cta {
  background: linear-gradient(to right, var(--blue-50), var(--blue-100));
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.detail-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.detail-cta p {
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}

.cta-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-links {
    flex-direction: row;
    justify-content: center;
  }
}

.cta-links a {
  color: var(--blue-600);
  font-weight: 600;
  transition: color 0.2s;
}

.cta-links a:hover {
  color: var(--blue-700);
}

.cta-divider {
  display: none;
  color: var(--gray-400);
}

@media (min-width: 640px) {
  .cta-divider { display: inline; }
}
