
.diagonal-bg {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #fff;
    isolation: isolate;
  }

  .bg {
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -50%;
    right: -50%;
    z-index: -1;

    opacity: 0.65;
    background-image: linear-gradient(
      -60deg,
      #f7d6fb 0%,
      #f7c7b2 35%,
      #f8ecd9 45%,
      #f8ecd9 72%,
      #fffaf2 82%,
      #fffaf2 100%
    );

    animation: diagonal-slide 8s ease-in-out infinite alternate;
  }

/*
    --ivory: #fffaf2;
    --paper: #f8ecd9;
    --peach: #f7c7b2;
*/

  .bg2 {
    animation-duration: 4s;
    animation-direction: alternate-reverse;
  }

  .bg3 {
    animation-duration: 5s;
  }

  .page-content {
    position: relative;
    z-index: 1;
    padding: 80px 24px;
  }

  @keyframes diagonal-slide {
    0% {
      transform: translateX(-25%);
    }

    100% {
      transform: translateX(25%);
    }
  }:root {
    --cream: #fff7ec;
    --ivory: #fffaf2;
    --paper: #f8ecd9;
    --peach: #f7c7b2;
    --peach-strong: #e06f57;
    --orange: #f2a13a;
    --navy: #17375f;
    --ink: #243047;
    --muted: #6e6470;
    --line: rgba(126, 87, 55, 0.16);
    --shadow: 0 22px 50px rgba(132, 86, 47, 0.14);
    --radius-lg: 28px;
    --radius-md: 18px;
    --max: 1160px;
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff8ee 0%, #fff3e8 48%, #fff8ef 100%);
    font-family:
        "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui,
        sans-serif;
    line-height: 1.75;
}
img {
    max-width: 90vw;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 14px clamp(18px, 4vw, 54px);
    background: rgba(255, 250, 242, 0.78);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(23, 55, 95, 0.24);
    border-radius: 50%;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.55);
    overflow: hidden;
}
.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.brand-text strong {
    display: block;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    color: var(--navy);
}
.brand-text small {
    display: block;
    font-size: 0.63rem;
    letter-spacing: 0.22em;
    color: var(--muted);
    margin-top: -2px;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--navy);
}
.site-nav a:not(.nav-cta) {
    opacity: 0.86;
}
.site-nav a:hover {
    opacity: 1;
}
.nav-cta {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--navy);
    color: white;
    box-shadow: 0 12px 24px rgba(23, 55, 95, 0.18);
}
.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    width: 44px;
    height: 44px;
    padding: 10px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
    margin: 6px 0;
    border-radius: 999px;
}

.hero {
    min-height: 760px;
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(
            90deg,
            rgba(255, 250, 242, 0.96) 0%,
            rgba(255, 250, 242, 0.88) 38%,
            rgba(255, 250, 242, 0.46) 64%,
            rgba(255, 250, 242, 0.14) 100%
        ),
        url("../assets/lp/hero-bg.png");
    background-size: cover;
    background-position: center;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -24% -8%;
    height: 190px;
    background: radial-gradient(
        closest-side,
        rgba(255, 255, 255, 0.86),
        rgba(255, 255, 255, 0)
    );
    pointer-events: none;
}
.hero-inner {
    max-width: var(--max);
    margin: 0 auto;
    min-height: 760px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
    align-items: center;
    gap: 20px;
    /*padding: 86px 22px 48px;*/
}
.eyebrow,
.section-kicker {
    margin: 0 0 10px;
    color: var(--peach-strong);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.hero h1 {
    margin: 0;
    color: var(--navy);
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: clamp(4rem, 9vw, 7.3rem);
    line-height: 0.98;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.75);
}
.hero h1 span {
    color: #c95e35;
}
.hero-lead {
    margin: 26px 0 0;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.75;
    letter-spacing: 0.08em;
    color: #2e2d35;
    font-weight: 700;
}
.hero-sub {
    max-width: 540px;
    margin: 20px 0 0;
    font-weight: 700;
    color: #3e3740;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.04em;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn-primary {
    min-height: 64px;
    padding: 0 30px;
    color: white;
    background: linear-gradient(135deg, #ef8a6a, #d94d46);
    box-shadow:
        0 18px 34px rgba(211, 83, 70, 0.28),
        inset 0 1px rgba(255, 255, 255, 0.45);
}
.btn-secondary {
    min-height: 64px;
    padding: 0 26px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(23, 55, 95, 0.14);
}

.hero-visual {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.hero-character {
    /*
    width: min(450px, 96%);
    max-height: 650px;
    */
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 24px 28px rgba(111, 70, 38, 0.16));
    z-index: 2;
}
.hero-card {
    position: absolute;
    z-index: 3;
    background: rgba(255, 250, 242, 0.82);
    border: 1px solid rgba(216, 132, 90, 0.22);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}
.message-card {
    right: -145px;
    top: 130px;
    width: 210px;
    padding: 22px;
    border-radius: 48% 52% 48% 52% / 42% 46% 54% 58%;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    color: #5d4637;
    text-align: center;
    font-weight: 700;
}
.message-card p {
    margin: 0 0 8px;
}
.message-card p:last-child {
    margin: 0;
}
.profile-card {
    right: 10px;
    bottom: 78px;
    width: 245px;
    padding: 18px 20px;
    border-radius: 20px;
    display: none;
}
.profile-card strong {
    display: block;
    color: #af5d38;
}
.profile-card span {
    display: block;
    font-weight: 800;
    color: var(--ink);
    margin-top: 4px;
}
.profile-card small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.55;
}

.section {
    padding: 38px 20px;
}
.container {
    max-width: var(--max);
    margin: 0 auto;
}
.section-heading {
    text-align: center;
    margin-bottom: 26px;
}
.section-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    letter-spacing: 0.08em;
}
.worry-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(216, 132, 90, 0.13);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: rgb(253, 249, 240);
}
.worry-card {
    padding: 26px 14px;
    text-align: center;
    border-right: 1px solid var(--line);
}
.worry-card:last-child {
    border-right: 0;
}
.worry-card .icon {
    /*
    width: 110px;
    height: 110px;
    */
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    /*
    border-radius: 50%;
    background: #fff0dd;
    */
    font-size: 2rem;
}
.worry-card p {
    margin: 0;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.65;
}

.feature-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(216, 132, 90, 0.13);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 22px;
}
.feature-item {
    padding: 14px;
}
.feature-icon {
    font-size: 2rem;
}
.feature-item h3 {
    margin: 8px 0 2px;
    color: var(--ink);
    font-size: 16px;
}
.feature-item p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    font-size: 11px;
}
.flow-arrow {
    align-self: center;
    color: #c78460;
    font-size: 2.6rem;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.character-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(216, 132, 90, 0.18);
    border-radius: 22px;
    box-shadow: var(--shadow);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
.character-card:hover,
.character-card.is-selected {
    transform: translateY(-4px);
    border-color: rgba(224, 111, 87, 0.45);
    box-shadow: 0 24px 60px rgba(132, 86, 47, 0.18);
}
.character-image-wrap {
    height: 275px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}
.character-image-wrap img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    object-position: top center;
    transform: scale(1.4);
    transform-origin: top;
}
.character-image-wrap.pink {
    background: linear-gradient(180deg, #ffe6e9, #fff8f0);
}
.character-image-wrap.orange {
    background: linear-gradient(180deg, #ffe8b6, #fff8f0);
}
.character-image-wrap.blue {
    background: linear-gradient(180deg, #e3edf9, #fff8f0);
}
.character-image-wrap.green {
    background: linear-gradient(180deg, #e7f0df, #fff8f0);
}
.character-body {
    padding: 18px 18px 20px;
    text-align: center;
}
.character-body h3 {
    margin: 0 0 6px;
    color: var(--navy);
    font-size: 1.25rem;
}
.type-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(224, 111, 87, 0.22);
    color: #9f553d;
    font-weight: 800;
    font-size: 0.88rem;
}
.character-body p {
    min-height: 72px;
    margin: 12px 0 16px;
    color: var(--muted);
    font-size: 0.93rem;
    font-weight: 700;
}
.character-btn {
    width: 100%;
    min-height: 44px;
    color: white;
    background: linear-gradient(135deg, #f19b76, #d95758);
}

.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.step {
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(216, 132, 90, 0.13);
    border-radius: 22px;
    padding: 24px 16px;
    box-shadow: var(--shadow);
}
.step span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #fff0dd;
    color: var(--peach-strong);
    font-weight: 900;
    font-size: 1.35rem;
}
.step h3 {
    margin: 0 0 8px;
    color: var(--navy);
}
.step p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.92rem;
}

.trial-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
    border-radius: var(--radius-lg);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.86),
        rgba(255, 235, 216, 0.86)
    );
    border: 1px solid rgba(216, 132, 90, 0.18);
    box-shadow: var(--shadow);
}
.trial-panel h2 {
    margin: 0 0 8px;
    color: var(--navy);
}
.trial-panel p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}
.site-footer {
    padding: 28px 20px 34px;
    text-align: center;
    color: rgba(255, 255, 255, 0.86);
    background: #183554;
}
.site-footer p {
    margin: 0 0 4px;
}
.footer-legal {
    margin-top: 18px;
    font-size: 0.82rem;
    line-height: 2;
}
.footer-legal a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer-legal a:hover {
    color: #fff;
}
.footer-legal span {
    margin: 0 8px;
    opacity: 0.5;
}
.site-footer small {
    display: block;
    margin-top: 18px;
    opacity: 0.75;
}
@media (max-width: 480px) {
    /* スマホでは区切りの中黒を隠し、各リンクを改行して押しやすくする */
    .footer-legal span {
        display: none;
    }
    .footer-legal a {
        display: block;
        padding: 6px 0;
    }
}

@media (max-width: 1020px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 54px;
    }
    .hero-visual {
        min-height: 520px;
    }
    .message-card {
        right: 8%;
        top: 30px;
    }
    .profile-card {
        right: 12%;
        bottom: 38px;
    }
    .worry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .worry-card:nth-child(3n) {
        border-right: 0;
    }
    .worry-card:nth-child(n + 4) {
        border-top: 1px solid var(--line);
    }
    .feature-flow {
        grid-template-columns: 1fr;
    }
    .flow-arrow {
        transform: rotate(90deg);
        justify-self: center;
        line-height: 0.6;
    }
    .character-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 760px) {
    .site-header {
        min-height: 66px;
    }
    .nav-toggle {
        display: block;
    }
    .site-nav {
        position: fixed;
        left: 14px;
        right: 14px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px;
        background: rgba(255, 250, 242, 0.96);
        border: 1px solid rgba(216, 132, 90, 0.18);
        border-radius: 20px;
        box-shadow: var(--shadow);
    }
    .site-nav.is-open {
        display: flex;
    }
    .site-nav a {
        padding: 12px 14px;
    }
    .nav-cta {
        text-align: center;
        margin-top: 8px;
    }
    .hero {
        min-height: auto;
    }
    /* スマホでヘッダー〜キャッチコピーの余白が空きすぎる対策（2026-07-13 実機で確認）:
       page-content 80px + hero-inner 54px + notice の既定margin 33px = 167px も
       積み上がっていたため、モバイルでは合計 28px に圧縮する */
    .hero.page-content {
        padding-top: 28px;
    }
    .hero-inner {
        min-height: auto;
        padding-top: 0;
       /* padding: 36px 18px 42px; */
    }
    .hero-copy .notice {
        margin-top: 0;
    }
    .hero h1 {
        font-size: clamp(3.1rem, 18vw, 4.8rem);
    }
    .hero-lead {
        font-size: 1.45rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    .hero-visual {
        /*min-height: 440px;*/
    }
    .hero-character {
        /* 幅の上限を固定する。90vw 基準のままだと iPad mini 縦(744px)がこの
           スマホ用ブレークポイントに入ったとき、scale(1.5) と相まって視覚上
           1000px 超に拡大され、上の CTA ボタンに頭がかぶり右にもはみ出す。
           iPhone(約390px)では 90vw≒351px とほぼ同じ幅なので見た目は変わらない。 */
        width: min(340px, 92%);
        transform: scale(1.5);
    }
    .message-card {
      /*  display: none; */
        right: -24px;
        top: 298px;
    }
    .profile-card {
        right: 0;
        left: 0;
        margin: auto;
        bottom: 6px;
        width: min(92%, 260px);
    }
    .worry-grid,
    .character-grid,
    .steps {
        grid-template-columns: 1fr;
    }
    .worry-card {
        border-right: 0;
        border-top: 1px solid var(--line);
    }
    .worry-card:first-child {
        border-top: 0;
    }
    .character-card {
        /* 1カラム表示時のカード幅上限（iPad mini 縦 744px 対策）。
           カードが全幅になると img(width:100% × height:300px × cover)が
           「横長の帯」クロップになり顔の一部しか写らないため、カード自体を
           スマホ相当の幅に抑えて中央寄せする。iPhone では実質無効（全幅のまま）。 */
        width: 100%;
        max-width: 400px;
        justify-self: center;
    }
    .character-image-wrap {
        /*height: 240px;*/
        height: 320px;
    }
    .character-image-wrap img {
        height: 300px;
        transform: scale(1.1);
        transform-origin: top;
    }
    .trial-panel {
        align-items: stretch;
        flex-direction: column;
        padding: 24px;
    }
}

/* ichikawa add */
.character-body h3 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

.character-yui h3 span {
    color: rgb(223, 114, 115);
    font-size: 34px;
    display: inline-block;
    margin-right: 10px;
}

.character-haru h3 span {
    color: rgb(238, 166, 76);
    font-size: 34px;
    display: inline-block;
    margin-right: 10px;
}

.character-tsukasa h3 span {
    color: rgb(105, 143, 195);
    font-size: 34px;
    display: inline-block;
    transform: scale(-1, 1);
    margin-right: 10px;
}

.character-gen h3 span {
    color: rgb(105, 143, 195);
    font-size: 34px;
    display: inline-block;
}

.soudan-tsukasa {
    background: rgb(105, 143, 195);
    border-radius: 10px;
}

.soudan-gen {
    background: rgb(120, 168, 109);
    border-radius: 10px;
}
.soudan-haru {
    background: rgb(238, 166, 76);
    border-radius: 10px;
}

.soudan-yui {
    background: rgb(223, 114, 115);
    border-radius: 10px;
}

.features-yui {
    border: solid 1px rgba(223, 114, 115, 1);
    color: rgba(223, 114, 115, 1);
    background: rgba(223, 114, 115, 0.6);
}
.features-haru {
    border: solid 1px rgba(238, 166, 76, 1);
    color: rgba(238, 166, 76, 0.6);
    background: rgba(238, 166, 76, 0.2);
}
.features-tsukasa {
    border: solid 1px rgba(105, 143, 195, 1);
    color: rgba(105, 143, 195, 1);
    background: rgba(105, 143, 195, 0.2);
}
.features-gen {
    border: solid 1px rgba(120, 168, 109, 1);
    color: rgba(120, 168, 109, 1);
    background: rgba(120, 168, 109, 0.2);
}

.feature-icon img {
    width: none;
}
.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon {
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    margin-right: 20px;
}
.feature-flow {
    background: rgb(253, 249, 240);
}

.flow-comment {
    width: 128px;
}

.hero-card::after {
    content: "";
    position: absolute;
    bottom: 14px;
    left: 30%;
    border-style: solid;
    border-width: 30px 30px 0 0;
    border-color: rgba(255, 250, 242, 0.82) transparent transparent;
    translate: calc(-50% - 0.4px) 100%;
    transform: skew(320deg);
    transform-origin: top;
}

.step{
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-content: center;
    align-items: center;
    background:rgb(252,242,229)
}
.step span{
   margin:10px 0;
    width: unset;
    height: unset;
}


.step h3{
 font-size: 18px;
}

.notice{
   font-size: 33px;
   color: #ff4300;
}



.diagonal-bg2 {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
  /*  background: #fff; */
    isolation: isolate;
  }

  .bg {
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -50%;
    right: -50%;
    z-index: -1;

    opacity: 0.65;
    background-image: linear-gradient(
      -60deg,
      #f7d6fb 0%,
      #f7c7b2 35%,
      #f8ecd9 45%,
      #f8ecd9 72%,
      #fffaf2 82%,
      #f7d6fb 100%
    );

    animation: diagonal-slide 3s ease-in-out infinite alternate;
  }

/*
    --ivory: #fffaf2;
    --paper: #f8ecd9;
    --peach: #f7c7b2;
*/

  .bg2 {
    animation-duration: 6s;
    animation-direction: alternate-reverse;
  }

  .bg3 {
    animation-duration: 8s;
  }

  .page-content {
    position: relative;
    z-index: 1;
    padding: 80px 24px;
  }

  @keyframes diagonal-slide {
    0% {
      transform: translateX(-25%);
    }

    100% {
      transform: translateX(25%);
    }
  }

/* === 吹き出し「私と一緒に一歩前へ」の左配置（PCレイアウト時） ===
   .message-card は right:-145px でキャラ枠の右へはみ出す前提の配置のため、
   画面幅が --max(1160px) + はみ出し両側分 ≒ 1450px より狭いノートPC等で
   画面右端から見切れていた。PCレイアウト（1021px以上）ではキャラの左側に
   配置し、しっぽ（三角）は左右反転して右向き＝キャラを指す向きにする。
   1020px以下は従来どおり右上配置（画面内に収まっている）のため変更しない。
   ※ .hero-card::after（しっぽ）の上書きはファイル後方で定義されているため、
     カスケード順を保証する目的でこのブロックはファイル末尾に置いている。 */
@media (min-width: 1021px) {
    .message-card {
        right: auto;
/*
        left: -60px;
        top: 120px;
*/
        left: -114px;
        top: 233px;
    }
    .message-card::after {
        /* しっぽを左右反転（◤→◥）して右下方向＝キャラ側を指す */
        left: auto;
        right: 30%;
        border-width: 30px 0 0 30px;
        translate: calc(50% + 0.4px) 100%;
        transform: skew(40deg);
    }
}
