/*=====================================================================

  手書きDM代行サービス ページ 改訂に伴う追加CSS
  dm-handwriting.css の末尾にそのまま追記してください。

  ・既存ルールの書き換えは 2件のみ（[9] 参照）。それ以外は全て追加です。
  ・.color-emerald はテーマ側に定義がある想定のため [0] はコメントアウト。
    未定義だった場合のみ有効化してください。

=====================================================================*/


/*---------------------------------------------------------------------
  [0] .color-emerald（未定義の場合のみ有効化）
---------------------------------------------------------------------*/

.color-emerald {
    color: #1bab87;
}

.resm-container {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
}


/*---------------------------------------------------------------------
  [1] 共通パーツ　注記文／中央寄せリード文
---------------------------------------------------------------------*/
.dm-note {
    max-width: 900px;
    margin: 20px auto;
    font-size: 85%;
    line-height: 1.7em;
    color: #666;
    width: 100%;
    /* padding: 0 3%; */
    /* text-align: left !important; */
}

.lead-center {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

#Page-handwriting #posting_work .page-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

#Page-handwriting #posting_work .page-menu a {
    width: 100%;
}

#Page-handwriting h2.title {
    font-size: clamp(22px, 2.8vw, 40px);
    line-height: 1.4em;
}



@media screen and (max-width: 1023px) {
    #Page-handwriting #posting_work .page-menu {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media screen and (max-width: 768px) {
    #Page-handwriting #posting_work .page-menu {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/*---------------------------------------------------------------------
  [2] エリア選定 5大データ指標　#dm-data
---------------------------------------------------------------------*/
.dataSection {
    background: #f8f8f8;
}

.dataList {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
}

.dataList li {
    display: flex;
    align-items: flex-start;
    column-gap: 20px;
    background: #fff;
    border-left: 4px solid #1bab87;
    padding: 22px 24px;
    margin-bottom: 12px;
}

.dataList-num {
    font-family: 'Roboto', arial, sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: #1bab87;
    line-height: 1.2;
    flex-shrink: 0;
    min-width: 2.2em;
    padding-left: 0.5em;
}

.dataList h4 {
    margin: 0 0 6px;
    font-size: 118%;
    font-weight: 700;
}

.dataList p {
    margin: 0;
    font-size: 100%;
}

.dataBox {
    max-width: 900px;
    margin: 40px auto 0;
    background: rgba(27, 171, 135, 0.08);
    border: 2px dotted #1bab87;
    padding: 28px;
}

.dataBox h4 {
    margin: 0 0 10px;
    color: #1bab87;
    font-weight: 700;
}

.dataBox p {
    margin: 0 0 8px;
}

@media screen and (max-width: 767.98px) {
    .dataList li {
        flex-direction: column;
        row-gap: 6px;
        padding: 18px 18px 18px 18px !important;
    }

    .dataBox {
        padding: 18px;
    }

    .dataList-num {
        padding-left: 0;
    }
}


/*---------------------------------------------------------------------
  [3] 業種別アプローチ設計（カード型・画像追加対応）
---------------------------------------------------------------------*/
.industryList {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.industryCard {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #1bab87;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.industryVisual {
    width: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, rgba(27, 171, 135, 0.12), rgba(27, 171, 135, 0.04));
    border-bottom: 1px solid #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1bab87;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    padding: 16px;
}

.industryCardBody {
    padding: 24px 24px 20px;
}

.industryCard h4 {
    margin: 0 0 10px;
    color: #1bab87;
    font-weight: 700;
}

.industryCard p {
    margin: 0;
    line-height: 1.8em;
}

.industryCard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media screen and (min-width: 768px) {
    .industryList {
        grid-template-columns: repeat(2, 1fr);
    }
}


/*---------------------------------------------------------------------
  [4] ヒーロー文言・発送対応エリア・3STEPフロー
---------------------------------------------------------------------*/
#Page-handwriting .main-bar {
    /* background: url(../image/banner_blue.png) no-repeat center; */
    background: url(../image/handwrting-mainbar-bg.png) no-repeat center;
    background-size: cover;
    display: flex;
    align-items: center;
    margin: 0;
    justify-content: center;
}

.hero-subcatch-span {
    background: #fff;
    color: #1bab87;
    font-weight: 700;
    padding: 4px 8px;
    display: inline-block;
        margin: 5px 0 0 0;
}

#Page-handwriting .hero-title {
    font-size: clamp(18px, 3vw, 40px) !important;
    line-height: 1.4;
    margin-bottom: 16px;
    letter-spacing: 0;
    background: #1bab87;
    display: inline-block;
    color: #fff !important;
    padding: 10px 15px;
}

.hero-title .text-sab {
    display: inline-block;
    margin-top: 8px;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 600;
}

#Page-handwriting .main-bar {
    margin-top: 40px;
}

#Page-handwriting .hero-subcatch {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.8;
    margin-bottom: 16px;
    color: #333;
    border: none;
    background: none;
    letter-spacing: 0;
    padding: 0;
    font-weight: bold;
    text-align: left;
    margin: 0 16px 0 0;
    width: 100%;
}

#Page-handwriting .hero-service-name {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    font-weight: 700;
    color: #1bab87;
    line-height: 1.7;
    margin-bottom: 0;
    background: transparent;
    border: none;
    letter-spacing: 0;
    text-align: left;
    padding: 0;
    margin: 0;
    width: 100%;
}

.areaSection {
    background: #f8f8f8;
}

.areaBody {
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 28px;
}

.areaLayout {
    display: grid;
    gap: 24px;
    align-items: flex-start;
    grid-template-columns: 1fr 350px;
}

.areaVisual {
    flex: 0 0 260px;
    /* max-width: 260px; */
}

.areaVisual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.areaContent {
    flex: 1;
}

.areaBody p {
    margin-bottom: 14px;
    line-height: 1.8em;
}

.areaList {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.areaList li {
    background: #fff;
    border: 1px solid rgba(27, 171, 135, 0.25);
    padding: 12px 16px !important;
    text-align: center;
    font-weight: 600;
    color: #1bab87;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(27, 171, 135, 0.08);
}

.areaList li:hover {
    background: rgba(27, 171, 135, 0.06);
    transform: translateY(-1px);
}

.flow-steps {
    display: grid;
    gap: 16px;
    max-width: 980px;
    margin: 0 auto;
}

.flow-step {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-left: 4px solid #1bab87;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.flow-step-number {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1bab87;
    letter-spacing: 0.08em;
}

.flow-step h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

.flow-step p {
    margin: 0;
    line-height: 1.8em;
}

@media screen and (max-width: 767.98px) {
    .areaBody {
        padding: 20px;
    }

    .areaLayout {
        /* flex-direction: column; */
        grid-template-columns: 1fr;
    }

    .areaVisual {
        flex-basis: auto;
        max-width: 100%;
        width: 100%;
    }

    .areaList {
        flex-direction: column;
    }

    .areaList li {
        width: 100%;
    }

    #Page-handwriting .main-bar {
        height: 40vh !important;
    }
}

.robotSection {
    /* background: #f8f8f8; */
    background-color: rgba(27, 171, 135, 0.08);
}

.robot-sub {
    margin-top: 28px;
    margin-bottom: 12px;
    padding: 8px 14px;
    background: #1bab87;
    color: #fff;
    font-weight: 700;
    display: inline-block;
}

.robotList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.robotList li {
    padding: 14px 0 14px 1.4em;
    border-bottom: 1px dashed #ccc;
    position: relative;
    line-height: 1.8em;
}

.robotList li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1bab87;
    font-weight: 700;
}

.robotList li:last-child {
    border-bottom: none;
}

.robotList strong {
    color: #1bab87;
    margin-left: 1em;
}


/*---------------------------------------------------------------------
  [5] 封書で届ける6つのメリット（アイコンバッジ型・3列グリッド）
      アイコンは PHP 側のインラインSVG。stroke="currentColor" のため
      .benefit-icon の color を変えれば6つ同時に色が変わります。
---------------------------------------------------------------------*/
.benefitGrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 1080px;
    margin: 0 auto;
    width: 96%;
}

.benefitGrid .benefit {
    background: rgba(27, 171, 135, 0.09);
    border-radius: 16px;
    padding: 34px 24px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background .25s ease, transform .25s ease;
}

.benefit-icon {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #fff;
    color: #1bab87;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(27, 171, 135, .16);
}

.benefit-icon svg {
    width: 48px;
    height: 48px;
    display: block;
}

.benefitGrid .benefit h4 {
    margin: 0 0 14px;
    font-size: 116%;
    font-weight: 700;
    text-align: center;
    line-height: 1.5em;
}

.benefitGrid .benefit h4::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    background: #1bab87;
    margin: 12px auto 0;
}

.benefitGrid .benefit p {
    margin: 0;
    font-size: 95%;
    line-height: 1.85em;
    text-align: left;
    width: 100%;
}

@media screen and (min-width: 576px) {
    .benefitGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (min-width: 992px) {
    .benefitGrid {
        grid-template-columns: repeat(3, 1fr);
        gap: 26px;
        width: 100%;
    }

    .benefitGrid .benefit:hover {
        background: rgba(27, 171, 135, 0.15);
        transform: translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .benefitGrid .benefit,
    .benefitGrid .benefit:hover {
        transition: none;
        transform: none;
    }
}

@media screen and (max-width: 575.98px) {
    .benefit-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 14px;
    }

    .benefit-icon svg {
        width: 40px;
        height: 40px;
    }

    .benefitGrid .benefit {
        padding: 28px 20px 26px;
    }
}


/*---------------------------------------------------------------------
  [6] 料金プラン　1プラン構成のときの幅・価格表示
      ※2プラン構成に戻す場合は PHP 側の .planBox--single を外すだけで
        既存の2カラムレイアウトに戻ります。
---------------------------------------------------------------------*/
@media screen and (min-width: 768px) {
    .planBox--single .inner {
        width: 100%;
    }
}

.price-main {
    font-size: 175% !important;
    font-weight: 700;
    color: #1bab87;
    line-height: 1.4em;
}

.price-sub {
    font-size: 52%;
    color: #333;
    font-weight: 400;
    display: inline-block;
    margin-left: 8px;
}


/*---------------------------------------------------------------------
  [7] 締めブロック（積立型マーケティング）
---------------------------------------------------------------------*/
.closingSection {
    background: rgba(27, 171, 135, 0.08);
    position: relative;
    overflow: hidden;
}

.closingSection::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../image/handwriting-closingSection-bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.18;
    z-index: 0;
}

.closing-balloon {
    /* max-width: 900px; */
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.closing-balloon .balloon {
    padding: 36px 32px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
}

.closing-balloon h3 {
    font-size: 145%;
    font-weight: 700;
    margin-bottom: 18px;
    color: #1bab87;
    font-size: clamp(22px, 3vw,30px) !important;
    line-height: 1.4em;
}

@media screen and (max-width: 767.98px) {
    .closing-balloon .balloon {
        padding: 22px 18px;
    }

    .closing-balloon h3 {
        font-size: 120%;
    }
}


/*---------------------------------------------------------------------
  [8] 既存ルールの上書き（2件）

  これまで .solutionFrame と .dm-sample は上下に連続していたため、
  境目の余白を 0 にして1つの帯として見せていました。
  改訂後は両者の間に4セクションが入るので、余白を戻します。
---------------------------------------------------------------------*/
.solutionFrame {
    padding-bottom: 50px;
}

.dm-sample {
    padding-top: 70px;
}

.pointBox .inner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pointBox .inner-text mark {
    background-color: rgba(27, 171, 135,0.3);
}

.planBox .inner p span.color-emerald {
    display: inline;
    padding: 0;
    font-size: 100%;
    color: #1bab87;
    background-color: transparent;
    font-weight: bold;
}


.solutionBox .inner-img img {
    aspect-ratio: 4 / 3;
}

@media screen and (min-width: 992px) {
    .onayamiBox .inner-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}