@charset "utf-8";

html{
    scroll-behavior: smooth;
    scroll-padding-top:88px;
}
#trial {
	font-family: "Noto Sans JP", sans-serif;
}
#trial .max-width--definer {
    /* max-width: 1054px; */
    max-width: 1170px;
    padding-inline: 15px;
}

.opt-badge {
    display: inline-block;
    padding: 3px 11px;
    margin-right: 9px;
    font-size: 12px;
    font-weight: bold;
    color: var(--cp-color-sub);
    background: var(--cp-color-bright-200);
    border: 1px solid var(--cp-color-bright-100);
    border-radius: 4px;
    vertical-align: 2px;
    letter-spacing: .03em;
}
.section-py {
    padding-block: 34px;
}

@media only screen and (max-width: 1112px) {

    main {
        padding-top: 100px;
    }
}
@media only screen and (max-width: 960px) {
    html{
        scroll-padding-top:70px;
    }
    main {
        padding-top: 70px;
    }
}

/* ===== ページタイトル帯（サイト同様の色帯） ===== */
.main-head {
    padding: 36px 56px;
    text-align: center;
    background: var(--cp-color-dark-200);
}

.main-head-title {
    color: #fff;
    font-size: 34px;
    font-weight: bold;
    letter-spacing: .04em;
}

.main-head-text {
    color: var(--cp-color-bright-100);
    font-size: 18px;
    margin-top: 12px;
}

@media (max-width: 560px) {
    .main-head {
        padding: 28px 20px;
    }

    .main-head-title {
        font-size: 24px;
    }

    .main-head-text {
        font-size: 15px;
    }
}


/* ===== 前段：スリムな横1帯（知る→試す→学ぶ） ===== */
.trial-step {
    background: #fff;
    border: 1px solid var(--cp-color-bright-100);
    border-radius: 6px;
    padding: 20px 24px 22px;
}

.trial-step-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--cp-color-dark-200);
    margin-bottom: 18px;
}

.trial-step-text {
    display: block;
    font-size: 15px;
    color: var(--cp-grayscale-200);
    margin-top: 10px;
    line-height: 1.7;
    text-align: center;
}


.step-list {
    display: flex;
    align-items: stretch;
    gap: 6px;
    margin-top: 18px;
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
}

.step-item.is-primary {
    background: #fff6f1;
    border-color: var(--cp-color-accent-500);
}

.step-item-no {
    font-size: 13.5px;
    font-weight: bold;
    letter-spacing: .1em;
    color: var(--cp-color-sub);
}

.step-item.is-primary .step-item-no {
    color: var(--cp-color-accent-500);
}

.step-item-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.step-item-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--cp-grayscale-100);
    margin: 0;
}

.step-item.is-primary .step-item-title {
    color: var(--cp-color-accent-500);
}

.step-item-text {
    color: var(--cp-grayscale-200);
    line-height: 1.8;
    margin-bottom: 14px;
}

.step-item-linklist {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
}

.step-item-linklist a {
    font-size: 15px;
    color: var(--cp-color-sub);
    line-height: 1.5;
    text-decoration: none;
    transition: all 0.2s;
}

.step-item-linklist a:not(.anchor)::before {
    content: "▸ ";
    color: var(--cp-color-bright-100);
}

.step-item-linklist a.anchor {
    align-self: stretch;
    color: #fff;
    background: var(--cp-color-accent-500);
    text-align: center;
    border-radius: 999px;
    padding: 13px;
    font-weight: bold;
    font-size: 16px;
}

.step-item-linklist a.anchor::after {
    content: " ↓";
    color: #fff;
}

.step-item-linklist a:hover {
    opacity: 0.85;
}

.step-item-arrow {
    flex-shrink: 0;
    align-self: center;
    color: var(--cp-color-bright-100);
    font-size: 20px;
    font-weight: bold;
}

/* ===== レスポンシブ（SP / タブレット） ===== */
@media (max-width: 860px) {
    .step-list {
        flex-direction: column;
        gap: 10px;
    }

    .step-item-arrow {
        display: none;
    }

    .step-item {
        border: 1px solid var(--cp-color-bright-100);
        border-radius: 8px;
    }

    .step-item.is-primary {
        border-color: var(--cp-color-accent-500);
    }
}

@media (max-width: 560px) {
    .trial-step {
        padding: 16px 14px 18px;
    }

    .trial-step-title {
        font-size: 18px;
    }

    .step-item-title {
        font-size: 22px;
    }
}



/* ===== 2カラム ===== */
.form-col {
    display: flex;
    gap: 44px;
    align-items: flex-start;
    padding-bottom: 64px;
}

.contents {
    flex: 1;
    min-width: 0;
}

.content {
    /* margin-bottom: 36px; */
    margin-bottom: 48px;
}

.content:last-child {
    margin-bottom: 0;
}

/* レガシー系：見出しは下罫線＋左の色アンダーバー */
.content-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--cp-color-dark-200);
    line-height: 1.5;
    border-bottom: 2px solid var(--cp-color-bright-100);
    padding-bottom: 10px;
    margin-bottom: 24px;
    position: relative;
}

.content-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 84px;
    height: 2px;
    background: var(--cp-color-accent-500);
}

.content-text {
    color: var(--cp-grayscale-200);
    line-height: 1.8;
    margin: 12px 0 24px;
}

/* 試せること（円形フラットアイコン） */
.content-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.content-item {
    display: flex;
    padding: 22px 24px;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--cp-grayscale-400);
    border-radius: 6px;
}

.content-item-ico {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--cp-color-bright-200);
}

.content-item-ico svg {
    width: 28px;
    height: 28px;
    stroke: var(--cp-color-sub);
}

.content-item-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--cp-grayscale-100);
    margin-bottom: 6px;
}

.content-item-text {
    color: var(--cp-grayscale-200);
    line-height: 1.8;
}

.content-item-text .em {
    color: var(--cp-color-dark-200);
    font-weight: 700;
}

/* 開発できるアプリ例（フラット罫線カード） */
.demo-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.demo-item {
    background: #fff;
    border: 1px solid var(--cp-grayscale-400);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s;
}

.demo-item:hover {
    opacity: 0.85;
    text-decoration: none;
}

.demo-item-img {
    margin-bottom: 0;
}

.demo-item-img img{
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

.demo-item-title {
    padding: 14px 16px 14px;
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: var(--cp-grayscale-100);
}

/* ===== フォーム（フラット） ===== */
.formside {
    /* width: 400px; */
    width: 520px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===== レスポンシブ（SP / タブレット） ===== */
@media (max-width: 860px) {
    .form-col {
        flex-direction: column;
        gap: 32px;
    }

    .formside {
        width: 100%;
        position: static;
        top: auto;
        margin-top: 64px;
    }
}

@media (max-width: 560px) {
    .content-title {
        font-size: 22px;
    }

    .content-text {
        font-size: 15px;
    }

    .content-item {
        padding: 18px 16px;
        gap: 14px;
    }

    .content-item-ico {
        width: 48px;
        height: 48px;
    }

    .content-item-ico svg {
        width: 24px;
        height: 24px;
    }

    .content-item-title {
        font-size: 18px;
    }

    .content-item-text {
        font-size: 15px;
    }

    .demo-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .demo-item {
        padding: 11px 12px 13px;
    }

    .demo-item-title {
        font-size: 14px;
    }

}


/* モーダル追加 */
.js-modal-open {
    cursor: pointer;
}
#imgModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

/* 背景 */
#imgModal .overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
}
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 960px;
  width: 90%;
  z-index: 10001;
}

/* タイトル */
.modal-title {
    color: var(--cp-grayscale-200);
    padding-left: 0.5rem;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: left;
}

/* 画像 */
.modal-img {
  width: 100%;
  height: auto;
  display: block;
}

.close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 28px;
  color: #fff;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
}
