@charset "UTF-8";

:root {
  --main-color: #dd0214;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #f7f7f7;
  --white: #fff;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden; /* 水平スクロール防止 */
}

.main-color {
  color: var(--main-color);
}

.bg-main {
  background-color: var(--main-color);
}

.border-main {
  border-color: var(--main-color);
}

.no-break {
  white-space: nowrap;
}

/* ヒーローセクション修正 */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('../img/hero-image.png');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  padding: 80px 0 40px;
}

.hero-title {
  line-height: 1.3;
}

.text-small {
  font-size: 0.8em;
  vertical-align: middle;
}

.line-break {
  display: block;
  margin-bottom: 0.25em;
}

.section-title {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 40px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--main-color);
}

.problem-card {
  transition: all 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-10px);
}

.value-card {
  border-left: 4px solid var(--main-color);
  min-height: 300px;
}

.testimonial {
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-size: 5rem;
  position: absolute;
  left: -15px;
  top: -30px;
  color: rgba(221, 2, 20, 0.2);
}

.faq-item {
  border-bottom: 1px solid #eee;
}

.faq-question {
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 1000px;
}

.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ヘッダー共通スタイル */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  z-index: 102; /* ロゴを最前面に */
}

.logo img {
  height: 40px;
  display: block;
}

/* メインメニュー */
.main-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu > li {
  margin-left: 30px;
  position: relative;
}

.main-menu > li > a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s;
  padding: 25px 0;
  display: block;
  white-space: nowrap; /* テキストの折り返しを防止 */
}

.dropdown-icon {
  font-size: 10px;
  margin-left: 4px;
}

.main-menu > li > a:hover {
  color: var(--main-color);
}

/* サブメニュー修正版スタイル */
.submenu {
  position: absolute;
  background-color: #ffffff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  width: 300px;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease-in-out;
  padding: 10px 0;
  left: -100px;
  z-index: 101;
  border: 1px solid #eaeaea;
}

.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  list-style: none;
}

.submenu li:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}

.submenu li a {
  color: var(--text-dark);
  text-decoration: none;
  padding: 12px 20px;
  display: block;
  font-size: 14px;
  transition: all 0.2s;
  background-color: #ffffff;
}

.submenu li a:hover {
  background-color: #f7f7f7;
  color: var(--main-color);
}

/* サブメニュー表示時の親メニュー強調 */
.has-submenu:hover > a {
  color: var(--main-color);
}

/* ハンバーガーメニュー修正版 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 102;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background-color: var(--text-dark);
  transition: all 0.3s;
  display: block;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* レスポンシブ修正版スタイル */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }

  /* モバイルナビゲーション */
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 101;
    overflow-y: auto;
    padding-top: 70px; /* ヘッダーの高さ分 */
  }

  nav.active {
    right: 0;
  }

  .main-menu {
    display: block;
    padding: 20px 0;
  }

  .main-menu > li {
    margin: 0;
    width: 100%;
  }

  .main-menu > li > a {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
  }

  .submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    display: none;
    transform: none;
    transition: none;
    padding: 0;
  }

  .has-submenu.active .submenu {
    display: block;
  }

  .submenu li a {
    padding-left: 40px;
  }

  .dropdown-icon {
    float: right;
    transition: transform 0.3s;
  }

  .has-submenu.active .dropdown-icon {
    transform: rotate(180deg);
  }

  /* ヒーローセクション調整 */
  .hero-section {
    padding-top: 70px;
  }

  .text-small {
    font-size: 0.7em;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 90vh;
    padding: 100px 0 40px;
  }
}

@media (max-width: 640px) {
  .logo img {
    height: 35px;
  }

  .hero-section {
    padding: 80px 0 30px;
  }

  /* 7つの価値セクション調整 */
  .value-card {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .header-container {
    height: 60px;
  }

  .logo img {
    height: 30px;
  }

  .hero-title {
    font-size: 24px !important;
  }

  .hero-section {
    padding: 70px 0 20px;
  }
}

// スマホの時だけ改行させるクラス
.br-sp {
  display: none;
}

.br-pc {
  display: block;
}

@media (max-width: 600px) {
  .br-sp {
    display: block;
  }
  .br-pc {
    display: none;
  }
}
