/* 全体設定 */
html,
body {
  margin: 0;
  padding: 0;
  padding-top: 46px;
  width: 100%;
  max-width: 100vw; /* ビューポート幅に固定 */
  overflow-x: hidden; /* 横スクロールを防止 */
  background-color: #fff; /* 背景色を白に設定 */
  box-sizing: border-box;
}

/* デフォルトのリンクスタイルをリセット */
a {
  text-decoration: none; /* 下線を削除 */
  color: inherit; /* 親要素の色を継承 */
}

/* ホバースタイルを設定（必要に応じてカスタマイズ） */
a:hover {
  text-decoration: underline; /* ホバー時に下線を表示（任意） */
  color: #bf3551; /* ホバー時の文字色を黒に変更（任意） */
}

.header-logo img {
  height: 30px;
  display: block;
  margin: auto 0;
}

.header-menu img {
  height: 24px;
  display: block;
  margin: auto 0;
  cursor: pointer;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* ヘッダーの設定 */
.header {
  position: fixed;
  top: 0;
  left: 50%; /* 左端を画面中央に配置 */
  transform: translateX(-50%); /* 要素自体を左に50%移動して中央寄せ */
  width: 100%;
  max-width: 500px;
  background-color: rgba(255, 255, 255, 1);
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 0; /* marginは不要なので削除 */
  box-sizing: border-box;
}

/* Dropdown menu */
.dropdown-menu {
  position: fixed;
  top: 0;
  left: 50%;
  width: 100%;
  max-width: 500px;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translate(-50%, -100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  box-sizing: border-box;
}

.dropdown-menu.open {
  transform: translate(-50%, 0);
}

.dropdown-menu ul {
  list-style: none;
  padding: 20px;
  margin: 0;
}

.dropdown-menu ul li {
  margin: 10px 0;
  text-align: center;
  font-size: 1.2rem;
  color: #b44163;
}

.dropdown-menu .buttons {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.dropdown-menu .buttons a {
  display: block;
  text-align: center;
  font-size: 1rem;
  color: white;
  background: linear-gradient(45deg, #f77, #f3a);
  padding: 10px;
  margin: 5px 0;
  text-decoration: none;
  border-radius: 20px;
}

.dropdown-menu .buttons a:last-child {
  background: linear-gradient(45deg, #4caf50, #81c784);
}

.dropdown-menu .close-btn {
  text-align: right;
  padding: 10px 20px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #b44163;
  cursor: pointer;
}

/* セクションの共通設定 */
.section {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden; /* 不要なスクロールを防止 */
  box-sizing: border-box;
}

/* 画像の共通設定: 表示領域を最大500pxに固定 */
.full-width-image {
  width: 100%;
  max-width: 500px; /* 最大幅500pxを維持 */
  height: auto;
  display: block;
  margin: 0 auto;
  box-sizing: border-box;
}

/* テキストコンテナの共通設定 */
.text-container {
  width: 100%;
  max-width: 500px; /* 最大幅500pxを維持 */
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
}

/* ボタンのスタイル */
.button {
  font-size: 1rem;
  padding: 10px 20px;
  background-color: #f77;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  margin: 10px auto;
  text-align: center;
}

.button:hover {
  background-color: #e66;
}

/* フッターテキスト */
footer p {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin: 10px 0;
}

/* CTAセクション */
.cta-section {
  background-color: #ffffff;
  text-align: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  box-sizing: border-box;
}

.cta-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 0px;
  background: #ffffff;
  border: none;
  box-shadow: none;
}

.cta-container img {
  display: block;
  max-width: 100%;
  margin: 10px auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.cta-button {
  display: inline-block;
  padding: 10px;
  font-size: 1rem;
  text-align: center;
  color: #fff;
  border-radius: 20px;
  margin: 1px 30px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-button {
  background: linear-gradient(45deg, #f77, #f3a);
}

.line-button {
  background: linear-gradient(45deg, #4caf50, #81c784);
}

/* Footer Section Styles */
.footer {
  background-color: #c46579;
  text-align: center;
  padding: 60px 20px 100px 20px;
  max-width: 500px;
  margin: 0 auto;
  box-sizing: border-box; /* Include padding and border in max-width */
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-content img {
  margin-bottom: 20px;
}

.footer-content a {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  margin: 5px 0;
  text-decoration: none;
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: space-between;
  z-index: 1000;
  box-sizing: border-box; /* ボックスサイズ調整 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.floating-buttons.visible {
  opacity: 1;
  visibility: visible;
}

.floating-buttons a {
  display: inline-block;
  flex: 1; /* 各ボタンを均等に配置 */
  height: 120px; /* 高さを固定 */
  background-size: cover;
  background-repeat: no-repeat;
  text-indent: -9999px;
  overflow: hidden;
  transition: background-color 0.3s ease, transform 0.2s ease; /* ホバー時のエフェクト */
}

/* ピンクボタン */
.floating-buttons .btn-pnk {
  background-image: url("https://shecareer.jp/wp-content/themes/shecareer_theme/assets/img/btn_pink.png");
  background-color: #f77; /* デフォルトの背景色 */
}

/* ピンクボタンのホバー */
.floating-buttons .btn-pnk:hover {
  background-color: #e66; /* ホバー時の背景色 */
  transform: scale(1.05); /* 少し拡大 */
}

/* グリーンボタン */
.floating-buttons .btn-green {
  background-image: url("https://shecareer.jp/wp-content/themes/shecareer_theme/assets/img/btn_green.png");
  background-color: #4caf50; /* デフォルトの背景色 */
}

/* グリーンボタンのホバー */
.floating-buttons .btn-green:hover {
  background-color: #3e8e41; /* ホバー時の背景色 */
  transform: scale(1.05); /* 少し拡大 */
}

/* フォーム全体のスタイル */
.contact-form-section {
  background-color: white !important; /* 背景色 */
  padding: 0px !important; /* 内側余白 (上下: 40px, 左右: 20px) */
  max-width: 500px !important; /* 最大幅を他のセクションに合わせる */
  margin: 40px auto !important; /* セクションの中央配置 */
  font-family: "Arial", sans-serif !important;
}

/* セクションタイトル */
.contact-form-section h2 {
  font-size: 1.5rem !important; /* タイトルのフォントサイズ */
  background-color: #c46579 !important; /* タイトルの背景色 */
  color: white !important; /* タイトルの文字色 */
  padding: 15px !important; /* 内側余白 */
  text-align: center !important; /* 中央揃え */
  margin: 0 0 20px 0 !important; /* 下部の余白 */
}

/* 入力フィールドのスタイル */
.contact-form-section .inputText1,
.contact-form-section .inputText2,
.contact-form-section .inputText3,
.contact-form-section .inputText4 {
  width: 50% !important; /* 幅を100%に調整 */
  padding: 12px !important; /* 内側余白 */
  margin-bottom: 15px !important; /* 下部余白 */
  border: 1px solid #ccc !important; /* ボーダー色 */
  border-radius: 4px !important; /* コーナーの丸み */
  background-color: #fff !important; /* 背景色 */
  font-size: 1rem !important; /* フォントサイズ */
}

/* 入力フィールドのスタイル */
.contact-form-section .inputText5 {
  width: 20% !important; /* 幅を100%に調整 */
  padding: 12px !important; /* 内側余白 */
  margin-bottom: 15px !important; /* 下部余白 */
  border: 1px solid #ccc !important; /* ボーダー色 */
  border-radius: 4px !important; /* コーナーの丸み */
  background-color: #fff !important; /* 背景色 */
  font-size: 1rem !important; /* フォントサイズ */
}

.mw_wp_form {
  padding: 0 10px;
}

/* 入力フィールドのスタイル */
.contact-form-section .inputTextarea,
.contact-form-section .inputMail {
  width: 90% !important; /* 幅を100%に調整 */
  padding: 12px !important; /* 内側余白 */
  margin-bottom: 15px !important; /* 下部余白 */
  border: 1px solid #ccc !important; /* ボーダー色 */
  border-radius: 4px !important; /* コーナーの丸み */
  background-color: #fff !important; /* 背景色 */
  font-size: 1rem !important; /* フォントサイズ */
}

/* チェックボックス */
.contact-form-section input[type="checkbox"] {
  margin-right: 10px !important; /* チェックボックスの余白 */
}

/* 送信ボタンのスタイル */
.contact-form-section input[type="submit"] {
  width: 100% !important; /* 幅を100%に設定 */
  padding: 12px !important; /* 内側余白 */
  font-size: 1rem !important; /* フォントサイズ */
  background-color: #c46579 !important; /* ボタンの背景色 */
  color: white !important; /* ボタンの文字色 */
  border: none !important; /* ボーダーを削除 */
  border-radius: 4px !important; /* コーナーの丸み */
  cursor: pointer !important; /* ポインタを変更 */
  transition: background-color 0.3s ease-in-out !important; /* ホバー時のアニメーション */
}

.contact-form-section input[type="submit"]:hover {
  background-color: #b44163 !important; /* ホバー時の背景色 */
}

/* ラベルのスタイル */
.contact-form-section label {
  font-weight: bold !important; /* フォントの太さ */
  margin-bottom: 5px !important; /* 下部余白 */
  display: block !important; /* ブロック要素に変更 */
}

/* スマホとタブレット向け設定（最大幅500pxまで） */
@media screen and (max-width: 500px) {
  .section {
    padding: 0; /* 余白を完全に削除 */
  }

  .text-container {
    padding: 15px; /* テキストの余白を縮小 */
  }

  .full-width-image {
    max-width: 100%; /* スマホ画面で幅いっぱいに広げる */
  }

  .header {
    max-width: 100%;
    left: 0;
    transform: none;
    margin: 0;
  }

  .dropdown-menu {
    left: 0;
    transform: translateY(-100%);
  }

  .dropdown-menu.open {
    transform: translateY(0);
  }

  .floating-buttons {
    left: 0;
    transform: none;
  }

  .cta-container {
    padding: 15px 0px 50px 0px;
  }

  .cta-buttons {
    gap: 8px;
  }
}

/* PC向け設定（501px以上） */
@media screen and (min-width: 501px) {
  .section {
    max-width: 500px; /* PC でも最大幅500pxに統一 */
    padding: 0; /* 余白は不要 */
  }

  .text-container {
    padding: 20px; /* テキスト部分の余白を調整 */
  }

  .full-width-image {
    max-width: 500px; /* PCでも画像の最大幅を500pxに固定 */
  }

  .header {
    left: 50%;
    transform: translateX(-50%);
    margin: 0; /* PCでもmarginは不要 */
  }

  .floating-buttons a {
    display: inline-block;
    flex: 1; /* 各ボタンを均等に配置 */
    height: 140px; /* 高さを固定 */
    background-size: cover;
    background-repeat: no-repeat;
    text-indent: -9999px;
    overflow: hidden;
  }

  .cta-container {
    padding: 20px 0px 50px 0px;
  }
}

/* 会社情報ページ専用スタイル */
.company-page {
  padding: 20px 0;
  background-color: #fff;
}

.company-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.company-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #c46579;
  text-align: center;
  margin: 0 0 10px 0;
  font-family: "Arial", sans-serif;
}

.company-subtitle {
  font-size: 1.5rem;
  color: #666;
  text-align: center;
  margin: 0 0 40px 0;
  font-weight: normal;
}

.company-info {
  background-color: #fafafa;
  border-radius: 8px;
  padding: 30px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.company-item {
  display: flex;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.company-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.company-label {
  min-width: 100px;
  font-weight: bold;
  color: #c46579;
  font-size: 1rem;
  padding-right: 20px;
  flex-shrink: 0;
}

.company-value {
  flex: 1;
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}

.business-content {
  align-items: flex-start;
}

.business-description {
  font-weight: 600;
  margin-bottom: 15px;
  color: #555;
}

.business-list {
  margin: 0;
  padding-left: 20px;
  color: #666;
}

.business-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.business-list li:last-child {
  margin-bottom: 0;
}

.back-to-top {
  text-align: center;
  margin: 40px 0;
}

.back-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #c46579;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(196, 101, 121, 0.3);
}

.back-button:hover {
  background-color: #b44163;
  text-decoration: none;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 101, 121, 0.4);
}

/* スマホ向け調整 */
@media screen and (max-width: 500px) {
  .company-container {
    padding: 15px;
  }

  .company-title {
    font-size: 2rem;
  }

  .company-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
  }

  .company-info {
    padding: 20px 15px;
  }

  .company-item {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .company-label {
    min-width: auto;
    margin-bottom: 8px;
    padding-right: 0;
  }

  .business-list {
    padding-left: 16px;
  }
}

/* PC向け調整 */
@media screen and (min-width: 501px) {
  .company-container {
    padding: 30px 20px;
  }

  .company-info {
    padding: 40px 30px;
  }

  .company-label {
    min-width: 120px;
    font-size: 1.1rem;
  }

  .company-value {
    font-size: 1.1rem;
  }
}

/* プライバシーポリシーページ専用スタイル */
.privacy-page {
  padding: 20px 0;
  background-color: #fff;
}

.privacy-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.privacy-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #c46579;
  text-align: center;
  margin: 0 0 30px 0;
  line-height: 1.3;
}

.privacy-content {
  background-color: #fafafa;
  border-radius: 8px;
  padding: 30px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  line-height: 1.7;
}

.company-info-header {
  background-color: #c46579;
  color: white;
  padding: 20px;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 30px;
}

.company-info-header p {
  margin: 0;
  font-size: 1.1rem;
}

.intro-text {
  font-size: 1rem;
  color: #333;
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f0f8ff;
  border-left: 4px solid #c46579;
  border-radius: 4px;
}

.privacy-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
}

.privacy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.privacy-section h2 {
  font-size: 1.4rem;
  color: #c46579;
  margin: 0 0 15px 0;
  padding: 10px 0;
  border-bottom: 2px solid #c46579;
  font-weight: bold;
}

.privacy-section h3 {
  font-size: 1.2rem;
  color: #666;
  margin: 20px 0 10px 0;
  font-weight: bold;
}

.privacy-section p {
  color: #333;
  margin: 0 0 15px 0;
  font-size: 1rem;
}

.privacy-section ul {
  margin: 15px 0;
  padding-left: 20px;
  color: #333;
}

.privacy-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.contact-section {
  background-color: #fff;
  border: 2px solid #c46579;
  border-radius: 8px;
  padding: 25px;
}

.contact-info {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
  margin-top: 15px;
}

.contact-info p {
  margin: 8px 0;
  font-size: 1rem;
  color: #333;
}

.privacy-footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background-color: #c46579;
  color: white;
  border-radius: 6px;
}

.privacy-footer p {
  margin: 0;
  font-size: 1.1rem;
}

.back-to-top {
  text-align: center;
  margin: 40px 0;
}

.back-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #c46579;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(196, 101, 121, 0.3);
}

.back-button:hover {
  background-color: #b44163;
  text-decoration: none;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 101, 121, 0.4);
}

/* スマホ向け調整 */
@media screen and (max-width: 500px) {
  .privacy-container {
    padding: 15px;
  }

  .privacy-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .privacy-content {
    padding: 20px 15px;
  }

  .company-info-header {
    padding: 15px;
  }

  .intro-text {
    padding: 15px;
    font-size: 0.95rem;
  }

  .privacy-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
  }

  .privacy-section h2 {
    font-size: 1.2rem;
  }

  .privacy-section h3 {
    font-size: 1.1rem;
  }

  .privacy-section p {
    font-size: 0.95rem;
  }

  .privacy-section ul {
    padding-left: 16px;
  }

  .contact-section {
    padding: 20px 15px;
  }

  .contact-info {
    padding: 15px;
  }
}

/* PC向け調整 */
@media screen and (min-width: 501px) {
  .privacy-container {
    padding: 30px 20px;
  }

  .privacy-title {
    font-size: 2.5rem;
  }

  .privacy-content {
    padding: 40px 30px;
  }

  .company-info-header {
    padding: 25px;
  }

  .intro-text {
    padding: 25px;
    font-size: 1.1rem;
  }

  .privacy-section h2 {
    font-size: 1.5rem;
  }

  .privacy-section h3 {
    font-size: 1.3rem;
  }

  .privacy-section p {
    font-size: 1.1rem;
  }

  .contact-section {
    padding: 30px;
  }

  .contact-info {
    padding: 25px;
  }
}
