/*
 * レスポンシブスタイル
 * 倉本鐵工株式会社 WordPressテーマ
 * 
 * @package Kuramoto
 * @version 1.0.0
 * @author 倉本鐵工株式会社
 */

/* タブレット用スタイル (768px - 1024px) */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 20px;
  }

  .section {
    padding: 40px 0;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマートフォン用スタイル (768px以下) */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  /* ヘッダー */
  .site-branding {
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 0;
    left: 0;
  }

  .site-logo {
    width: 100px;
    height: 100px;
  }

  .site-title {
    font-size: 1.3rem;
  }

  .site-description {
    font-size: 0.8rem;
  }

  /* ナビゲーション */
  .main-navigation.active {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
  }

  .nav-menu li {
    margin: 0 0 15px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
  }

  .nav-menu li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .nav-menu a {
    display: block;
    padding: 10px 0;
    font-size: 1.1rem;
  }

  .menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* メインコンテンツ */
  .section {
    padding: 30px 0;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  /* グリッドレイアウト */
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* カード */
  .card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  /* フッター */
  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .company-info h3 {
    font-size: 1.1rem;
  }

  .company-info p {
    font-size: 0.9rem;
  }

  /* ボタン */
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  /* フレックスレイアウト */
  .flex-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  /* テキスト */
  .text-center {
    text-align: left;
  }

  /* ユーティリティクラス */
  .d-mobile-none {
    display: none;
  }

  .d-mobile-block {
    display: block;
  }

  .w-mobile-100 {
    width: 100%;
  }
}

/* 小さなスマートフォン用スタイル (480px以下) */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .hero-content {
    padding: 0 8px;
  }

  .section {
    padding: 20px 0;
  }

  .card {
    padding: 15px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* 横画面スマートフォン用スタイル */
@media (max-width: 768px) and (orientation: landscape) {
  .site-header {
    position: relative;
  }

  .main-navigation {
    position: relative;
    display: flex;
    background: none;
    box-shadow: none;
    padding: 0;
  }

  .nav-menu {
    flex-direction: row;
    justify-content: center;
  }

  .nav-menu li {
    margin: 0 15px 0 0;
    border-bottom: none;
    padding-bottom: 0;
  }

  .nav-menu a {
    font-size: 0.9rem;
  }
}

/* 高解像度ディスプレイ用 */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  .site-logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* 印刷用スタイル */
@media print {

  .site-header,
  .site-footer,
  .menu-toggle,
  .btn {
    display: none;
  }

  .site-main {
    padding: 0;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .section {
    padding: 0;
    page-break-inside: avoid;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}