@charset "UTF-8";

/* ==========================================================================
   Components - 汎用パーツ（吹き出し・QA・ボタン等）
   ========================================================================== */

/* 1. 吹き出し（新 c-chat スタイル） */
.c-chat {
   margin: 4rem 0;
}

.c-chat__item {
   display: flex;
   margin-bottom: 0.5rem;
   align-items: flex-start;
}

.c-chat__item--right {
   flex-direction: row-reverse;
}

/* PC/Tablet連投時 */
.c-chat__item--left+.c-chat__item--left,
.c-chat__item--right+.c-chat__item--right,
.c-chat__item--center+.c-chat__item--center {
   margin-top: 0.5rem;
}

.c-chat__item--left+.c-chat__item--left .c-chat__avatar-area,
.c-chat__item--right+.c-chat__item--right .c-chat__avatar-area,
.c-chat__item--center+.c-chat__item--center .c-chat__avatar-area {
   visibility: hidden;
   height: 0;
}

.c-chat__avatar-area {
   width: 60px;
   margin-right: 15px;
   text-align: center;
   flex-shrink: 0;
   line-height: 1.2;
}

.c-chat__item--right .c-chat__avatar-area {
   margin-right: 0;
   margin-left: 15px;
}

.c-chat__avatar-area img {
   width: 50px;
   height: 50px;
   border-radius: 50%;
   object-fit: cover;
   display: block;
   margin: 0 auto 5px;
   border: 2px solid var(--cre-color-bg-light);
}

.c-chat__name {
   font-size: 0.8rem;
   color: var(--cre-color-text);
   font-weight: bold;
}

.c-chat__bubble {
   position: relative;
   padding: 12px 15px;
   border-radius: 15px;
   font-size: 1rem;
   line-height: var(--cre-line-height-base);
   color: var(--cre-color-text);
   max-width: calc(100% - 75px);
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
   /* 影は控えめに */
   overflow-wrap: break-word;
   word-wrap: break-word;
   box-sizing: border-box;
   word-break: break-all;
}

/* 話者A (左) の吹き出し - 薄い青背景 */
.c-chat__item--left .c-chat__bubble {
   background-color: var(--cre-color-bubble-left);
   /* 薄い青 */
   border: 1px solid var(--cre-color-accent-sub-blue);
   /* 薄い青の枠線 */
   border-top-left-radius: 0;
}

/* 話者B (右) の吹き出し - 白背景 */
.c-chat__item--right .c-chat__bubble {
   background-color: var(--cre-color-bubble-right);
   /* 白 */
   border: 1px solid var(--cre-color-bubble-border);
   /* 控えめなグレーの枠線 */
   border-top-right-radius: 0;
}

.c-chat__item--center .c-chat__bubble {
   background-color: var(--cre-color-bubble-center);
   border: 1px solid var(--cre-color-bubble-border);
   border-top-left-radius: 0;
}

.c-chat--single-question {
   margin-bottom: 2rem;
}

.c-chat--single-question .c-chat__item {
   justify-content: flex-start;
}

.c-chat--single-question .c-chat__bubble {
   max-width: min(100%, 640px);
   padding: 1rem 1.5rem;
   background-color: transparent;
   border-color: var(--cre-color-bubble-border);
   border-radius: 18px;
   text-align: left;
}

.c-chat--single-question .c-chat__bubble::before,
.c-chat--single-question .c-chat__bubble::after {
   content: "";
   position: absolute;
   pointer-events: none;
}

.c-chat--single-question .c-chat__bubble::before {
   left: -36px;
   bottom: 18px;
   width: 38px;
   height: 28px;
   background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='28' viewBox='0 0 38 28'%3E%3Cpath d='M36 5C27 6 18 12 4 22' fill='none' stroke='%23DDDDDD' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M36 16C27 15.5 16 18 4 22' fill='none' stroke='%23DDDDDD' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.c-chat--single-question .c-chat__bubble::after {
   left: -2px;
   bottom: 28px;
   width: 4px;
   height: 12px;
   background-color: var(--cre-color-base);
}

@media (max-width:599px) {

   /* スマホ対応の吹き出しスタイル (完全記述) */
   .c-chat__item {
      flex-direction: column;
      align-items: flex-start;
      margin-top: 1.5rem;
      margin-bottom: 0;
   }

   .c-chat__item--right {
      flex-direction: column;
      align-items: flex-end;
   }

   .c-chat__item--left+.c-chat__item--left,
   .c-chat__item--right+.c-chat__item--right,
   .c-chat__item--center+.c-chat__item--center {
      margin-top: 0.5rem;
   }

   .c-chat__item--right .c-chat__avatar-area {
      margin: 0 0 5px auto;
   }

   .c-chat__item--left .c-chat__avatar-area,
   .c-chat__item--center .c-chat__avatar-area {
      margin: 0 auto 5px 0;
   }

   .c-chat__item--right .c-chat__name {
      text-align: right;
   }

   .c-chat__item--left .c-chat__name,
   .c-chat__item--center .c-chat__name {
      text-align: left;
   }

   .c-chat__bubble {
      max-width: 100%;
      margin-top: 5px;
      padding: 12px 15px;
      border-radius: 15px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
   }

   /* スマホ時も新しい色に合わせて枠線を調整 */
   .c-chat__item--left .c-chat__bubble {
      border-top-left-radius: 0;
      border: 1px solid var(--cre-color-accent-sub-blue);
   }

   .c-chat__item--right .c-chat__bubble {
      border-top-right-radius: 0;
      border: 1px solid var(--cre-color-bubble-border);
   }

   .c-chat__item--center .c-chat__bubble {
      border-top-left-radius: 0;
   }

   .c-chat__bubble::after {
      content: none;
   }

   .c-chat--single-question .c-chat__item {
      align-items: flex-start;
      margin-top: 0;
   }

   .c-chat--single-question {
      box-sizing: border-box;
      padding-left: 30px;
   }

   .c-chat--single-question .c-chat__bubble {
      padding: 0.9rem 1rem;
      border-radius: 18px;
   }

   .c-chat--single-question .c-chat__bubble::before {
      left: -28px;
      bottom: 18px;
      width: 30px;
      height: 22px;
   }

   .c-chat--single-question .c-chat__bubble::after {
      content: "";
   }

}

/* -----------------------------------------------------
 * 丸いぼやっとした背景（吹き出しの三角なし）
 * ----------------------------------------------------- */
.c-intro-blur-bg {
    position: relative;
    padding: 1.5rem 3rem 1rem; /* 上のpaddingを3remから1.5remに減らす */
    margin: -1.5rem auto 1rem;  /* 上のマージンをネガティブにして引っ張り込み、下を詰めた */
    max-width: 780px;
    z-index: 1;
    opacity: 0;
    animation: introFadeIn 1.5s ease-in-out 3.5s forwards;
}

@keyframes introFadeIn {
    to { opacity: 1; }
}

.delay-intro {
    opacity: 0;
    animation: introFadeIn 2s ease-in-out 3.5s forwards;
}

.c-intro-blur-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* 色を薄い青に変更し、不透明度を調整 */
    background: radial-gradient(ellipse at center, rgba(235, 243, 252, 1) 0%, rgba(240, 247, 255, 0.8) 55%, rgba(245, 248, 252, 0) 80%);
    z-index: -1;
    border-radius: 25px; /* 元の30pxから少しだけ小さくし、ほんのり長方形感を残す程度に */
    transform: scale(1.1);
    filter: blur(15px);
}

@media (min-width: 769px) {
    .c-intro-blur-bg {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .c-intro-blur-bg {
        padding: 1.5rem 10px 1rem; /* スマホでは左右の余白を最小限に抑え文字領域を最大化 */
        margin: -1rem auto 2rem;
    }
    .c-intro-blur-bg::before {
        transform: scale(1.15, 1.15); /* 文字幅が拾われるため、背景のぼかしも横幅に合わせてスケールを拡大 */
        filter: blur(12px);
    }
}

/* 章セクション背景 */
.c-chapter-section {
    position: relative;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}
.c-chapter-section .l-container {
    position: relative;
    z-index: 1;
}
.c-chapter-section__deco-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 200px;
    width: auto;
    max-width: none;
    opacity: 0.65;
    pointer-events: none;
    z-index: 0;
}
.c-chapter-section::before {
    content: "";
    position: absolute;
    top: -60%;
    right: -20%;
    width: 70%;
    height: 250%;
    background: radial-gradient(ellipse, rgba(106, 171, 133, 0.12) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}
.c-chapter-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.3' d='M0,160L48,170.7C96,181,192,203,288,186.7C384,171,480,117,576,112C672,107,768,149,864,165.3C960,181,1056,171,1152,149.3C1248,128,1344,96,1392,80L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'/%3E%3C/svg%3E") no-repeat bottom / 100% auto,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%236aab85' fill-opacity='0.04' d='M0,96L60,122.7C120,149,240,203,360,202.7C480,203,600,149,720,138.7C840,128,960,160,1080,176C1200,192,1320,192,1380,192L1440,192L1440,0L1380,0C1320,0,1200,0,1080,0C960,0,840,0,720,0C600,0,480,0,360,0C240,0,120,0,60,0L0,0Z'/%3E%3C/svg%3E") no-repeat top / 100% auto;
    pointer-events: none;
}

/* 章見出し */
.c-chapter-heading {
    position: relative;
    z-index: 1;
    text-align: center;
}
.c-chapter-heading__number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    color: var(--cre-color-accent-blue);
    margin-bottom: 14px;
}
.c-chapter-heading__number::before,
.c-chapter-heading__number::after {
    content: "";
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: var(--cre-color-accent-blue);
}
.c-chapter-heading__title {
    display: block;
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    font-weight: bold;
    letter-spacing: 0.06em;
    line-height: 1.5;
    color: var(--cre-color-text);
    margin-top: 0;
}
/* 章番号なしの場合のタイトル後装飾（なし） */
.c-chapter-heading__title:first-child::after {
    display: none;
}


/* 5. 特記用テーブル（tokusho.html 用） */
.tokusho {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}
.tokusho th, .tokusho td {
    padding: 15px;
    border-bottom: 1px solid var(--cre-color-bubble-border);
}
.tokusho th {
    width: 30%;
    background-color: var(--cre-color-bg-light);
    text-align: left;
}

/* フッター */
.footer {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    line-height: 1.6;
}
.footer__leaf {
    height: 80px;
    width: auto;
    flex-shrink: 0;
    opacity: 0.85;
}
.footer p {
    color: var(--cre-color-text);
    font-size: 12px;
}
.footer a {
    color: var(--cre-color-text);
    text-decoration: none;
}

/* -----------------------------------------------------
 * ステップフロー（縦並びの矢印付きリスト）
 * ----------------------------------------------------- */
.c-step-flow {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin: 3rem auto;
    max-width: 400px;
}
.c-step-flow__item {
    background: var(--cre-color-base);
    border: 1px solid var(--cre-color-bubble-border);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    position: relative;
    font-weight: bold;
    color: var(--cre-color-text);
    line-height: 1.4;
}
.c-step-flow__item:not(:last-child)::after {
    content: "▼";
    position: absolute;
    bottom: -1.3rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--cre-color-accent-blue);
    font-size: 1.2rem;
    line-height: 1;
}
.c-step-flow__item span.small {
    display: block;
    font-size: 0.85rem;
    font-weight: normal;
    color: #666;
    margin-top: 0.4rem;
}
