/* 共通のフォーム */
a,
a::before,
a::after {
  -webkit-transition: all .3s;
  transition: all .3s;
}
.br_none {
  display: none;
}
@media screen and (min-width: 768px) {
  .wrapper {
    margin: 0;
  }
  .br_none {
    display: block;
  }
}
header {
  margin: 30px auto 10px auto;
}
header h1 {
  text-align: center;
  margin-bottom: 20px;
}
#menu {
  display: none;
}
#menu li {
  width: 100%;
}
#menu li a {
  display: block;
  padding: 12px 0 10px;
  background: #333;
  color: #fff;
  text-align: center;
  text-decoration: none;
}
#menu li a:hover {
  background: #444;
}
#menu li a .br_none {
  display: none;
}
#menu li a small {
  margin-left: 10px;
}
#toggle {
  display: block;
  position: relative;
  width: 100%;
  background: #222;
}
#toggle:before {
  display: block;
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  width: 20px;
  height: 20px;
  margin-top: -11px;
  background: #fff;
}
#toggle a {
  display: block;
  position: relative;
  padding: 12px 0 10px;
  border-bottom: 1px solid #444;
  color: #fff;
  text-align: center;
  text-decoration: none;
}
#toggle a:before,
#toggle a:after {
  display: block;
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  width: 20px;
  height: 4px;
  background: #222;
}
#toggle a:before {
  margin-top: -6px;
}
#toggle a:after {
  margin-top: 2px;
}
@media screen and (min-width: 768px) and (max-width: 989px) {
  header h1 {
    margin-bottom: 0;
    text-align: left;
  }
  #menu {
    margin: 0 auto;
    display: block;
    text-align: right;
  }
  #menu li {
    font-size: 16px;
    display: inline-block;
    width: auto;
    margin: 0 5px;
    text-align: center;
  }
  #menu li a {
    background-color: #fff;
    color: #333;
  }
  #menu li a:hover {
    background-color: #fff;
    color: #a51e23;
    text-decoration: none;
  }
  #menu li a .br_none {
    display: block;
  }
  #menu li a small {
    margin-left: 0;
  }
  #toggle {
    display: none;
  }
}
@media screen and (min-width: 990px) {
  header h1 {
    margin-bottom: 0;
    text-align: left;
  }
  #menu {
    display: block;
    margin-bottom: 0;
    text-align: right;
  }
  #menu li {
    font-size: 16px;
    text-align: center;
    margin: 0 15px;
    width: auto;
  }
  #menu li a {
    background-color: #fff;
    color: #333;
  }
  #menu li a:hover {
    background-color: #fff;
    color: #a51e23;
    text-decoration: none;
  }
  #menu li a .br_none {
    display: block;
  }
  #menu li a small {
    margin-left: 0;
    display: block;
  }
  #toggle {
    display: none;
  }
}
.visual {
  background-color: #a51e23;
  color: #fff;
  font-weight: bold;
  height: auto;
  min-height: 150px;
  padding: 20px 0;
  margin-bottom: 30px;
  text-align: center;
}
.visual img {
  margin-bottom: 20px;
  max-width: 100px;
}
.visual p {
  font-size: 16px;
  margin-bottom: 0;
}
.main_title h2 {
  width: 90%;
  color: #a51e23;
  font-size: 20px;
  line-height: 20px;
  border-bottom: 1px solid #c4c4c4;
  padding-bottom: 5px;
  margin: 0 auto;
}
.main_title small {
  margin-top: 10px;
  color: #c6c6c6;
}
.main_title p {
  margin: 15px 0 15px 0;
  text-align: left;
}
.page_link {
  margin-bottom: 40px;
  padding: 0;
}
.page_link ul {
  text-align: center;
  margin-bottom: 0;
}
.page_link li {
  display: inline-block;
  background: url(../img/bg_dot_gray.gif);
  border-radius: 4px;
  margin: 5px;
  width: 45%;
}
.page_link a {
  display: block;
  color: #333;
  padding: 10px;
  font-size: 12px;
  white-space: nowrap;
}
.page_link a:hover {
  color: #a51e23;
  opacity: 0.7;
  filter: alpha(opacity=70);
  text-decoration: none;
}
@media screen and (min-width: 768px) {
  .main_title p {
    text-align: center;
  }
  .visual {
    height: auto;
    min-height: 150px;
  }
  .page_link li {
    margin: 5px;
    width: 40%;
  }
  .page_link li a {
    font-size: 14px;
  }
}
.contact {
  border-radius: 4px;
  margin-bottom: 40px;
}
.contact a {
  background: url(../img/contact.png) no-repeat #fff3b8;
  background-position: 0 40%;
  color: #333;
  display: block;
  padding: 10px 0;
}
.contact a:hover {
  text-decoration: none;
  opacity: 0.7;
  filter: alpha(opacity=70);
}
.contact a p {
  padding: 0 20px 0 110px;
  margin: 10px 0;
  text-align: left;
}
.contact a p span {
  font-size: 16px;
  font-weight: bold;
}
@media screen and (min-width: 768px) and (max-width: 1229px) {
  .contact {
    width: 40%;
  }
}
@media screen and (min-width: 1230px) {
  .contact {
    width: 35%;
  }
}
.pagetop {
  display: none;
  position: fixed;
  bottom: 5px;
  right: 30px;
  margin-bottom: 20px;
}
.pagetop a {
  display: block;
  width: 35px;
  height: 35px;
  background-color: #a51e23;
  border-radius: 4px;
  text-align: center;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  line-height: 35px;
}
.pagetop a:hover {
  opacity: 0.7;
  filter: alpha(opacity=70);
  -webkit-transition: all .3s;
  transition: all .3s;
}
footer {
  border-top: 1px solid #f2f2f2;
  padding: 30px 0;
  text-align: center;
}
footer .footer_link {
  border-bottom: 1px solid #c9c9c9;
  width: 80%;
  margin: 0 auto 10px auto;
  padding-bottom: 5px;
}
footer .footer_link p {
  display: inline-block;
  margin: 0 10px;
}
footer .footer_link a {
  color: #333;
  font-size: 12px;
}
footer .footer_link a:hover {
  color: #333;
  text-decoration: none;
  opacity: 0.7;
  filter: alpha(opacity=70);
}
@media screen and (min-width: 768px) {
  .pagetop {
    bottom: 30px;
    right: 55px;
  }
  .pagetop a {
    width: 50px;
    height: 50px;
    font-size: 24px;
    line-height: 50px;
  }
  footer {
    padding: 50px 0;
  }
}
#errmsg {
  background-color: #ffe6e6;
  color: #a51e23;
  border: 1px solid #a51e23;
  border-radius: 4px;
  padding: 10px 10px 10px 25px;
  margin-bottom: 20px;
}
@media screen and (min-width: 768px) {
  .message {
    margin-bottom: 20px;
  }
  .message #errmsg {
    width: 50%;
    padding: 10px 10px 10px 30px;
    margin: 0 auto;
  }
}
/* 共通のフォームここまで */

/* =============================================
   フリーランス募集ページ用CSS
   ============================================= */

/* CSS変数定義 */
:root {
  --accent-red: #a51e23;
  --text-dark: #333333;
  --text-gray: #4b4b4b;
  --bg-light: #fafafa;
  --border-light: #dcdcdc;
  --border-gray: #c6c6c6;
  --border-medium: #cccccc;
  --border-subtle: #e6e6e6;
  --border-light-gray: #e5e7eb;
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-contact: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-contact-hover: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* =============================================
   共通セクションスタイル
   ============================================= */
.section-block {
  margin-bottom: 40px;
  padding: 40px;
  background: #ffffff;
}
.section-block section {
  max-width: 840px;
  margin: auto;
  background: #ffffff;
  padding: 40px 55px;
  border: 1px solid var(--border-gray);
  box-shadow: var(--shadow-soft);
  transition: all 0.35s ease;
  position: relative;
}
.section-block section:hover {
  transform: translateY(-6px);
  border-color: var(--accent-red);
  box-shadow: var(--shadow-hover);
}

/* =============================================
   概要セクション
   ============================================= */

#outline {
  background: #ffffff;
  border: 1px solid var(--border-gray);
  box-shadow: var(--shadow-soft);
  transition: all 0.35s ease;
}
#outline:hover {
  transform: translateY(-6px);
  border-color: var(--accent-red);
  box-shadow: var(--shadow-hover);
}
/* 概要セクション - 見出し */
#outline h3,
.container h3 {
  color: var(--accent-red);
  font-size: 24px;
  border-bottom: 1px dashed var(--border-gray);
  margin: 0 auto 12px;
  line-height: 25px;
  text-align: center;
  max-width: 600px;
}
/* 経験紹介ブロック */
#outline .ol-intro {
  font-size: 1.45rem;
  line-height: 1.9;
  color: var(--text-dark);
  border: 1px solid var(--border-medium);
  padding: 32px;
  border-radius: 8px;
  transition: all 0.35s ease;
  margin-bottom: 16px;
}
#outline .ol-intro:hover {
  transform: translateY(-4px);
  border-color: var(--accent-red);
  box-shadow: var(--shadow-hover);
}
/* リスト */
#outline .ol-features {
  margin-bottom: 20px;
  padding-left: 20px;
  max-width: 500px;
}
#outline .ol-features ul {
  list-style: none;
  padding: 0;
  margin-left: 0;
  display: grid;
  gap: 16px;
}
#outline .ol-features li {
  padding: 6px 16px 6px 40px;
  background: #ffffff;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--text-dark);
  position: relative;
  transition: all 0.35s ease;
}
#outline .ol-features li:hover {
  transform: translateX(6px);
  border-color: var(--accent-red);
}
#outline .ol-features li::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent-red);
  border-radius: 50%;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}
#outline .ol-features li:hover::before {
  transform: translateY(-50%) scale(1.25);
}
/* 締めの文章 */
#outline .ol-closing {
  font-size: 1.55rem;
  line-height: 1.9;
  color: var(--text-dark);
  border: 1px solid var(--border-medium);
  padding: 32px;
  border-radius: 8px;
  transition: all 0.35s ease;
}
#outline .ol-closing:hover {
  transform: translateY(-4px);
  border-color: var(--accent-red);
  box-shadow: var(--shadow-hover);
}
/* ホバーアクセント効果 */
.hover-accent {
  position: relative;
  display: inline-block;
  transition: color 0.3s ease, font-weight 0.3s ease;
}
.ol-intro:hover .hover-accent,
.ol-features li:hover .hover-accent,
.ol-closing:hover .hover-accent {
  color: var(--accent-red);
  font-weight: 700;
}
.hover-accent::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-red);
  transition: width 0.35s ease;
}
.ol-intro:hover .hover-accent::after,
.ol-features li:hover .hover-accent::after,
.ol-closing:hover .hover-accent::after {
  width: 100%;
}

/* =============================================
   フローチャート
   ============================================= */
.flow-container {
  width: 100%;
  max-width: 600px;
  margin: 30px auto 100px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step {
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 25px;
  transition: all 0.3s ease;
  position: relative;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent-red);
}
.icon-box {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background: #f9fafb;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 2px solid var(--border-light-gray);
  transition: all 0.3s ease;
}
.step:hover .icon-box {
  background: #ffffff;
  border-color: var(--accent-red);
  transform: scale(1.05);
}
.icon-box img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
}
.step-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: 0.01em;
}
.step-desc {
  font-size: 1.45rem;
  color: #6b7280;
  line-height: 1.6;
}
.arrow {
  margin: -5px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
}
.arrow img {
  width: 32px;
  height: auto;
  display: block;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.arrow:hover img {
  opacity: 1;
}

/* =============================================
   問い合わせアイコン
   ============================================= */
.contact {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
  border-radius: 4px;
  margin-bottom: 0;
  width: 150px;
  transition: all 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  opacity: 1;
  visibility: visible;
  animation: slideInFromBottom 0.5s ease-out;
}
.contact a {
  background: url(../img/contact.png) no-repeat #fff3b8;
  background-position: center 10px;
  background-size: 80px auto;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 10px 15px 10px;
}
.contact a:hover {
  text-decoration: none;
  opacity: 0.7;
  filter: alpha(opacity=70);
}
.contact a p {
  padding: 0;
  margin: 0;
  text-align: center;
  font-size: 0;
  width: 100%;
}
.contact a p span {
  display: block;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.3;
}
.contact a p br {
  display: none;
}
/* スクロール中は非表示(PC) */
.contact.scrolling {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}
/* ホバー時(PC) */
.contact:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  background: #ffffff;
  transform: translateY(-3px);
}

/* =============================================
   レイアウト調整用改行
   ============================================= */
.sp-only {
  display: none;
}

/* =============================================
   レスポンシブ対応
   ============================================= */
/* タブレット (768px〜1229px) */
@media screen and (min-width: 768px) and (max-width: 1229px) {
  .contact {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 150px;
  }
  .contact a {
    background-position: center 10px;
    background-size: 80px auto;
    padding: 100px 10px 15px 10px;
  }
}

/* PC (1230px以上) */
@media screen and (min-width: 1230px) {
  .contact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 350px;
  }
  .contact a {
    background-position: 0 40%;
    background-size: auto;
    padding: 10px 0;
    display: block;
  }
  .contact a p {
    padding: 0 20px 0 110px;
    margin: 10px 0;
    text-align: left;
    font-size: inherit;
  }
  .contact a p span {
    display: inline;
    font-size: 16px;
    font-weight: bold;
  }
  .contact a p br {
    display: inline;
  }
}

/* タブレット・スマホ (768px以下) */
@media (max-width: 768px) {
  /* 共通セクション */
  .section-block {
    padding: 40px 10px;
  }
  .section-block section {
    padding: 35px 25px;
  }
  /* 概要セクション */
  #outline {
    padding: 35px 25px;
  }
  #outline h3,
  .container h3 {
    font-size: 18px;
  }
  #outline .ol-intro {
    font-size: 1.4rem;
    padding: 25px;
    margin-bottom: 30px;
  }
  #outline .ol-intro::before {
    font-size: 3rem;
  }
  #outline .ol-features li {
    padding: 10px 10px 10px 30px;
    font-size: 0.95rem;
  }
  #outline .ol-features li::before {
    left: 12px;
    top: 10px;
  }
  #outline .ol-closing {
    font-size: 1rem;
    padding: 20px 25px;
  }
  #outline .profile-block {
    flex-direction: column;
  }
  /* フローチャート */
  .flow-container {
    max-width: 100%;
    padding: 0 15px;
    margin: 40px auto;
  }
  .step {
    max-width: 100%;
    padding: 20px;
    gap: 20px;
  }
  .icon-box {
    width: 60px;
    height: 60px;
  }
  .step::before {
    width: 4px;
  }
  .step-text {
    gap: 6px;
  }
  .step-title {
    font-size: 1rem;
  }
  .step-desc {
    font-size: 0.875rem;
  }
  .arrow {
    margin: -8px 0;
  }
  .arrow img {
    width: 28px;
  }
  /* ユーティリティ */
  .sp-only {
    display: block;
  }
  body {
    padding-bottom: 120px;
  }
}

/* スマホ (767px以下) */
@media screen and (max-width: 767px) {
  .contact {
    display: block;
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 150px;
  }
  .contact a {
    background-position: center 10px;
    background-size: 80px auto;
    padding: 100px 10px 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .contact a p {
    padding: 0;
    margin: 0;
    text-align: center;
    font-size: 0;
    width: 100%;
  }
  .contact a p span {
    display: block;
    font-size: 13px;
    line-height: 1.3;
  }
  .contact a p br {
    display: none;
  }
  .contact a p .pc-only {
    display: none;
  }
}
