/* ================================================
   New Header, Footer, Contact Form Design
   ================================================ */

/* CSS Variables for New Design */
:root {
  --color-header-bg: #eef3ef;
  --color-brand: #3e5a5b;
  --color-contact-bg: #305454;
  --color-form-border: #d1d5db;
  --color-form-bg: #ffffff;
  --color-form-focus: rgba(48, 84, 84, 0.2);
}

/* ================================================
   Header New Design
   ================================================ */

.header-new {
  background-color: var(--color-header-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-brand);
  text-decoration: none;
  font-family: "Sawarabi Mincho", "游明朝", "Yu Mincho", YuMincho, serif;
}

.header-nav-wrapper {
  display: none;
  align-items: center;
  gap: 2rem;
}

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

.header-nav-link {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: "Sawarabi Mincho", "游明朝", "Yu Mincho", YuMincho, serif;
}

.header-nav-link:hover {
  color: var(--color-brand);
}

.header-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--color-contact-bg);
  color: #ffffff;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.header-contact-btn:hover {
  opacity: 0.9;
}

.header-hamburger {
  display: block;
}

.hamburger-btn {
  color: var(--color-brand);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background-color: var(--color-header-bg);
}

.mobile-menu.mobile-menu-open {
  display: block;
}

.mobile-menu-link {
  display: block;
  padding: 0.5rem 1.5rem;
  color: #4b5563;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-family: "Sawarabi Mincho", "游明朝", "Yu Mincho", YuMincho, serif;
}

.mobile-menu-link:hover {
  background-color: #e5e7eb;
}

.mobile-menu-contact {
  border-top: 1px solid #d1d5db;
}

/* Desktop Header */
@media (min-width: 768px) {
  .header-nav-wrapper {
    display: flex;
  }
  
  .header-hamburger {
    display: none;
  }
  
  .mobile-menu {
    display: none !important;
  }
}

/* ================================================
   Contact Section New Design
   ================================================ */

.contact-section {
  padding: 4rem 0 6rem;
  background-color: #ffffff;
}

.contact-container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .contact-container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .contact-container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .contact-container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .contact-container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .contact-container {
    max-width: 1320px;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-left {
  padding-top: 1rem;
}

.contact-label {
  color: #0d9488;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-family: "Sawarabi Mincho", "游明朝", "Yu Mincho", YuMincho, serif;
}

.contact-heading {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: "Sawarabi Mincho", "游明朝", "Yu Mincho", YuMincho, serif;
}

.contact-description {
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 2rem;
  font-family: "游明朝", "Yu Mincho", YuMincho, serif;
}

.contact-image {
  border-radius: 0.5rem;
  width: 100%;
  height: 20rem;
  object-fit: cover;
}

.contact-form-wrapper {
  background-color: #f9fafb;
  padding: 2rem;
  border-radius: 0.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
  font-family: "Sawarabi Mincho", "游明朝", "Yu Mincho", YuMincho, serif;
}

.form-label-required::after {
  content: '必須';
  background-color: var(--color-contact-bg);
  color: white;
  padding: 2px 8px;
  font-size: 0.75rem;
  margin-left: 8px;
  border-radius: 4px;
}

.form-label-optional::after {
  content: '任意';
  background-color: #6b7280;
  color: white;
  padding: 2px 8px;
  font-size: 0.75rem;
  margin-left: 8px;
  border-radius: 4px;
}

.form-name-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.375rem;
  background-color: var(--color-form-bg);
  border: 1px solid var(--color-form-border);
  transition: all 0.3s ease;
  font-family: "游明朝", "Yu Mincho", YuMincho, serif;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-contact-bg);
  box-shadow: 0 0 0 2px var(--color-form-focus);
}

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

.form-privacy {
  text-align: center;
  font-size: 0.875rem;
  color: #4b5563;
}

.form-privacy-link {
  color: var(--color-contact-bg);
  text-decoration: underline;
}

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

.form-submit-btn {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  max-width: 320px;
  height: 64px;
  padding: 8px 64px 8px 8px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  color: #185246;
  text-align: center;
  overflow-wrap: anywhere;
  background-color: #185246;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  flex-direction: row-reverse;
  padding: 8px 8px 8px 64px;
  transition: background-color 0.2s;
}

.form-submit-btn:hover {
  background-color: rgba(24, 82, 70, 0.9);
}

.form-submit-btn__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  aspect-ratio: 1;
  overflow: hidden;
  transition: transform 0.2s;
}

.form-submit-btn:hover .form-submit-btn__icon {
  transform: translateX(4px);
}

.form-submit-btn__text {
  flex-shrink: 1;
  width: 100%;
  color: #fff;
}

/* Desktop Contact Form */
@media (min-width: 640px) {
  .form-name-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* ================================================
   Footer New Design
   ================================================ */

.footer-new {
  background-color: var(--color-contact-bg);
  color: #ffffff;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-company {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-company-name {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Sawarabi Mincho", "游明朝", "Yu Mincho", YuMincho, serif;
}

.footer-company-info {
  color: #d1d5db;
  font-size: 0.875rem;
  font-family: "游明朝", "Yu Mincho", YuMincho, serif;
}

.footer-company-info p {
  margin: 0.25rem 0;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
}

.footer-nav-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: "Sawarabi Mincho", "游明朝", "Yu Mincho", YuMincho, serif;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav-link {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: "游明朝", "Yu Mincho", YuMincho, serif;
}

.footer-nav-link:hover {
  color: #ffffff;
}

.footer-copyright {
  border-top: 1px solid #4b5563;
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
}

.footer-copyright p {
  margin: 0;
}

/* Desktop Footer */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 2fr;
  }
}

/* Body adjustment for sticky header */
body {
  padding-top: 0;
}
