/* =========================================
   パートナー募集ページ（partner.css）
   高級カード風＋全体統一デザイン＋動き＋フォーム対応＋スクロールアニメ
========================================= */

/* --------------------------------------
   ページ全体
-------------------------------------- */

#l-partner .wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}
body {
  background-color: #ffffff;

  /* 縦長の交互タイル画像 */
  background-image: url('http://ripple-e.co.jp/cms/wp-content/uploads/2025/12/haikei-4-scaled.png');

  /* 横幅いっぱい、縦方向は自動 */
  background-size: 100% auto;

  /* 縦方向に繰り返す */
  background-repeat: repeat-y;

  /* 上端を基準に中央配置 */
  background-position: center top;
}

/* スマホ用調整 */
@media screen and (max-width: 768px) {
  body {
    /* 横幅を少し拡大して左右水玉を見切らせる */
    background-size: 120% auto;
    background-position: center top;

    /* 縦方向も繰り返す */
    background-repeat: repeat-y;
  }
}



/* --------------------------------------
   MVセクション
-------------------------------------- */
#l-partner .page-mv {
    background: url(../img/recruit/recruit_mv.jpg) center/cover no-repeat;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

#l-partner .page-mv::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.28);
}

#l-partner .page-mv h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    animation: mvFade 1.2s ease-out forwards;
}

@keyframes mvFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------
   セクション
-------------------------------------- */
#l-partner .section {
    background: #fff;
    padding: 40px 50px;
    margin-bottom: 60px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: left;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease-out;
}

#l-partner .section.show {
    opacity: 1;
    transform: translateY(0);
}

/* 見出し */
#l-partner .section h1 {
    font-size: 32px;
    color: #18b5b1;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

#l-partner .section h1::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #18b5b1;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

#l-partner .section h2 {
    font-size: 26px;
    color: #18b5b1;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 20px;
}

#l-partner .section h3 {
    font-size: 20px;
    color: #18b5b1;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* 中央寄せ・カード排除用 */
#l-partner .section.section-center-title.section-no-card {
    background: none;      /* 背景なし */
    box-shadow: none;      /* 影なし */
    padding: 0;            /* 余白を調整 */
    text-align: center;    /* 中央寄せ */
}

#l-partner .section.section-center-title.section-no-card h1,
#l-partner .section.section-center-title.section-no-card p {
    margin: 0 auto 20px auto; /* 上下マージン調整 */
}

/* 本文 */
#l-partner .section p {
    font-size: 16px;
    line-height: 2.0;
    color: #555;
    margin-bottom: 20px;
}

/* ul/li */
#l-partner .section ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 25px 0;
    line-height: 2.0;
    text-align: left;
}

#l-partner .section ul li {
    display: block;
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

#l-partner .section ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #18b5b1;
    font-weight: bold;
}

/* 区切り線 */
#l-partner hr {
    border: none;
    border-top: 2px solid #18b5b1;
    margin: 60px 0;
}

/* --------------------------------------
   content-box（フォーム枠）
-------------------------------------- */
#l-partner .content-box {
    background: #fff;
    padding: 45px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(24,181,177,0.12);
    margin-bottom: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(30px);
}

#l-partner .content-box.show {
    opacity: 1;
    transform: translateY(0);
}

#l-partner .content-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* フォーム説明文 */
#l-partner .input-show {
    font-size: 16px;
    line-height: 2.0;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

/* tr を flex にして横並び */
#l-partner .contact-table tr {
    display: flex;
    align-items: center; /* 高さを中央揃え */
}

/* th（ラベル部分）を固定幅に */
#l-partner .contact-table th {
    width: 30%;         /* 必要に応じて調整 */
    display: flex;
    align-items: center; /* 必須マークも中央 */
    justify-content: flex-start;
    gap: 6px;           /* ラベルと必須マークの間隔 */
    position: relative;  /* 必須マーク用 */
}

/* 必須マーク */
#l-partner .contact-table th .alert {
    background: #e63946;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1;
}

/* td（入力欄部分）を右側に伸ばす */
#l-partner .contact-table td {
    flex: 1;
    padding: 8px 12px;
}

/* --------------------------------------
   MW WP Form スタイル
-------------------------------------- */
#l-partner .mw_wp_form textarea,
#l-partner .mw_wp_form input[type="text"],
#l-partner .mw_wp_form input[type="email"],
#l-partner .mw_wp_form input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fafafa;
    box-sizing: border-box;
    font-size: 15px;
    transition: 0.3s;
    margin-bottom: 16px;
}

#l-partner .mw_wp_form textarea:focus,
#l-partner .mw_wp_form input:focus {
    border-color: #18b5b1;
    box-shadow: 0 0 8px rgba(24,181,177,0.35);
    outline: none;
}

/* ラジオボタン */
#l-partner .mwform-radio-field label {
    margin-right: 20px;
    font-size: 15px;
    cursor: pointer;
}

/* btn-top の文章を中央寄せ */
#l-partner .btn-top {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* 送信ボタン */
#l-partner .submit_btn {
    text-align: center;
    margin-top: 25px;
}

#l-partner .submit_btn .btn {
    background: linear-gradient(145deg, #18b5b1, #14a0a0);
    color: #fff;
    padding: 14px 60px;
    font-size: 16px;
    border-radius: 10px;
    display: inline-block;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

#l-partner .submit_btn .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(24,181,177,0.4);
}

/* 電話番号案内 */
#l-partner .contact-tel {
    margin-top: 35px;
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
}

/* --------------------------------------
   レスポンシブ
-------------------------------------- */
@media screen and (max-width: 1024px) {
    #l-partner .wrapper {
        max-width: 90%;
    }

    #l-partner .content-box {
        padding: 35px 25px;
    }
}

@media screen and (max-width: 768px) {
    #l-partner .content-box {
        padding: 28px 18px;
    }

    #l-partner .contact-table th,
    #l-partner .contact-table td,
    #l-partner .contact-table table,
    #l-partner .contact-table tbody,
    #l-partner .contact-table tr {
        display: block;
        width: 100%;
        border-right: none;
        border-bottom: none;
    }

    #l-partner .submit_btn .btn {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    #l-partner .page-mv {
        height: 180px;
    }
    #l-partner .page-mv img {
        width: 200px;
    }
}

/* --------------------------------------
   レスポンシブ：フォーム横並びを縦並びに
-------------------------------------- */
@media screen and (max-width: 768px) {
    /* trを縦方向に積む */
    #l-partner .contact-table tr {
        display: block;
        margin-bottom: 20px;
    }

    /* thとtdをブロック化 */
    #l-partner .contact-table th,
    #l-partner .contact-table td {
        display: block;
        width: 100%;
        text-align: left; /* ラベルは左寄せ */
        padding: 6px 0;
    }

    /* 必須マークもラベル内の右端に配置 */
    #l-partner .contact-table th .alert {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        margin-left: 6px;
    }
}

/* --------------------------------------
   中央寄せ＋文字サイズ自動調整（h1 と p）
-------------------------------------- */
#l-partner .section.section-center-title.section-no-card h1,
#l-partner .section.section-center-title.section-no-card p {
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: clamp(18px, 2.5vw, 32px);
    line-height: 1.5;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* スマホ用の文字サイズ・余白調整 */
@media screen and (max-width: 480px) {
    #l-partner .section.section-center-title.section-no-card h1,
    #l-partner .section.section-center-title.section-no-card p {
        font-size: 16px;
        max-width: 95%;
    }
}

/* 折り返さない部分 */
.nowrap {
  white-space: nowrap;       /* この部分は折り返さない */
  display: inline-block;     /* 安定した表示用 */
}

/* section-center-title の p に合わせる */
#l-partner .section.section-center-title.section-no-card p {
  text-align: center;                 /* 中央寄せ */
  font-size: clamp(18px, 2.5vw, 32px); /* 画面幅に応じて文字サイズ調整 */
  line-height: 1.5;
  max-width: 100%;                     /* 横幅制限 */
  margin-left: auto;
  margin-right: auto;
}

/* スマホ用 */
@media screen and (max-width: 480px) {
  #l-partner .section.section-center-title.section-no-card p {
    font-size: 16px;   /* 最小文字サイズ */
    max-width: 95%;    /* 少し余白を増やす */
  }
}

/* --------------------------------------
   MVセクションタイトル中央寄せ＋文字サイズ自動調整
-------------------------------------- */
#l-partner .page-mv h2 {
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.4;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    z-index: 2;
}

/* スマホ用の文字サイズ調整 */
@media screen and (max-width: 480px) {
    #l-partner .page-mv h2 {
        font-size: 18px;
        max-width: 95%;
    }
}

/* section-center-title の中央寄せ＆幅制限解除 */
#l-partner .section-center-title,
#l-partner .section-center-title * {
    max-width: none;
    width: 100%;
    box-shadow: none;
    text-align: center;
}

/* フォントサイズ自動調整 */
#l-partner .section-center-title h1,
#l-partner .section-center-title p,
#l-partner .page-mv h2 {
    white-space: nowrap;
    font-size: clamp(16px, 4vw, 32px);
}
@media screen and (max-width: 480px) {
  #l-partner .section-center-title p .nowrap {
    white-space: normal; /* 折り返しを許可 */
    display: inline;     /* 元に戻す */
  }
}

#l-partner .section-center-title p.auto-break {
  display: block;              /* ブロック化して横幅いっぱいに対応 */
  max-width: 500px;            /* 好きな最大幅 */
  text-align: center;          /* 中央揃え */
  line-height: 1.5;
  font-size: clamp(16px, 2.5vw, 20px); /* 自動縮小 */
  white-space: normal;         /* 折り返しを有効に */
  margin-left: auto;
  margin-right: auto;          /* 中央寄せ */
}


/* --------------------------------------
   JS用クラス初期化
-------------------------------------- */
#l-partner .section,
#l-partner .content-box {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease-out;
}
