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

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
  position: relative;
}

/* Logo */
.header-logo {
  flex-shrink: 0;
}

.header-logo img {
  height: 60px;
  width: auto;
}

/* Navigation */
.header-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #2a5caa;
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
  color: #2a5caa;
}

/* Contact */
.header-contact {
  flex-shrink: 0;
  text-align: right;
  border-left: 1px solid #e0e0e0;
  padding-left: 30px;
  margin-left: 30px;
}

/* Nav Contact (hidden on desktop) */
.nav-contact {
  display: none;
}

.contact-text {
  font-size: 11px;
  color: #666;
  margin-bottom: 2px;
}

.contact-tel {
  font-size: 24px;
  font-weight: bold;
  color: #2a4073;
  letter-spacing: 1px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-list {
    gap: 25px;
  }

  .nav-link {
    font-size: 14px;
  }

  .header-contact {
    padding-left: 20px;
    margin-left: 20px;
  }

  .contact-tel {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }

  .header-logo img {
    height: 45px;
  }

  .hamburger {
    display: flex;
  }

  /* Mobile Menu Overlay */
  .header-nav {
    position: fixed;
    top: 60px;
    right: 0;
    width: 320px;
    max-width: 90%;
    height: auto;
    max-height: calc(100vh - 60px);
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 0 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    overflow-y: auto;
  }

  .header-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }

  .nav-list li {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .header-nav.active .nav-list li {
    opacity: 1;
    transform: translateX(0);
  }

  .header-nav.active .nav-list li:nth-child(1) { transition-delay: 0.05s; }
  .header-nav.active .nav-list li:nth-child(2) { transition-delay: 0.1s; }
  .header-nav.active .nav-list li:nth-child(3) { transition-delay: 0.15s; }
  .header-nav.active .nav-list li:nth-child(4) { transition-delay: 0.2s; }
  .header-nav.active .nav-list li:nth-child(5) { transition-delay: 0.25s; }
  .header-nav.active .nav-list li:nth-child(6) { transition-delay: 0.3s; }

  .nav-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-bottom: none;
    width: 100%;
    text-align: left;
    position: relative;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: #2a5caa;
    transition: height 0.2s ease;
  }

  .nav-link:hover,
  .nav-link.active {
    background: #f8f9fa;
    color: #2a5caa;
  }

  .nav-link:hover::before,
  .nav-link.active::before {
    height: 60%;
  }

  .nav-link::after {
    display: none;
  }

  /* Mobile Contact */
  .header-contact {
    display: none;
  }

  .nav-contact {
    display: block;
    border-top: 1px solid #eee;
    padding: 16px 20px;
    text-align: left;
    background: #f8f9fa;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease 0.35s, transform 0.3s ease 0.35s;
  }

  .header-nav.active .nav-contact {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-contact .contact-text {
    display: none;
  }

  .nav-contact .contact-tel {
    font-size: 16px;
    letter-spacing: 0;
  }
}

/* Body padding for fixed header */
body {
  padding-top: 80px;
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }
}

/* Hero Section */
.hero {
  position: relative;
  background: url('../img/top.png') center center / 100% 100% no-repeat;
  display: flex;
  align-items: center;
  aspect-ratio: 1456 / 616;
}

.hero-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-title {
  font-size: 42px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  position: absolute;
  right: 40px;
  bottom: 30px;
  transition: transform 0.3s, opacity 0.3s;
}

.hero-cta:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.hero-cta img {
  height: 100px;
  width: auto;
}

@media (max-width: 768px) {
  .hero {
    aspect-ratio: auto;
    min-height: 50vh;
    background-size: cover;
    background-position: center;
  }

  .hero-inner {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-cta {
    right: 20px;
    bottom: 20px;
  }

  .hero-cta img {
    height: 70px;
  }
}

/* Page Hero (Subpages) */
.page-hero {
  background: url('../img/top.png') center center / 100% 100% no-repeat;
  padding: 80px 0;
  text-align: center;
}

.page-title {
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.3em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .page-hero {
    padding: 50px 0;
  }

  .page-title {
    font-size: 28px;
  }
}

/* Service Section */
.service-section {
  padding: 80px 0;
  background: #fff;
}

.service-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
}

.service-item {
  font-size: 18px;
  color: #333;
  padding-left: 20px;
  border-left: 3px solid #2a4073;
}

@media (max-width: 768px) {
  .service-section {
    padding: 50px 0;
  }

  .service-list {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-item {
    font-size: 16px;
  }
}

/* Recruit Section */
.recruit-section {
  padding: 80px 0;
  background: #fff;
}

.recruit-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.recruit-heading {
  font-size: 28px;
  font-weight: bold;
  color: #2a4073;
  text-align: center;
  margin-bottom: 20px;
}

.recruit-intro {
  text-align: center;
  font-size: 14px;
  color: #333;
  line-height: 2;
  margin-bottom: 50px;
}

.recruit-content {
  display: flex;
  gap: 40px;
  align-items: flex-end;
}

.recruit-table-wrap {
  flex: 1;
}

.recruit-subtitle {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 3px solid #2a4073;
}

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

.recruit-table th,
.recruit-table td {
  padding: 12px 10px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.recruit-table th {
  color: #333;
  font-weight: normal;
  width: 40%;
}

.recruit-table td {
  color: #666;
}

.recruit-image {
  flex: 0 0 500px;
}

.recruit-image img {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .recruit-section {
    padding: 50px 0;
  }

  .recruit-heading {
    font-size: 22px;
  }

  .recruit-intro {
    font-size: 13px;
    margin-bottom: 30px;
  }

  .recruit-intro br {
    display: none;
  }

  .recruit-content {
    flex-direction: column;
  }

  .recruit-image {
    flex: none;
    width: 100%;
  }
}

/* Company Section */
.company-section {
  padding: 80px 0;
  background: #fff;
}

.company-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 60px;
}

.company-table th,
.company-table td {
  padding: 16px 20px;
  font-size: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.company-table th {
  color: #333;
  font-weight: normal;
  width: 120px;
}

.company-table td {
  color: #333;
}

.company-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.company-gallery-item img {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .company-section {
    padding: 50px 0;
  }

  .company-table th,
  .company-table td {
    padding: 12px 10px;
    font-size: 14px;
  }

  .company-table th {
    width: 80px;
  }

  .company-gallery {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Message Section */
.message-section {
  padding: 80px 0;
  background: #fff;
}

.message-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.message-heading {
  font-size: 24px;
  font-weight: bold;
  color: #2a4073;
  text-align: center;
  margin-bottom: 15px;
}

.message-subtitle {
  font-size: 14px;
  color: #2a4073;
  text-align: center;
  margin-bottom: 50px;
}

.message-list {
  margin-bottom: 60px;
}

.message-item {
  margin-bottom: 40px;
  text-align: center;
}

.message-number {
  display: block;
  font-size: 36px;
  font-weight: bold;
  color: #2a4073;
  margin-bottom: 15px;
  font-style: italic;
}

.message-text {
  font-size: 14px;
  line-height: 2;
  color: #333;
}

.message-profile {
  max-width: 450px;
  margin: 0 auto;
  position: relative;
}

.message-profile-image img {
  width: 100%;
  height: auto;
}

.message-profile-name {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  text-align: right;
  margin-top: 15px;
}

@media (max-width: 768px) {
  .message-section {
    padding: 50px 0;
  }

  .message-heading {
    font-size: 20px;
  }

  .message-subtitle {
    font-size: 13px;
    margin-bottom: 30px;
  }

  .message-item {
    margin-bottom: 30px;
  }

  .message-number {
    font-size: 28px;
  }

  .message-text {
    font-size: 13px;
  }

  .message-text br {
    display: none;
  }

  .message-profile-image {
    max-width: 250px;
  }
}

/* Philosophy & Vision Section */
.philosophy {
  background: #fff;
  padding: 80px 0;
}

.philosophy-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  color: #2a4073;
  letter-spacing: 0.3em;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 14px;
  color: #2a5caa;
  letter-spacing: 0.2em;
  margin-bottom: 30px;
}

.philosophy-block {
  margin-bottom: 80px;
}

.philosophy-text {
  font-size: 16px;
  line-height: 2;
  color: #333;
}

.vision-block {
  padding-top: 20px;
}

.vision-text {
  font-size: 20px;
  color: #333;
  letter-spacing: 0.2em;
}

@media (max-width: 768px) {
  .philosophy {
    padding: 60px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .section-subtitle {
    font-size: 12px;
  }

  .philosophy-block {
    margin-bottom: 60px;
  }

  .philosophy-text {
    font-size: 14px;
  }

  .philosophy-text br {
    display: none;
  }

  .vision-text {
    font-size: 16px;
  }
}

/* CTA Section */
.cta-section {
  background: url('../img/fudder.png') center center / cover no-repeat;
  padding: 60px 0;
  text-align: center;
}

.cta-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.cta-postal {
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
}

.cta-address {
  font-size: 18px;
  color: #333;
  margin-bottom: 24px;
}

.cta-access-btn {
  display: inline-block;
  padding: 12px 50px;
  border: 1px solid #333;
  color: #333;
  font-size: 14px;
  letter-spacing: 0.1em;
  transition: background 0.3s, color 0.3s;
}

.cta-access-btn:hover {
  background: #333;
  color: #fff;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 40px 0;
  }

  .cta-postal {
    font-size: 14px;
  }

  .cta-address {
    font-size: 15px;
  }

  .cta-access-btn {
    padding: 10px 40px;
  }
}

/* Contact Section */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.contact-section {
  padding: 80px 0;
  background: #d9e5ed;
}

.contact-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-form {
  width: 100%;
}

.form-group {
  margin-bottom: 30px;
}

.form-label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #2a5caa;
}

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

.form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
}

.form-radio {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.form-radio input {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.privacy-box {
  background: #fff;
  padding: 30px;
  margin-bottom: 30px;
}

.privacy-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  margin-top: 20px;
}

.privacy-title:first-child {
  margin-top: 0;
}

.privacy-text {
  font-size: 13px;
  color: #333;
  line-height: 1.8;
}

.form-checkbox-group {
  text-align: center;
}

.form-checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.form-checkbox input {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-submit {
  text-align: center;
  margin-top: 40px;
}

.submit-btn {
  display: inline-block;
  padding: 18px 80px;
  background: #2a4073;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s, opacity 0.3s;
}

.submit-btn:hover {
  background: #1e2f54;
}

@media (max-width: 768px) {
  .contact-section {
    padding: 50px 0;
  }

  .form-group {
    margin-bottom: 25px;
  }

  .form-radio-group {
    flex-direction: column;
    gap: 15px;
  }

  .privacy-box {
    padding: 20px;
  }

  .privacy-text {
    font-size: 12px;
  }

  .form-checkbox {
    font-size: 13px;
  }

  .submit-btn {
    padding: 16px 60px;
    font-size: 15px;
  }
}

/* Thanks Section */
.thanks-section {
  padding: 80px 0;
  background: #fff;
}

.thanks-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.thanks-heading {
  font-size: 24px;
  font-weight: bold;
  color: #2a4073;
  margin-bottom: 30px;
}

.thanks-text {
  font-size: 15px;
  color: #333;
  line-height: 2;
  margin-bottom: 10px;
}

.thanks-btn-wrap {
  margin-top: 40px;
}

.thanks-btn {
  display: inline-block;
  padding: 15px 40px;
  background: #2a4073;
  color: #fff;
  font-size: 15px;
  border-radius: 0;
  transition: background 0.3s;
}

.thanks-btn:hover {
  background: #1e2f54;
}

@media (max-width: 768px) {
  .thanks-section {
    padding: 50px 0;
  }

  .thanks-heading {
    font-size: 20px;
  }

  .thanks-text {
    font-size: 14px;
  }
}

/* Bottom Contact Section */
.bottom-contact {
  background: #b71c1c;
  padding: 20px 0;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

.bottom-contact a {
  display: inline-block;
  transition: opacity 0.3s;
}

.bottom-contact a:hover {
  opacity: 0.9;
}

.bottom-contact img {
  max-width: 100%;
  height: auto;
}

/* Fixed CTA Button */
.fixed-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  transition: transform 0.3s, opacity 0.3s;
}

.fixed-cta:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.fixed-cta img {
  height: 100px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .fixed-cta {
    right: 15px;
    bottom: 15px;
  }

  .fixed-cta img {
    height: 70px;
  }
}

/* Footer */
.footer {
  background: #2a4073;
  padding: 40px 0;
  padding-bottom: 120px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo img {
  height: 60px;
  width: auto;
}

.footer-nav-list {
  display: flex;
  gap: 50px;
}

.footer-nav-list a {
  color: #fff;
  font-size: 14px;
  transition: opacity 0.3s;
}

.footer-nav-list a:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .footer {
    padding: 30px 0;
    padding-bottom: 100px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    padding: 0 20px;
  }

  .footer-logo img {
    height: 50px;
  }

  .footer-nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 30px;
  }

  .footer-nav-list a {
    font-size: 13px;
  }
}
