/* レスポンシブデザイン最適化用追加スタイル */

/* 共通レスポンシブ調整 */
html {
  font-size: 16px;
}

@media (max-width: 1200px) {
  .container {
    padding: 0 30px;
  }
  
  .section {
    padding: 70px 0;
  }
}

/* タブレット対応 */
@media (max-width: 1023px) {
  html {
    font-size: 15px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  /* ヒーローセクション */
  .hero-title {
    font-size: 40px;
  }
  
  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
  }
  
  /* サービスセクション */
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  
  /* 理念・ビジョン */
  .philosophy-text {
    font-size: 24px;
  }
  
  .keyword {
    font-size: 16px;
  }
  
  /* 採用情報 */
  .position-cards {
    flex-direction: column;
  }
  
  .position-card {
    width: 100%;
    margin-bottom: 20px;
  }
  
  /* お問い合わせ */
  .contact-content {
    flex-direction: column;
  }
  
  .contact-form-container,
  .contact-info {
    width: 100%;
  }
  
  .contact-info {
    margin-top: 40px;
  }
}

/* モバイル対応 */
@media (max-width: 767px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .section-title {
    font-size: 24px;
    margin-bottom: 25px;
  }
  
  /* ヘッダー */
  .header-inner {
    height: 60px;
  }
  
  .logo {
    height: 40px;
  }
  
  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(255, 255, 255, 0.98);
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 999;
  }
  
  .nav.active {
    height: calc(100vh - 60px);
    overflow-y: auto;
  }
  
  .nav-list {
    flex-direction: column;
    padding: 20px;
  }
  
  .nav-item {
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
  }
  
  .nav-item:last-child {
    border-bottom: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  /* ヒーローセクション */
  .hero {
    min-height: 500px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  /* 会社概要 */
  .about-content {
    flex-direction: column;
  }
  
  .about-text,
  .about-image {
    width: 100%;
  }
  
  .about-image {
    margin-top: 30px;
  }
  
  .about-table th,
  .about-table td {
    padding: 12px 10px;
  }
  
  .about-table th {
    width: 35%;
  }
  
  /* サービス */
  .service-card {
    padding: 20px;
  }
  
  /* 理念・ビジョン */
  .philosophy-text {
    font-size: 20px;
    padding: 0 10px;
  }
  
  .philosophy-keywords {
    flex-direction: column;
    gap: 15px;
  }
  
  .keyword {
    width: 100%;
    text-align: center;
  }
  
  /* 採用情報 */
  .process-step {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .step-number {
    margin-bottom: 10px;
  }
  
  /* お知らせ */
  .news-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .news-date,
  .news-category {
    margin-bottom: 10px;
  }
  
  .news-title {
    padding-left: 0;
  }
  
  /* お問い合わせ */
  .form-group label {
    font-size: 14px;
  }
  
  /* フッター */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-logo {
    margin: 0 auto 20px;
  }
  
  .footer-social {
    justify-content: center;
    margin-top: 20px;
  }
}

/* 小型モバイル対応 */
@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 22px;
  }
  
  .about-table th,
  .about-table td {
    display: block;
    width: 100%;
  }
  
  .about-table th {
    background-color: #f8f8f8;
    border-bottom: none;
    padding-bottom: 5px;
  }
  
  .about-table td {
    padding-top: 5px;
  }
  
  .service-title {
    font-size: 18px;
  }
  
  .philosophy-text {
    font-size: 18px;
  }
  
  .recruit-subtitle {
    font-size: 20px;
  }
  
  .contact-form-container {
    padding: 20px;
  }
}

/* 印刷用スタイル */
@media print {
  .header {
    position: static;
    box-shadow: none;
  }
  
  .hero {
    height: auto;
    min-height: auto;
  }
  
  .hero-animation {
    display: none;
  }
  
  .section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
  
  .footer {
    background-color: transparent;
    color: #000000;
  }
  
  .btn,
  .form-submit,
  .hamburger {
    display: none;
  }
}
