/* JOYLINK 公式サイト スタイルシート */

/* リセットとベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
}

/* コンテナ */
.container {
  width: 100%;
  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;
  }
}

/* ヘッダー */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 768px) {
  .header-content {
    height: 80px;
  }
}

.logo img {
  height: 32px;
  width: auto;
}

@media (min-width: 768px) {
  .logo img {
    height: 40px;
  }
}

nav {
  display: none;
}

@media (min-width: 1024px) {
  nav {
    display: flex;
    gap: 2rem;
  }
}

nav a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #1a3a5c;
}

.cta-button {
  display: none;
}

@media (min-width: 1024px) {
  .cta-button {
    display: inline-block;
    background-color: #1a3a5c;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
  }
  
  .cta-button:hover {
    background-color: #2a4a6c;
  }
}

/* モバイルメニュー */
.mobile-menu-button {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #1a1a1a;
}

@media (min-width: 1024px) {
  .mobile-menu-button {
    display: none;
  }
}

.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
}

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

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
}

.mobile-menu .cta-button {
  display: inline-block;
  background-color: #1a3a5c;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  margin-top: 0.5rem;
}

/* ヒーローセクション */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
}

@media (min-width: 640px) {
  .hero {
    min-height: 600px;
  }
}

@media (min-width: 768px) {
  .hero {
    min-height: 650px;
    padding-top: 80px;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 750px;
  }
}

@media (min-width: 1280px) {
  .hero {
    min-height: 800px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
}

.hero h1 {
  font-size: 1.875rem;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.25rem;
  }
}

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

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

.hero h1 .highlight {
  color: #1a3a5c;
}

.hero p {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.75;
}

@media (min-width: 640px) {
  .hero p {
    font-size: 1.125rem;
  }
}

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

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .btn {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .btn {
    font-size: 1.125rem;
  }
}

.btn-primary {
  background-color: #1a3a5c;
  color: white;
}

.btn-primary:hover {
  background-color: #2a4a6c;
}

.btn-outline {
  background-color: transparent;
  color: #1a3a5c;
  border: 2px solid #1a3a5c;
}

.btn-outline:hover {
  background-color: #f3f4f6;
}

/* セクション共通 */
section {
  padding: 3rem 0;
}

@media (min-width: 640px) {
  section {
    padding: 4rem 0;
  }
}

@media (min-width: 768px) {
  section {
    padding: 5rem 0;
  }
}

@media (min-width: 1024px) {
  section {
    padding: 6rem 0;
  }
}

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

@media (min-width: 640px) {
  .section-header {
    margin-bottom: 3rem;
  }
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 4rem;
  }
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-header h2 {
    font-size: 1.875rem;
  }
}

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

@media (min-width: 1024px) {
  .section-header h2 {
    font-size: 3rem;
  }
}

.section-header p {
  font-size: 1rem;
  color: #6b7280;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .section-header p {
    font-size: 1.125rem;
  }
}

.bg-gray {
  background-color: #f9fafb;
}

/* サービスセクション */
.service-card {
  background-color: white;
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .service-card {
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .service-card {
    padding: 2.5rem;
  }
}

.service-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .service-header {
    flex-direction: row;
    align-items: flex-start;
  }
}

.service-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(26, 58, 92, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .service-icon {
    width: 80px;
    height: 80px;
  }
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: #1a3a5c;
}

@media (min-width: 768px) {
  .service-icon svg {
    width: 40px;
    height: 40px;
  }
}

.service-content {
  flex: 1;
}

.service-content h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .service-content h3 {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .service-content h3 {
    font-size: 1.875rem;
  }
}

.service-content p {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.75;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .service-content p {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .service-content p {
    font-size: 1.125rem;
  }
}

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

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

.feature-item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #6b7280;
}

@media (min-width: 640px) {
  .feature-item {
    font-size: 1rem;
  }
}

.feature-item svg {
  width: 16px;
  height: 16px;
  color: #1a3a5c;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .feature-item svg {
    width: 20px;
    height: 20px;
  }
}

/* 強みセクション */
.strengths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 80rem;
  margin: 0 auto;
}

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

.strength-card {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 0.5rem;
  background-color: white;
  border: 1px solid #e5e7eb;
  transition: border-color 0.3s;
}

@media (min-width: 640px) {
  .strength-card {
    gap: 1rem;
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .strength-card {
    padding: 2rem;
  }
}

.strength-card:hover {
  border-color: rgba(26, 58, 92, 0.5);
}

.strength-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(26, 58, 92, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .strength-icon {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 768px) {
  .strength-icon {
    width: 56px;
    height: 56px;
  }
}

.strength-icon svg {
  width: 20px;
  height: 20px;
  color: #1a3a5c;
}

@media (min-width: 640px) {
  .strength-icon svg {
    width: 24px;
    height: 24px;
  }
}

@media (min-width: 768px) {
  .strength-icon svg {
    width: 28px;
    height: 28px;
  }
}

.strength-content h3 {
  font-size: 1rem;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .strength-content h3 {
    font-size: 1.125rem;
  }
}

@media (min-width: 768px) {
  .strength-content h3 {
    font-size: 1.25rem;
  }
}

.strength-content p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.75;
}

@media (min-width: 640px) {
  .strength-content p {
    font-size: 1rem;
  }
}

/* お問い合わせセクション */
.contact-card {
  background-color: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .contact-card {
    padding: 2rem;
  }
}

@media (min-width: 768px) {
  .contact-card {
    padding: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .contact-card {
    padding: 3rem;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

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

.contact-item {
  padding: 1.25rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
}

@media (min-width: 640px) {
  .contact-item {
    padding: 1.5rem;
  }
}

.contact-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(26, 58, 92, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: #1a3a5c;
}

.contact-item h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
}

@media (min-width: 640px) {
  .contact-item h3 {
    font-size: 1rem;
  }
}

.contact-item p,
.contact-item a {
  font-size: 1rem;
  color: #1a1a1a;
  margin-left: 52px;
}

@media (min-width: 640px) {
  .contact-item p,
  .contact-item a {
    font-size: 1.125rem;
  }
}

.contact-item a {
  color: #1a3a5c;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item small {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-left: 52px;
  margin-top: 0.25rem;
}

.contact-cta {
  padding: 1.25rem;
  background-color: rgba(26, 58, 92, 0.05);
  border: 2px solid rgba(26, 58, 92, 0.2);
  border-radius: 0.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .contact-cta {
    padding: 1.5rem;
  }
}

.contact-cta p {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .contact-cta p {
    font-size: 1rem;
  }
}

.contact-cta .btn {
  padding: 0.75rem 2rem;
}

/* フッター */
footer {
  background-color: white;
  border-top: 1px solid #e5e7eb;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  footer {
    padding: 4rem 0;
  }
}

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

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

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

.footer-section img {
  height: 64px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-section p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.75;
}

.footer-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #1a3a5c;
}

.footer-contact {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  color: #1a3a5c;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact span,
.footer-contact a {
  font-size: 0.875rem;
  color: #6b7280;
  word-break: break-all;
}

.footer-contact a {
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: #1a3a5c;
}

.footer-bottom {
  border-top: 1px solid #e5e7eb;
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    margin-top: 3rem;
  }
}

.footer-bottom p {
  font-size: 0.875rem;
  color: #6b7280;
}

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}
