﻿/* チュートリアルページ専用スタイル */

:where(body) {
  -webkit-touch-callout: none; /* 長押しコールアウト抑止 */
  -webkit-user-select: text; 
  user-select: text;
}
:where(input, textarea) {
  -webkit-user-select: auto;   /* 入力欄は従来通り */
  user-select: auto;
}


/* ===== プレースホルダースタイル ===== */
.birthday-input::placeholder {
    font-family: Noto Sans JP;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 1.12px;
    color:#C3C3C3;
}

@media screen and (max-width: 842px) {
    .birthday-input::placeholder {
        font-size: 15px;
        letter-spacing: 1.05px;
    }
}

/* ===== チュートリアル ヒーロー セクション ===== */
.tutorial-hero {
    width: 100%;
}

.tutorial-hero-container {
    /* オートレイアウト */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 24px;
    
    width: 100%;
    max-width: 960px;
    height: auto;
    margin: 0 auto;
}

/* テキスト部分 */
.tutorial-hero-text {
    /* オートレイアウト */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 24px;
    
    width: 536px;
    height: auto;
}

.tutorial-hero-title {
    width: 536px;
    height: auto;
    
    font-family: 'Kiwi Maru', serif;
    font-style: normal;
    font-weight: 500;
    font-size: 32px;
    line-height: 160%;
    text-align: center;
    letter-spacing: 0.1em;
    
    color: #F87C52;
    margin: 0;
    padding: 0;
}

.tutorial-hero-image {
    object-fit: contain;
    display: block;
    text-align: center;
}

.tutorial-hero-image img {
    max-width: 350px;
    height: auto;
    margin: 0 auto;
}

.tutorial-hero-content {
    /* オートレイアウト */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    gap: 24px;
    position: relative;
    isolation: isolate;
    
    width: 536px;
    height: auto;
}

.tutorial-subtitle {
    width: 536px;
    height: auto;
    
    font-family: 'Kiwi Maru', serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 160%;
    text-align: center;
    letter-spacing: 0.03em;
    
    color: #353131;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.tutorial-description {
    width: 536px;
    height: auto;
    
    font-family: 'Kiwi Maru', serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 160%;
    text-align: center;
    letter-spacing: 0.03em;
    
    color: #353131;
    margin: 0;
    padding: 0;
}

.tutorial-description-sub {
    width: 536px;
    height: auto;
    
    font-family: 'Kiwi Maru', serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 160%;
    text-align: center;
    letter-spacing: 0.03em;
    
    color: #353131;
    margin-top: 28px;
    padding: 0;
    display: block;
}

/* ビジュアル部分 */
.tutorial-hero-visual {
    position: relative;
    width: 400px;
    height: 398px;
    flex-shrink: 0;
}

.tutorial-hero-visual::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: "";
    background-image: url("../img/top/bg_kv.png");
    background-size: cover;
    z-index: 5;
}

/* スクロール関連 */
.sp-break {
    display: none;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px 0px 0px;
    gap: 8px;
    width: 41px;
    height: 57px;
    margin: 0 auto;
}

.scroll-indicator.show svg {
    animation: scrollArrowAnimation 2s infinite;
    animation-delay: 4.6s;
}

.scroll-text {
    width: 41px;
    height: 19px;
    font-family: 'Kiwi Maru', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 160%;
    text-align: center;
    letter-spacing: 0.06em;
    color: #E0C088;
}

.scroll-description {
    display: none;
    width: 335px;
    height: auto;
    font-family: 'Kiwi Maru';
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 160%;
    letter-spacing: 0.03em;
    color: #353131;
    flex: none;
    flex-grow: 1;
    z-index: 2;
}

.scroll-description.show {
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0s;
}

.scroll-description p {
    margin: 0 0 8px 0;
    font-family: 'Kiwi Maru';
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 160%;
    letter-spacing: 0.03em;
    color: #353131;
}

/* 生年月日フォーム */
.birthday-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* 生年月日を入力してね */
.birthday-label {
    width: 100%;
    height: 29px;
    font-family: 'Kiwi Maru', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 160%;
    text-align: center;
    letter-spacing: 0.03em;
    color: #353131;
}

#birthdayForm{
    width: 400px;
    padding: 8px 0px;
}

@media screen and (max-width: 842px) {
    .birthday-form {
        gap: 20px;
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .birthday-label {
        font-size: 15px;
        letter-spacing: 0.45px;
    }

    #birthdayForm{
        width: 296px;
    }
}

/* ハイライトテキストスタイル */
.highlight-text {
    color: var(--Semantic-Gray-900, #353131);
    font-family: "Kiwi Maru", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%;
    letter-spacing: 0.6px;
    background-color: rgba(248, 124, 82, 0.25);
    border-radius: 2px;
}

body.tutorial .wrapper {
    padding-top: 40px;
}

body.tutorial .wrapper .wrapper {
    padding-top: 0px;
    padding-bottom: 0px;
}

.wrapper-content {
    padding-top: 32px;
}

@media screen and (max-width: 842px) {
    body.tutorial .wrapper .wrapper {
        padding-top: 0px;
        padding-bottom: 0px;
    }
    .wrapper-content {
        padding-top: 24px;
    }
}

@media screen and (max-width: 520px) {
    #recommendedSection .cardbox-content-inner:not(.swiper-wrapper) {
        gap: 24px;
    }
}

/* ===== フェードインアニメーション ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* フェードイン対象要素のデフォルト状態 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

/* アニメーション実行時 */
.fade-in.show {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* STEPごとのディレイ設定（1秒おき） */
.fade-in[data-step="1"].show {
    animation-delay: 0s;
}

.fade-in[data-step="2"].show {
    animation-delay: 1s;
}

.fade-in[data-step="3"].show {
    animation-delay: 2s;
}

.fade-in[data-step="4"].show {
    animation-delay: 3s;
}

.fade-in[data-step="5"].show {
    animation-delay: 4s;
}

/* ===== スクロール矢印アニメーション ===== */
/* 矢印のアニメーション */
@keyframes scrollArrowAnimation {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
    }
    80% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 0;
    }
}

/* スクロール矢印のアニメーション実行 */
.scroll-indicator.show svg {
    animation: scrollArrowAnimation 2s infinite;
    animation-delay: 4.6s;
}

/* ===== レスポンシブ対応 ===== */
/* SP版以外では改行タグを非表示 */
.sp-break {
    display: none;
}

@media screen and (max-width: 959px) {
    .tutorial-hero-container {
        flex-direction: column;
        gap: 40px;
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 0 20px;
    }
    
    .tutorial-hero-text,
    .tutorial-hero-title,
    .tutorial-subtitle,
    .tutorial-description,
    .tutorial-description-sub {
        width: 100%;
        max-width: 536px;
    }
    
    .tutorial-hero-visual {
        width: 300px;
        height: 298px;
    }
}

@media screen and (max-width: 768px) {
    body.tutorial .wrapper {
        padding-top: 32px;
    }
    
    .tutorial-hero {
        padding: 0 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    /* コンテナを透過させて、子要素を.tutorial-heroで直接管理 */
    .tutorial-hero-container {
        display: contents;
    }
    
    .tutorial-hero-text {
        display: contents;
    }
    
    .tutorial-hero-content {
        display: contents;
    }
    
    /* SP版の要素の並び順制御 */
    .tutorial-hero-title {
        order: 1;
        width: 100%;
    }
    
    .tutorial-subtitle {
        order: 2;
        width: 100%;
    }
    
    .tutorial-description {
        order: 3;
        width: 100%;
    }
    
    .tutorial-hero-visual {
        order: 4;
        width: 95%;
        height: auto;
    }
    
    .scroll-indicator {
        order: 5;
        width: 100%;
    }
    
    /* SP版：スクロール説明文を表示 */
    .scroll-description {
        display: block;
        order: 6;
        width: 335px;
        height: auto;
        margin: 24px 0 0 0;
        opacity: 0;
        transform: translateY(20px);
    }
    
    .scroll-description.show {
        animation: fadeInUp 0.6s ease-out forwards;
        animation-delay: 0s;
    }
    
    .scroll-description p {
        margin: 0 0 8px 0;
        font-family: 'Kiwi Maru';
        font-style: normal;
        font-weight: 500;
        font-size: 15px;
        line-height: 160%;
        letter-spacing: 0.03em;
        color: #353131;
    }
    
    .tutorial-description-sub {
        display: none;
        order: 7;
        width: 100%;
    }
    
    .birthday-form {
        order: 8;
        width: 100%;
    }
    
    .birthday-form > div.birthday-label {
        display: none;
    }
    
    .birthday-form p.birthday-label {
        color: var(--Semantic-Gray-900, #353131);
        text-align: center;
        font-family: "Kiwi Maru";
        font-size: 15px;
        font-style: normal;
        font-weight: 500;
        line-height: 160%; /* 24px */
        letter-spacing: 0.45px;
    }
    
    .tutorial-hero-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    /* SP版では改行タグを表示 */
    .sp-break {
        display: inline;
    }
    
    /* SP版のフェードイン順序をSP版の並び順に合わせる */
    /* 1. サブタイトル（2番目に表示）*/
    .tutorial-subtitle.fade-in[data-step="1"].show {
        animation-delay: 0s;
    }
    
    /* 2. 説明文（3番目に表示）*/
    .tutorial-description.fade-in[data-step="2"].show {
        animation-delay: 1s;
    }
    
    /* 3. スクロール矢印（5番目に表示）*/
    .scroll-indicator.fade-in[data-step="4"].show {
        animation-delay: 2s;
    }
    
    /* SP版：矢印のアニメーション開始タイミングを2秒に設定 */
    .scroll-indicator.show svg {
        animation-delay: 2s;
    }
    
    /* 5. フォーム（スクロール後、1秒で表示）*/
    .birthday-form.fade-in[data-step="5"].show {
        animation-delay: 1s;
    }
    
    .tutorial-hero-text,
    .tutorial-hero-title,
    .tutorial-subtitle,
    .tutorial-description {
        width: 100%;
    }
    
    .highlight-text {
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 160%;
        letter-spacing: 0.48px;
    }
}

body.tutorial .info {
    margin-top: 60px;
    max-width: 100%;
}

/* Lottieモーダル用の吹き出しラッパー */
.tutorial-instruction-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Lottieモーダル×ボタン（吹き出しの右側上部に配置） */
.tutorial-instruction-wrapper .tutorial-modal-close {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 0px;
}

@media screen and (max-width: 843px) {
    .tutorial-instruction-wrapper .tutorial-modal-close {
        top: -39px;
        right: -2px;
        width: 32px;
        height: 32px;
        padding: 0px;
    }
}

/* おすすめセクション用スタイル */
.type-recommended .first {
    color: #FFB800;
}

.type-recommended .cardbox-content-title {
    text-align: center !important;
}

.type-recommended .cardbox-content-title h1 {
    text-align: center !important;
}

.about_content h1 .ja{
    font-size: 40px;
}

.about_content .lead{
    text-align: center;
}

.modal-link{
    text-decoration-line: underline;
    color: rgb(0, 145, 255) !important;
}

.modal-link a {
    cursor: pointer;
}

/* テキスト内のインラインリンク */
.inline-link {
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    font-weight: inherit;
}

/* チュートリアル文章ボックス */
.tutorial-instruction {
    background-color: #ffffff;
    border: 2px solid #FFB800;
    border-radius: 12px;
    padding: 20px 30px;
    margin: 30px auto;
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.modal-tutorial-instruction {
    margin: 0px auto;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    position: relative;
}

.type-recommended{
    padding-top: 32px;
    margin-bottom: 32px;
}

@media screen and (max-width: 842px) {
    .type-recommended{
        padding-top: 24px;
        margin-bottom: 24px;
    }
}

/* おすすめセクション用のチュートリアル説明 */
.recommended-section-tutorial-instruction {
    padding-top: 32px;
    margin: 0px auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    position: relative;
}

.tutorial-icon {
    margin: auto 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* 吹き出しの矢印（内側の白） */
.tutorial-icon::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6.017px solid transparent;
    border-right: 8px solid #FFFFFF;
    border-bottom: 6.017px solid transparent;
    z-index: 2;
}

/* 吹き出しの矢印（外枠のボーダー） */
.tutorial-icon::after {
    content: '';
    position: absolute;
    right: -9.5px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 7px solid transparent;
    border-right: 8px solid #DDDAD2;
    border-bottom: 7px solid transparent;
    z-index: 1;
}
@media screen and (max-width: 842px) {
    .tutorial-icon::before {
        right: -14px;
    }
    .tutorial-icon::after {
        right: -12.5px;
    }

    /* SP版：おすすめセクション用矢印位置調整 */
    .recommended-section-tutorial-instruction .tutorial-icon::before {
        right: -10px;
    }
    .recommended-section-tutorial-instruction .tutorial-icon::after {
        right: -9.5px;
    }
}

.tutorial-icon img {
    margin-right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 70px;
    object-fit: cover;
}

.tutorial-addMarker_card img {
    margin:24px auto 32px;
}

/* PC版GIFのみ表示 */
.tutorial-gif-pc {
    display: block;
}

.tutorial-gif-sp {
    display: none;
}

/* 吹き出しのテキスト部分 */
.tutorial-text {
    flex: 1;
    text-align: left;
    background-color: #ffffff;
    border: 1px solid #DDDAD2;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    align-items: center;
    max-width: 407px;
}

@media screen and (min-width: 843px) {
    .tutorial-modal-text {
        width: 375px;
    }
}

@media screen and (max-width: 842px) {
    .tutorial-text {
        padding: 12px;
    }

    /* SP版：おすすめセクション用サイズ調整 */
    .recommended-section-tutorial-instruction .tutorial-text {
        font-size: 14px;
        padding: 12px;
        min-width: 270px;
    }

    .recommended-section-tutorial-instruction{
        padding-top:16px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

.tutorial-text p {
    max-width: 515px;
    font-family: Noto Sans JP;
    font-weight: 400;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 1.12px;
}

/* おすすめセクション用カスタム色設定 */
.recommended-section-tutorial-instruction .tutorial-text {
    border: 1px solid var(--Semantic-Primary-Main, #F87C52);
}

.recommended-section-tutorial-instruction .tutorial-icon::before {
    border-right: 8px solid #FFFFFF;
}

.recommended-section-tutorial-instruction .tutorial-icon::after {
    border-right: 8px solid var(--Semantic-Primary-Main, #F87C52);
}

/* おすすめセクション内のアイコンは吹き出し矢印を表示しない */
.tutorial-instruction .tutorial-icon::before,
.tutorial-instruction .tutorial-icon::after {
    content: none;
}

/* シンプルバージョン（padding・min-heightなし） */
.tutorial-text.simple {
    padding: 0;
    min-height: auto;
    border: none;
    border-radius: none;
}

.empty-state-message{
    font-weight: 400;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 1.12px;
    text-align: center;
    color: #8D8D8D;
    padding-top: 32px;
}

@media screen and (max-width: 842px) {
    .empty-state-message{
        font-size: 15px;
        letter-spacing: 1.05px;
        padding-top: 20px;
    }
}

/* 枠なしバージョン */
.tutorial-text.no-border {
    border: none;
    border-radius: 0;
    padding: 0;
    min-height: auto;
    background-color: transparent;
}

/* チュートリアルモーダル */
.tutorial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.tutorial-modal-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* .marker は pointer-events: auto が明示指定されているため、
   モーダル非表示時は !important で上書きしてクリックを無効化する */
.tutorial-modal-hidden .marker {
    pointer-events: none !important;
}

.tutorial-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(72, 72, 72, 0.9);
    z-index: 9998;
    transition: opacity 0.3s ease;
}

.tutorial-modal-hidden .tutorial-modal-overlay {
    opacity: 0;
}

/* モーダル内の記事表示スタイル */
#tutorialArticleTestModal .markeritem .profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

#tutorialArticleTestModal .markeritem .profile .icon {
    flex-shrink: 0;
}

#tutorialArticleTestModal .markeritem .profile .names {
    flex: 1;
}

.tutorial-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    border-radius: 8px;
    max-width: 680px;
    width: calc(100% - 40px);
    max-width: 390px;
    z-index: 9999;
}

.tutorial-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.tutorial-modal-close:hover {
    opacity: 0.7;
}

/* 新規会員登録フォーム */
.registration-section {
    padding-top: 32px;
    padding-bottom: 32px;
}

.registration-container {
    margin: 0 auto;
}

.registration-container h1 {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    line-height: 160%;
    letter-spacing: 1.96px;
}

@media screen and (max-width: 842px) {
    .registration-section {
        padding-top: 24px;
        padding-bottom: 24px;
    }
    .registration-container h1{
        font-size: 20px;
        letter-spacing: 1.4px;
    }
}

/* signup.cssからの移植 - 生年月日入力 */
.birthday-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.birthday-input {
    padding: 12px 16px;
    border: 1px solid #ECECEC;
    border-radius: 4px;
    font-size: 16px;
    flex-shrink: 0;
}

.birthday-input::placeholder {
    color: var(--form-placeholder, #C3C3C3);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 0.64px;
}

.birthday-input[name="year"],
.birthday-input#year {
    flex: 2.1;
    height: 50px;
    max-width: 152px;
}

.birthday-input[name="month"],
.birthday-input[name="day"],
.birthday-input#month,
.birthday-input#day {
    flex: 1;
    height: 50px;
    max-width: 72px;
}

.birthday-unit {
    max-width: 16px;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 1.12px;
    color: #000;
    flex-shrink: 0;
    white-space: nowrap;
    margin-right: 8px;
}

/* フォーム共通スタイル - form-helpers.cssからの移植 */
.tutorial-form .form-group {
    margin-bottom: 0;
    padding: 8px 0px;
}

.tutorial-form .form-label {
    display: block;
    color: var(--text, #353131);
    margin-bottom: 8px;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 160%;
    letter-spacing: 1.12px;
}

.tutorial-form .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.tutorial-form .form-input::placeholder {
    color: var(--form-placeholder, #C3C3C3);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 0.64px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tutorial-form .form-help {
    font-size: 14px;
    color: #9A9A9A;
    margin-top: 6px;
    line-height: 160%;
    letter-spacing: 0.98px;
    font-style: normal;
    font-weight: 400;
}

.tutorial-form .form-help.error {
    color: #F04547;
    display: block;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 0.98px;
}

.tutorial-form .form-input.error,
.tutorial-form .birthday-input.error {
    border: 1px solid #F04547 !important;
}

/* チュートリアル生年月日入力フォームのエラースタイル */
.birthday-inputs.error .birthday-input {
    border-color: #F04547;
}

.tutorial-form .input-cnt {
    /* 入力コンテナ - 相対位置指定の基準 */
    position: relative;
}

/* 必須項目マーカー */
.tutorial-form .form-label.required::after {
    content: "必須";
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 2px;
    background: var(--Semantic-Primary-Main, #F87C52);
    color: var(--Semantic-Component-White, #FFF);
    font-family: "Noto Sans JP";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 0.84px;
}

/* パスワード表示切替 */
.passwordblock {
    position: relative;
}

.passwordblock input[type="password"],
.passwordblock input[type="text"] {
    padding-right: 40px;
}

.passwordblock .eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: url('/img/common/ico_input_pass.svg') center/contain no-repeat;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.passwordblock .eye:hover {
    opacity: 1;
}

.passwordblock .eye.active {
    background: url('/img/common/ico_input_pass_vis.svg') center/contain no-repeat;
}

/* ニックネーム文字数カウンター */
.nickname-counter {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.nickname-error {
    position: absolute;
    left: 0;
    top: 0;
}

.character-count {
    color: var(--gray, #9A9A9A);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 0.98px;
}

/* チェックボックス - auth-common.cssからの移植 */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 40px;
}

.checkbox-input {
    margin: auto 3px;
    width: 18px;
    height: 18px;
}

.checkbox-text {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 1.12px;
    color: var(--text, #353131);
}

.checkbox-text a {
    color: var(--text, #353131);
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

/* 登録ボタン */
.submit-button {
    width: 280px;
    min-height: 54px;
    padding: 12px 24px;
    border-radius: 4px;
    background: #353131;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 40px auto 0;
    display: block;
    color: #FFF !important;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 160%;
    letter-spacing: 1.12px;
    text-decoration: none !important;
}

.birth-note {
    color: var(--gray, #9A9A9A);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 0.98px;
}
.tutorial-hero-image {
    text-align: center;
}

.tutorial-hero-image img {
    max-width: 350px;
    height: auto;
    margin: 0 auto;
}

#birthdayForm {
    padding: 8px 0px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

#birthdayForm span {
    font-size: 16px;
}

.birthday-form .border-button {
    width: 280px;
    margin: 0 auto;
}

.birthday-error{
    display:none;
    color:#F04547;
    margin-top:10px;
    font-size:14px;
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
    letter-spacing: 0.98px;
}

@media screen and (max-width: 842px) {
    .birthday-error{
        font-size: 12px;
        letter-spacing: 0.84px;
    }
}

#viewQuotesBtn {
    background-color: #353131;
    padding: 14px 24px;
    height: 54px;
}

#viewQuotesBtn .text {
    color: #ffffff;
    font-family: Noto Sans JP;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 1.12px;
    text-align: center;
}

@media screen and (max-width: 842px) {
    #viewQuotesBtn {
        padding: 12px 16px;
        height: 48px;
    }

    #viewQuotesBtn .text {
        font-size: 15px;
        letter-spacing: 1.05px;
    }
}

/* おすすめセクション */
#recommendedSection {
    display: none;
}

/* おすすめセクション内の記事表示件数制御（PC版：9件表示） */
#recommendedSection .cardbox-content-inner > .markeritem:nth-child(n+10) {
    display: none;
}

#recommendedSection h1 {
    font-weight: 600;
    font-size: 28px;
    line-height: 160%;
    letter-spacing: 1.96px;
    text-align: center;
}

@media screen and (max-width: 842px) {
    #recommendedSection h1 {
        font-size: 20px;
        letter-spacing: 1.4px;
    }
}

/* 登録セクション */
#registrationSection {
    display: none;
}

/* 登録フォーム */
#registrationForm {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-top: 24px;
}

.form-group:first-child {
    margin-top: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#year {
    width: 100px;
}

#month,
#day {
    width: 80px;
}

.form-group label[style*="cursor: pointer"],
.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.form-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.form-group label span {
    font-size: 16px;
}

.form-group:has(input[type="checkbox"]) {
    margin-top: 30px;
}

#registerBtn {
    background-color: #353131;
    color: white;
    padding: 15px 60px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

#registrationForm > div:last-child {
    margin-top: 40px;
    text-align: center;
}

.form-group > div {
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

/* チュートリアルモーダル内のスタイル */
#tutorialTestArticleContainer {
    margin: 0 auto;
    padding: 0;
    max-width: 350px;
    margin-top: 32px;
}
@media screen and (max-width: 842px) {
    #tutorialTestArticleContainer {
        padding: 0;
        max-width: 335px;
        margin-top: 24px;
    }
}

.tutorial-slide-modal .tutorial-modal-body h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.tutorial-modal-body > div {
    line-height: 1.8;
    color: #333;
}

.tutorial-modal-body > div > div {
    text-align: center;
}

.gif {
    margin: 150px auto;
    text-align: center;
}

#tutorialModalOk {
    width: 280px;
    max-width: 100%;
    background-color: #353131;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 160%;
    letter-spacing: 1.12px;
}

@media screen and (max-width: 842px) {
    #tutorialModalOk {
        width: 280px;
        max-width: 100%;
        background-color: #353131;
        color: white;
        padding: 12px 16px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 15px;
        font-weight: 600;
        line-height: 160%;
        letter-spacing: 1.05px;
    }

    .tutorial-slide-modal .tutorial-modal-body h3{
        font-size: 18px;
        font-weight: 600;
        letter-spacing: 1.26px;
        margin-bottom: 32px;
        text-align: center;
    }
    .tutorial-instruction {
        padding: 15px 20px;
        margin: 20px;
        gap: 15px;
    }
}

.modalOKButton{
    margin-top: 32px;
}

/* テスト記事モーダルのOKボタン */
#tutorialArticleTestOk {
    width: 280px;
    max-width: 100%;
    background-color: #353131;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 160%;
    letter-spacing: 1.12px;
}

#tutorialArticleTestOk:disabled {
    background-color: #C3C3C3;
    color: #FFFFFF;
    cursor: not-allowed;
}

#tutorialModalOk:disabled {
    background-color: #C3C3C3;
    color: #FFFFFF;
    cursor: not-allowed;
}

@media screen and (max-width: 842px) {
    .modalOKButton{
        margin-top: 24px;
    }

    #tutorialArticleTestOk {
        width: 280px;
        max-width: 100%;
        background-color: #353131;
        color: white;
        padding: 12px 16px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 15px;
        font-weight: 600;
        line-height: 160%;
        letter-spacing: 1.05px;
    }

    #tutorialArticleTestOk:disabled {
        background-color: #C3C3C3;
        color: #FFFFFF;
        cursor: not-allowed;
    }

    #tutorialModalOk:disabled {
        background-color: #C3C3C3;
        color: #FFFFFF;
        cursor: not-allowed;
    }
    
    .modal-tutorial-instruction {
        max-width: 100%;
        gap: 12px;
    }
}

/* チュートリアル完了モーダルのOKボタン */
#tutorialCompleteOkButton {
    width: 280px;
    max-width: 100%;
    background-color: #353131;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 160%;
    letter-spacing: 1.12px;
}

@media screen and (max-width: 842px) {
    #tutorialCompleteOkButton {
        width: 280px;
        max-width: 100%;
        background-color: #353131;
        color: white;
        padding: 12px 16px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 15px;
        font-weight: 600;
        line-height: 160%;
        letter-spacing: 1.05px;
    }
    
    .tutorial-icon img {
        margin-right: 8px;
        width: 48px;
        height: 48px;
    }
    
    .tutorial-text {
        padding: 12px;
        font-size: 14px;
    }
    
    .tutorial-text p {
        font-size: 15px;
        letter-spacing: 1.05px;
    }
    
    .registration-container {
        padding: 0px 20px;
    }
    
    .tutorial-modal-content {
        padding: 0px 0px;
    }
    
    /* 生年月日入力 */
    .birthday-inputs {
        gap: 4px;
    }
    
    .birthday-input {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .birthday-input::placeholder {
        font-size: 15px;
        letter-spacing: 1.05px;
    }
    
    .birthday-input[name="year"],
    .birthday-input#year {
        height: 48px;
        max-width: 109px;
    }

    #registrationYear{
        max-width: 148px;
    }
    
    .birthday-input[name="month"],
    .birthday-input[name="day"],
    .birthday-input#month,
    .birthday-input#day {
        height: 48px;
        max-width: 53px;
    }
    
    .birthday-unit {
        max-width: 15px;
        font-size: 15px;
        letter-spacing: 1.05px;
    }
    
    /* フォーム関連 */
    .tutorial-form .form-input {
        font-size: 15px;
        letter-spacing: 1.05px;
    }

    .tutorial-form .form-label {
        font-size: 15px;
        letter-spacing: 1.05px;
    }
    
    .tutorial-form .form-input::placeholder {
        font-size: 15px;
        letter-spacing: 1.05px;
    }
    
    .tutorial-form .form-label.required::after {
        font-size: 10px;
        letter-spacing: 0.7px;
        padding: 0px 4px;
    }
    
    .character-count {
        font-size: 12px;
        letter-spacing: 0.84px;
    }
    
    .tutorial-form .form-help,
    .birth-note {
        font-size: 12px;
        letter-spacing: 0.84px;
    }

    .checkbox-input {
        margin: auto 2.5px;
        width: 18px;
        height: 15px;
    }
    
    .checkbox-text {
        font-size: 15px;
        letter-spacing: 1.05px;
    }

    .checkbox-text a {
        font-size: 16px;
        letter-spacing: 1.12px;
    }
    
    .submit-button {
        font-size: 15px;
        min-height: 48px;
        letter-spacing: 1.05px;
        padding: 12px 16px;
    }

    .tutorial-addMarker_card img {
        width: 275px;
        max-width: 100%;
        margin:24px auto 32px;
    }
    
    /* SP版GIFのみ表示 */
    .tutorial-gif-pc {
        display: none;
    }
    
    .tutorial-gif-sp {
        display: block;
    }
}

@media screen and (max-width: 600px) {
    .recommended-articles {
        grid-template-columns: 1fr !important;
    }
}

/* ========== スライド式モーダル用スタイル ========== */
/* モーダルの表示/非表示制御（opacity/visibilityで制御し、display:noneは使わない） */

.tutorial-slide-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tutorial-slide-modal .tutorial-modal-overlay {
    transition: opacity 0.3s ease;
}

.tutorial-slide-modal .tutorial-modal-content {
    max-width: 680px;
    padding: 30px;
    border-width: 1px;
    border-radius: 8px;
}

/* Swiper コンテナ（画像部分のみ） */
.tutorial-swiper {
    width: 100%;
    height: auto;
    margin: 20px 0 32px;
    position: relative;
}

.tutorial-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

/* スライド内の画像 */
.tutorial-slide-image {
    margin: 0 auto;
}

/* PC版スライド画像のみ表示 */
.tutorial-slide-pc {
    display: block;
}

.tutorial-slide-sp {
    display: none;
}

/* Swiper ナビゲーションボタン（フレーズランキングと同じスタイル） */
.tutorial-swiper-prev,
.tutorial-swiper-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 38px;
    background-color: var(--gray);
    cursor: pointer;
    position: absolute;
    top: 47%;
    transform: translateY(-50%);
    z-index: 10;
    transition: opacity 0.3s ease;
}

.tutorial-swiper-prev {
    left: 20px;
}

.tutorial-swiper-next {
    right: 20px;
}

@media screen and (max-width: 842px) {
    .tutorial-swiper-prev {
        left: 0px;
    }

    .tutorial-swiper-next {
        right: 0px;
    }
}

@media screen and (max-width: 640px) {
    .tutorial-swiper-prev,
    .tutorial-swiper-next {
        width: 32px;
        height: 32px;
    }
}

.tutorial-swiper-prev.swiper-button-disabled,
.tutorial-swiper-next.swiper-button-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.tutorial-swiper-prev svg,
.tutorial-swiper-next svg {
    width: 18px;
    height: 18px;
}

/* Swiper ペジネーション（フレーズランキングと同じスタイル） */
.tutorial-swiper .tutorial-swiper-pagination {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    z-index: 10;
}

.tutorial-swiper .tutorial-swiper-pagination .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background-color: #ececec !important;
    opacity: 1 !important;
    transition: background-color 0.3s ease;
}

@media screen and (max-width: 842px) {
    .tutorial-swiper .tutorial-swiper-pagination .swiper-pagination-bullet {
        width: 8px !important;
        height: 8px !important;
    }
}

@media screen and (max-width: 640px) {
    .tutorial-swiper .tutorial-swiper-pagination .swiper-pagination-bullet {
        width: 8px !important;
        height: 8px !important;
    }
}

.tutorial-swiper .tutorial-swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--primary) !important;
}

#tutorialSlideModalOk {
    width: 280px;
    max-width: 100%;
    background-color: #353131;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 160%;
    letter-spacing: 1.12px;
}
@media screen and (max-width: 842px) {
    #tutorialSlideModalOk {
        width: 275px;
        max-width: 100%;
        background-color: #353131;
        color: white;
        padding: 12px 16px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 15px;
        font-weight: 600;
        line-height: 160%;
        letter-spacing: 1.05px;
    }
}

/* スライドモーダル内のインストラクション調整 */
.tutorial-slide-modal .modal-tutorial-instruction {
    max-width: 620px;
    margin: 15px auto;
}

/* レスポンシブ対応 */
@media screen and (max-width: 842px) {
    .tutorial-slide-modal .tutorial-modal-content {
        padding: 30px 30px;
    }
    
    .tutorial-slide-image {
        max-width: 280px;
    }
    
    .tutorial-swiper-prev,
    .tutorial-swiper-next {
        width: 32px;
        height: 32px;
    }
    
    .tutorial-slide-ok-btn {
        padding: 10px 40px;
        font-size: 15px;
    }
    
    /* SP版スライド画像のみ表示 */
    .tutorial-slide-pc {
        display: none;
    }
    
    .tutorial-slide-sp {
        display: block;
    }

    /* SP版おすすめセクション内の記事表示件数制御（SP版：5件表示） */
    #recommendedSection .cardbox-content-inner > .markeritem:nth-child(n+6) {
        display: none;
    }
}

/* テスト記事モーダル内のマーカースタイル */
#tutorialArticleTestModal .markerblock .temp-text {
    overflow-wrap: anywhere;
    color: transparent;
    opacity: 0;
}

/* ===== Snackbar スタイル ===== */
.tutorial-snackbar {
    position: fixed;
    top: 164px;
    left: 50%;
    transform: translateX(-50%);
    /* PC版デザイン */
    width: 320px;
    height: 42px;
    padding: 0;
    gap: 8px;
    background-color: var(--Semantic-State-Success-Light, #D9F0EF);
    border: 1px solid var(--Semantic-State-Success-Main, #009E96);
    border-radius: 4px;
    color: var(--Semantic-State-Success-Main, #009E96);
    font-size: 16px;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 1.12px;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tutorial-snackbar-hidden {
    opacity: 0;
    visibility: hidden;
}

.tutorial-snackbar-show {
    opacity: 1;
    visibility: visible;
}

#tutorialSnackbarMessage {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

@media screen and (max-width: 842px) {
    .tutorial-snackbar {
        /* SP版デザイン */
        width: 320px;
        height: 40px;
        top: 118px;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--Semantic-State-Success-Light, #D9F0EF);
        border: 1px solid var(--Semantic-State-Success-Main, #009E96);
        padding: 0;
        gap: 8px;
        font-size: 15px;
        letter-spacing: 1.05px;
    }
}

/* Lottieアニメーションコンテナ */
#tutorialAnimation {
    width: 100%;
    max-width: 1100px;
    max-height: 390px;
    border-radius: 8px;
    margin-top: 32px;
}

@media screen and (max-width: 842px) {
    #tutorialAnimation {
        margin-top: 24px;
        max-height: 412px;
        min-height: 392px;
        height: 100%;
    }
}


@media screen and (min-width: 843px) {
    #tutorialModalHelpText{
        width: 375px;
    }
    #tutorialCompleteText{
        width: 375px;
    }
}

#tutorialModalHelpText{
    min-width: 246px;
}
#tutorialCompleteText{
    min-width: 246px;
}
#tutorialTestShowLottieModal{
    font-weight: 400; 
    font-size: 14px;
    letter-spacing: 0.98px;
    color: #353131; 
    text-decoration: underline; 
    cursor: pointer;
}
.markerSaveGifImg{
    margin-top: 32px;
}

/* 「保存」テキストの下線スタイル */
#markerSaveModalTrigger {
    text-decoration: underline;
    text-decoration-style: solid;
    text-underline-offset: 15%;
    text-decoration-thickness: 0%;
    text-decoration-skip-ink: auto;
}

#markerSaveGifContainer{
    margin-top: 32px;
}

#markerSaveGifImg{
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.tutorial-modal-wrapper{
    position: relative;
    z-index: 10000;
    padding: 20px;
    max-width: 1140px;
}

@media screen and (min-width: 843px) {
    .tutorial-modal-wrapper{
        width: 100%;
    }
}

@media screen and (max-width: 842px) {
    #tutorialTestShowLottieModal{
        font-weight: 400; 
        letter-spacing: 0.84px;
        font-size: 12px; 
        color: #353131; 
    }

    #markerSaveGifContainer{
        margin-top: 24px;
    }

    #markerSaveGifImg{
        height:320px;
        margin-top: 24px;
    }
}

/* 非活性制御用 */
.username.disabled-link {
  opacity: 1;
}

/* IE/Edge Legacy のパスワード入力欄に表示される独自の目玉アイコンを非表示にする */
input[type="password"]::-ms-reveal {
  display: none;
}

/* チュートリアルテスト記事: markerbox内の絶対配置子要素（markerblock）がcontentareaの
   scrollHeightに影響しないようにレイアウトを封じ込める。
   overflow:hiddenと異なり視覚的クリップは発生しないため、全行のマーカーが正常に表示される。 */
#tutorialTestArticleContainer .markerbox {
    contain: layout;
}