/*
Theme Name: Kuramoto
Description: 倉本鐵工株式会社のカスタムWordPressテーマ
Version: 1.0.0
Author: 倉本鐵工株式会社
Text Domain: kuramoto
*/

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

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  color: #333;
  background-color: #fff;
}

/* コンテナ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 0 20px;
}

.site-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-branding-content {
  display: flex;
  align-items: center;
}

.site-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  font-family: "Arimo", sans-serif;
  font-optical-sizing: auto;
  font-style: italic;
}

.site-title a {
  color: #ffffff;
  text-decoration: none;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.site-description {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  margin: 0;
}

/* ナビゲーション */
.main-navigation {
  display: flex;
  align-items: center;
}

.menu-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: #5CC9E2;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.menu-toggle:hover {
  background: #357ABD;
  transform: scale(1.05);
}

/* メニューが開いているときはハンバーガーボタンを非表示 */
body.menu-open .menu-toggle {
  display: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hamburger span {
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.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);
}

/* モバイルメニューオーバーレイ */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 600px;
  background: linear-gradient(135deg, #5CC9E2 0%, #70CC94 100%);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
}

.mobile-menu-overlay.active {
  transform: translateX(0);
}

.menu-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1002;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 1);
}

.menu-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.close-icon {
  color: #5CC9E2;
  font-size: 1.5rem;
  font-weight: bold;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 80px 40px 40px;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-menu {
  list-style: none;
  margin: 0 0 70px 0;
  padding: 0;
  width: 100%;
  text-align: center;
}

.mobile-menu li {
  margin: 0 0 25px 0;
}

.mobile-menu li:last-child {
  margin-bottom: 0;
}

.mobile-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu a:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: translateX(10px);
}

/* SNSアイコン */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.social-icon-svg {
  width: 80px;
  height: 80px;
  filter: brightness(0) invert(1);
}

/* モバイル会社情報 */
.mobile-company-info {
  text-align: center;
}

.mobile-company-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
  font-family: "Arimo", sans-serif;
  font-optical-sizing: auto;
  font-style: italic;
}

.mobile-company-jp {
  font-size: 1.2rem;
  color: #ffffff;
  margin: 0;
  font-weight: 600;
}

/* メインコンテンツ */
.site-main {
  min-height: 60vh;
  overflow: hidden;
}

/* フッター */
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.site-info {
  border-top: 1px solid #555;
  padding-top: 20px;
  text-align: center;
}

.company-info h3 {
  margin-bottom: 10px;
  color: #fff;
}

.company-info p {
  margin: 5px 0;
  color: #ccc;
}


/* レスポンシブデザイン */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .site-header {
    position: absolute;
  }

  .mobile-menu-overlay {
    max-width: 100%;
  }

  .mobile-menu-content {
    padding: 60px 20px 20px;
    max-width: 100%;
  }

  .mobile-menu a {
    font-size: 1.2rem;
  }

  .mobile-company-name {
    font-size: 2rem;
  }

  .mobile-company-jp {
    font-size: 1rem;
  }

  .social-icon-svg {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .mobile-menu-content {
    padding: 50px 15px 15px;
  }

  .mobile-menu a {
    font-size: 1.1rem;
  }

  .mobile-company-name {
    font-size: 1.8rem;
  }

  .mobile-company-jp {
    font-size: 0.9rem;
  }

  .social-icon-svg {
    width: 50px;
    height: 50px;
  }
}

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}