/* HomeRun Company Site */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #ffffff;
}

/* Main Container */
.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  position: relative;
  width: 100%;
  background: #ffffff;
  margin: 0;
  overflow: visible;
}

/* Header */
.header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px;
  width: 100%;
  min-height: 80px;
  background: #ffffff;
  border-radius: 0px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.header-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo Area */
.logo-area {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px;
  width: 48px;
  height: 48px;
  background: #dc2626;
  border-radius: 8px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.building-icon {
  width: 24px;
  height: 24px;
  border-radius: 0px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.company-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 900;
  font-size: 18px;
  line-height: 22px;
  color: #111827;
  text-align: left;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

/* Header Contact Info - Always horizontal */
.header .contact-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
  place-content: flex-end;
}

.phone {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 8px;
  width: 164px;
  height: 17px;
  border-radius: 0px;
  flex: none;
  order: 0;
  flex-grow: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.phone:hover {
  opacity: 0.8;
}

.phone-icon {
  width: 16px;
  height: 16px;
  border-radius: 0px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.phone span {
  width: 140px;
  height: 17px;
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  color: #374151;
  flex: none;
  order: 1;
  flex-grow: 0;
}

.email {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 8px;
  width: 162px;
  height: 17px;
  border-radius: 0px;
  flex: none;
  order: 1;
  flex-grow: 0;
}

.mail-icon {
  width: 16px;
  height: 16px;
  border-radius: 0px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.email span {
  width: 174px;
  height: 17px;
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  color: #374151;
  flex: none;
  order: 1;
  flex-grow: 0;
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 80px 24px;
  gap: 40px;
  width: 100%;
  background: #f8fafc;
}

.baseball-player {
  width: 200px;
  height: 150px;
  border-radius: 0px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 600px;
  flex: 1;
}

.hero-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 40px;
  line-height: 52px;
  color: #111827;
  margin: 0;
  text-align: center;
  width: 100%;
}

.hero-description {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #6b7280;
  margin: 0;
}

/* Company Overview */
.company-overview {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px;
  gap: 48px;
  width: 100%;
  background: #ffffff;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  gap: 16px;
}

.section-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 28px;
  line-height: 34px;
  text-align: center;
  color: #111827;
  margin: 0;
}

/* Desktop: Hide mobile-only line breaks */
.mobile-only {
  display: none;
}

.underline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  width: 80px;
  height: 3px;
  background: #dc2626;
  border-radius: 0px;
  flex: none;
  order: 1;
  flex-grow: 0;
}

.company-info-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 800px;
  width: 100%;
}

.info-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0px;
  gap: 32px;
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  gap: 12px;
  background: #f9fafb;
  border-radius: 8px;
  text-align: center;
}

.info-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 900;
  font-size: 14px;
  line-height: 17px;
  text-align: center;
  color: #6b7280;
  margin: 0;
}

.info-value {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  text-align: center;
  color: #111827;
  margin: 0;
}

.address-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
  gap: 16px;
  background: #f9fafb;
  border-radius: 8px;
  text-align: center;
}

.address-card .info-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 900;
  font-size: 14px;
  line-height: 17px;
  text-align: center;
  color: #6b7280;
  margin: 0;
}

.address-card .info-value {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #111827;
  margin: 0;
}

/* Business Areas */
.business-areas {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px;
  gap: 48px;
  background: #f8fafc;
  overflow: visible;
}

.services-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  gap: 24px;
  overflow: visible;
}

.service-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0px;
  gap: 24px;
  overflow: visible;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  gap: 12px;
  background: #ffffff;
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.0823529);
  border-radius: 12px;
  text-align: center;
  overflow: visible;
}

.service-card.wide {
  /* ワイドカードも同じスタイルを継承 */
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 0px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.service-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 900;
  font-size: 16px;
  line-height: 19px;
  text-align: center;
  color: #111827;
  margin: 0;
}

.service-card.wide .service-title {
  /* ワイドカードのタイトルも同じスタイルを継承 */
}

.service-description {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  color: #6b7280;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.service-card.wide .service-description {
  /* ワイドカードの説明文も同じスタイルを継承 */
}

/* Business Partners */
.business-partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px;
  gap: 48px;
  background: #ffffff;
}

.partners-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  gap: 24px;
}

.partners-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0px;
  gap: 32px;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  gap: 8px;
  background: #f9fafb;
  border-radius: 8px;
  text-align: center;
}

.partner-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  text-align: center;
  color: #111827;
  margin: 0;
}

.bank-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  gap: 8px;
  background: #f9fafb;
  border-radius: 8px;
  text-align: center;
}

.bank-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 900;
  font-size: 14px;
  line-height: 17px;
  text-align: center;
  color: #6b7280;
  margin: 0;
}

.bank-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  text-align: center;
  color: #111827;
  margin: 0;
}

/* Contact Section */
.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px 40px 24px;
  gap: 32px;
  background: #f8fafc;
}

.contact-subtitle {
  width: 600px;
  height: 20px;
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  text-align: center;
  color: #6b7280;
  flex: none;
  order: 1;
  flex-grow: 0;
}

.contact-section .contact-info {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
  gap: 16px;
  background: #ffffff;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.0392157);
  border-radius: 12px;
  text-align: center;
  width: 400px;
  min-height: 200px;
  flex: 1 1 400px;
  max-width: 400px;
}

.contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 0px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.contact-type {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  text-align: center;
  color: #6b7280;
  margin: 0;
}

.contact-value {
  font-family: 'Noto Sans JP', sans-serif;
  font-style: normal;
  font-weight: 900;
  font-size: 18px;
  line-height: 22px;
  text-align: center;
  color: #374151;
  margin: 0;
}

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px;
  background: #374151;
}

.footer-text {
  width: 262px;
  height: 15px;
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 14px;
  color: #9ca3af;
  flex: none;
  order: 0;
  flex-grow: 0;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .business-areas {
    width: 1200px;
    height: 989px;
    flex: none;
    order: 3;
    flex-grow: 0;
  }

  .services-grid {
    width: 900px;
    height: 728px;
    flex: none;
    order: 1;
    flex-grow: 0;
  }

  .service-row {
    width: 900px;
    height: 240px;
    flex: none;
    order: 0;
    flex-grow: 0;
  }

  .section-header {
    width: 800px;
    height: 53px;
    flex: none;
    order: 0;
    flex-grow: 0;
  }

  .info-row {
    width: 800px;
    height: 97px;
    flex: none;
    order: 0;
    flex-grow: 0;
  }

  .info-card {
    width: 380px;
    min-height: 97px;
  }

  .address-card {
    width: 792px;
    min-height: 150px;
  }

  .business-partners {
    width: 1200px;
    height: 538px;
    flex: none;
    order: 4;
    flex-grow: 0;
  }

  .partners-grid {
    width: 800px;
    height: 277px;
    flex: none;
    order: 1;
    flex-grow: 0;
  }

  .partners-row {
    width: 800px;
    height: 68px;
    flex: none;
    order: 0;
    flex-grow: 0;
  }

  .contact-section {
    width: 1200px;
    flex: none;
    order: 5;
    flex-grow: 0;
  }

  .contact-section .section-header {
    width: 600px;
    height: 70px;
  }

  .contact-section .section-title {
    width: 600px;
    height: 34px;
  }

  .footer {
    width: 1200px;
    height: 60px;
    flex: none;
    order: 6;
    flex-grow: 0;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .main-container {
    width: 100%;
    max-width: 1200px;
  }

  .header,
  .header-content,
  .hero-section,
  .company-overview,
  .business-areas,
  .business-partners,
  .contact-section,
  .footer {
    width: 100%;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .main-container {
    height: auto;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    align-items: center;
  }

  .header-content {
    flex-direction: column;
    gap: 16px;
    height: auto;
    padding: 16px;
    align-items: flex-start;
  }

  .logo-area {
    width: auto;
    justify-content: flex-start;
    align-self: flex-start;
  }

  .company-name {
    text-align: left;
  }

  /* Header contact info stays horizontal on mobile */
  .header .contact-info {
    flex-direction: row;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-self: flex-start;
    width: 100%;
  }

  .header .phone,
  .header .email {
    flex-shrink: 0;
  }

  .contact-info {
    flex-direction: column;
    gap: 12px;
    width: auto;
    height: auto;
  }

  .hero-title {
    font-size: 28px;
    line-height: 36px;
    width: 100%;
  }

  .hero-description {
    width: 100%;
  }

  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
    align-items: center;
  }

  .baseball-player {
    margin-bottom: 20px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .company-overview {
    padding: 40px 16px;
    align-items: center;
  }

  .section-header {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: auto;
    align-items: center;
    overflow: visible;
  }

  .section-title {
    text-align: center;
  }

  .mobile-only {
    display: block;
  }

  .company-info-grid {
    max-width: 100%;
    width: 100%;
    align-items: center;
  }

  .info-row {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: auto;
    gap: 16px;
    align-items: center;
  }

  .info-card {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .address-card {
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 24px;
  }

  .business-areas {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: auto;
    padding: 40px 16px;
    align-items: center;
    overflow: visible;
    flex-shrink: 0;
  }

  .services-grid {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: auto;
    gap: 20px;
    align-items: center;
    overflow: visible;
    flex-shrink: 0;
  }

  .service-row {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: auto;
    gap: 20px;
    align-items: center;
    overflow: visible;
    flex-shrink: 0;
  }

  .service-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: auto;
    text-align: center;
    overflow: visible;
    flex-shrink: 0;
  }

  .service-card.wide {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: auto;
    overflow: visible;
    flex-shrink: 0;
  }

  .service-description {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .business-partners {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: auto;
    padding: 40px 16px;
    align-items: center;
    overflow: visible;
    flex-shrink: 0;
  }

  .partners-grid {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: auto;
    gap: 16px;
    align-items: center;
    overflow: visible;
    flex-shrink: 0;
  }

  .partners-row {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: auto;
    gap: 16px;
    align-items: center;
    overflow: visible;
    flex-shrink: 0;
  }

  .partner-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: auto;
    text-align: center;
    overflow: visible;
    flex-shrink: 0;
  }

  .bank-info {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  /* Contact section info can be column on mobile */
  .contact-section .contact-info {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .contact-section .contact-card {
    width: 100%;
    max-width: 100%;
    min-height: 100px;
    height: auto;
    padding: 16px;
    gap: 8px;
    flex: 1 1 100%;
  }

  .contact-card .contact-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
  }

  .contact-card .contact-details {
    gap: 4px;
  }

  .contact-card .contact-type {
    font-size: 12px;
    line-height: 14px;
    margin: 0;
  }

  .contact-card .contact-value {
    font-size: 14px;
    line-height: 17px;
    margin: 0;
  }

  .contact-section {
    width: 100%;
    height: auto;
    padding: 40px 16px;
    align-items: center;
  }

  .contact-subtitle {
    width: 100%;
    text-align: center;
    height: auto;
  }

  .contact-section .section-header {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .contact-card {
    width: 100%;
    max-width: 100%;
    text-align: center;
    min-height: 100px;
    padding: 16px;
    gap: 8px;
    flex: 1 1 100%;
  }

  .footer {
    width: 100%;
    height: auto;
    min-height: 60px;
  }

  .info-address-value {
    font-family: 'Noto Sans JP', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: #111827;
    margin: 0;
  }
}
