/* グローバルスタイル */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Koburina Gothic W3 JIS2004",
        YuGothic,
        "Yu Gothic",
        "ヒラギノ角ゴ Pro W3",
        "Hiragino Kaku Gothic ProN",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}


body {
    line-height: 1.6;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f3f4f6;
    margin: 0;
    color: #333;
}

.auth_body {
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 100px;
    background-color: #f3f4f6;
    margin: 0 0 100px 0;
    color: #333;
}

/* ヘッダーのスタイル */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: rgb(51, 51, 51);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.2em;
    font-weight: bold;
}

.nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav a {
    color: rgb(51, 51, 51);
    text-decoration: none;
    font-size: 1em;
}

.nav a:hover {
    text-decoration: underline;
}

/* ハンバーガーメニューアイコン */
.menu-icon {
    font-size: 1.5em;
    display: none;
    cursor: pointer;
}

/* ドロップダウンメニュー */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 60px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.695);
    text-align: center;
}

.dropdown-menu ul {
    list-style: none;
    padding: 0;
}

.dropdown-menu ul li {
    padding: 15px 0;
    border-bottom: 1px solid #ffffff33;
}

.dropdown-menu ul li a {
    color: rgb(51, 51, 51);
    text-decoration: none;
    font-size: 1.1em;
}

.dropdown-menu ul li a:hover {
    text-decoration: underline;
}

/* 斜めボーダー背景 */
.diagonal-striped-background {
    background: repeating-linear-gradient(45deg,
            /* 45度の斜め方向 */
            #18548F,
            /* 最初の色 */
            #18548F 40px,
            /* 最初の色の範囲 */
            #f098b0 40px,
            /* 2番目の色の開始位置 */
            #f098b0 80px,
            /* 2番目の色の範囲 */
            #DEDCDA 80px,
            /* 4番目の色の開始位置 */
            #DEDCDA 120px
            /* 4番目の色の範囲 */
        );
    height: 25px;
    /* 背景全体をカバー */
    width: 100%;
    margin: 0 0 10px 0;
    /* animation: slide 5s linear infinite;
    /* 横にスライドするアニメーション */
}

/* 背景スライドアニメーション */
@keyframes slide {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 120px 0;
        /* 繰り返しの幅と一致させる */
    }
}



.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2em;
}

input,
textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    line-height: 1.2em;
}

main {
    padding-bottom: 100px;
    margin-bottom: 100px;
}

/* メインコンテンツ */
.main-content {
    max-width: 800px;
    margin: 40px auto 100px;
    padding: 20px;
    padding-top: 100px;
    text-align: center;
    margin-top: 50px;
}

.intro-section,
.how-to-section,
.cta-section {
    margin-bottom: 40px;
    text-align: center;
}

.intro-section h2,
.how-to-section h2,
.cta-section h2 {
    font-size: 2em;
    color: rgb(51, 51, 51);
    margin-bottom: 20px;
}

.intro-section p,
.how-to-section ol,
.cta-section p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.intro-image,
.howto-image {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* リストスタイル */
.how-to-section ol {
    list-style-type: decimal;
    margin: 20px 0;
    padding-left: 40px;
    text-align: left;
}

.how-to-section ol li {
    margin: 10px 0;
}

/* Call to Action ボタン */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #228b22;
    color: #fff;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #006400;
}

/* フッター */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

.footer p {
    margin: 0;
}



.auth-container {
    background: #ffffff;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.auth-container h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: rgb(51, 51, 51);
}

.auth-container p {
    font-size: 0.9em;
    margin-bottom: 30px;
    color: #666;
}

.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    border-color: #18548F;
}

button {
    padding: 12px;
    font-size: 1em;
    background-color: #18548F;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #143d6b;
}

.auth-footer {
    margin-top: 20px;
}

.auth-footer a {
    color: #18548F;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* auth-style.css */
select {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
    margin-top: 10px;
}

select:focus {
    border-color: #18548F;
}

/* <option>の高さを少し高くするためにline-heightを設定 */
option {
    padding: 8px;
    /* 余白を追加 */
    line-height: 1.5;
    /* 行の高さを調整 */
}

/* プランセクションのスタイル */
.plan-selection {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.plan {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f8f8f8;
}

.plan h3 {
    margin-bottom: 10px;
    color: rgb(51, 51, 51);
}

.plan p {
    margin-bottom: 20px;
    color: #666;
}

/* トライアルボタン */
.trial-btn {
    background-color: #228B22;
    color: #fff;
    padding: 12px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.trial-btn:hover {
    background-color: #1a6b1a;
}

/* 有料登録ボタン */
.subscribe-btn {
    background-color: #18548F;
    color: #fff;
    padding: 12px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
    background-color: #143d6b;
}

.cancel-button {
    background-color: #ac111b;
    color: #fff;
    padding: 12px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* ダッシュボードコンテナ */
.dashboard-container {
    max-width: 800px;
    margin: 100px auto;
    /* ヘッダー分の余白を確保 */
    padding: 20px;
    text-align: center;
}

.content-box {
    background-color: #DEDCDA;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content-box h2 {
    color: #18548F;
    margin-bottom: 10px;
}

/* ボタンスタイル */
.button {
    display: inline-block;
    padding: 12px 30px;
    margin-top: 20px;
    font-size: 1.1em;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.premium-button {
    background-color: #7AAACB;
    color: white;
}

.premium-button:hover {
    background-color: #18548F;
}

.subscribe-button {
    background-color: #f098b0;
    color: white;
}

.subscribe-button:hover {
    background-color: #d08090;
}

.flash-messages {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    width: 300px;
}

.alert {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    color: #fff;
}

.alert-success {
    background-color: #4CAF50;
}

.alert-error {
    background-color: #f44336;
}

.text_kiyaku {
    color: #333;
    text-align: left;
}

h5 {
    color: #333;
}

.beforefooter {
    display: block;
    margin: 10px auto;
    height: 50px;
}

/* フッターのスタイル */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 50px;
}

footer a {
    color: #ffffff;
}

.text_kiyaku img {
    vertical-align: bottom;
}

.flash_content {
    margin: 20px auto;
    color: #f098b0;
}

.contact label {
    text-align: left;
    display: block;
}

.text_kiyaku table {
    display: block;
    text-align: left;
    border-collapse: collapse;
    width: 98%;
}

.text_kiyaku table .td_left {
    font-weight: bold;
    width: 30%;
    padding: 10px;
    border: 1px solid #333;
}

.text_kiyaku table .td_right {
    width: 67%;
    padding: 10px;
    border: 1px solid #333;
}

.text_kiyaku table td {
    padding: 10px;
    border: 1px solid #333;
}

.text_kiyaku table img {
    vertical-align: bottom;
}

.content-box table {
    display: block;
    text-align: left;
    border-collapse: collapse;
    border: 1px solid #333;
    background-color: #ffffff;
    width: 98%;
}

.content-box table th {
    font-weight: bold;
    border: 1px solid #333;
    padding: 10px;

}

.content-box table td {
    border: 1px solid #333;
    padding: 10px;

}

.margin {
    margin-top: 20px;
}

.premium {
    font-family: Arial, sans-serif;
    padding: 10px;
    padding-top: 120px;
    line-height: 1.6;
    max-width: 600px;
    margin: auto;
}

.top_content {
    max-width: 600px;
    margin: 10px auto;
    text-align: center;
    padding: 10px auto;
}

/* 画面全体を中央揃え */
.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-container_a {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
}

/* ボタンのスタイル */
.generate-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.generate-btn:hover {
    background-color: #218838;
}

h1 {
    font-size: 1.8em;
    text-align: center;
    color: #333;
}

label {
    font-weight: bold;
    display: block;
    margin-top: 15px;
}

input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

textarea {
    resize: vertical;
    min-height: 200px;
}

input[type="submit"] {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 10px;
}

input[type="submit"]:hover {
    background-color: #45a049;
}

ul {
    list-style-type: none;
    padding: 0;
}

li.error {
    color: red;
}

li.success {
    color: green;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid lightgray;
    border-top: 5px solid blue;
    border-radius: 50%;
    animation: spinneranim 1s linear infinite;
    position: fixed;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    /* 中央揃え */
    z-index: 1000;
    /* スピナーが他の要素の上に表示されるように */
}

/* スピナー内のテキストを中央に配置し、点滅させる */
.spinner-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner-text {
    margin-top: 10px;
    /* スピナーの下に余白 */
    font-size: 14px;
    color: black;
    position: fixed;
    top: 50%;
    left: 45%;
    animation: blink 1s steps(1, start) infinite;
    /* 点滅アニメーション */
}

/* CSS ファイル */
.hidden {
    display: none;
}

.visible {
    display: block;
}


/* スピナー用の@keyframesアニメーション */
@keyframes spinneranim {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.row {
    max-width: 900px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-row {
    max-width: 900px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.g-row {
    max-width: 900px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title_top {
    max-width: 900px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.row_top {
    max-width: 900px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.select-container {
    width: 20%;
    height: auto;
    display: flex;
    margin: 5px;
    background-color: #f9f9f9;
    text-align: left;
}

.select-container_d {
    width: 20%;
    height: auto;
    display: flex;
    margin: 5px;
    background-color: #f9f9f9;
    text-align: left;
}

.select-container_top {
    width: 20%;
    height: auto;
    display: flex;
    margin: 5px;
    background-color: #f9f9f9;
    text-align: center;
    align-items: center;
}

.title_left {
    width: auto;
    height: auto;
    display: flex;
    align-items: right;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.title_right {
    width: 65%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.icon-container_top {
    width: 20%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.icon-container {
    width: 20%;
    height: auto;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.theme-container {
    width: 40%;
    height: auto;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f9f9f9;
    padding: 0;
}

.theme-container img {
    height: 300px;
    padding: 0;
    max-width: 95%;
}

.theme {
    object-fit: contain;
}

.uml-container img {
    width: 90%;
    height: 90px;
    margin: 10px 0;
    padding: 5px;
}

.uml-container {
    object-fit: contain;
    max-width: 95%;
}

.icon {
    object-fit: contain;
    max-width: 95%;
    max-height: 80px;
}


.dropdown {
    line-height: 1.5em;
    padding: 5px;
    width: 94%;
}

.input-c {
    line-height: 1.5em;
    padding: 5px 0;
}

.input-c_d {
    line-height: 1.5em;
    padding: 5px 0;
    width: 90%;
}

.input-title {
    line-height: 1.5em;
    padding: 5px 0;
}

p {
    text-align: center;
    margin: 5px auto;
}

option {
    line-height: 1.5em;
}

#btn-container {
    text-align: center;
    margin: 5px auto;
}

/* Call to Action ボタン */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #228b22;
    color: #fff;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #006400;
}

.top_anm {
    max-width: 900px;
}

#outputImage {
    max-width: 98%;
}

div#imageContainer img {
    max-width: 95%;
}

/* CSSスタイル */
#inputBox {
    font-size: 24px;
    min-height: 200px;
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
}

#submitButton {
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ボタンが「クリック」されたようなアニメーション */
.clicked-animation {
    transform: scale(0.95);
    /* 押し込まれるように縮小 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    /* 少し影を追加 */
}

#imageContainer {
    opacity: 0;
    transition: opacity 1.5s ease;
    margin-top: 20px;
}


/* メディアクエリ（スマホ向け設定） */
@media (max-width: 768px) {
    .header {
        height: 64px;
    }

    .nav ul {
        display: none;
    }

    .menu-icon {
        display: block;
    }

    .dropdown-menu {
        position: absolute;
        top: 60px;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.695);
        text-align: center;
    }

    .dropdown-menu.show {
        display: block;
    }

    .main-content {
        max-width: 98%;
        margin: 40px auto;
        padding: 20px;
        padding-top: 80px;
        text-align: center;
        margin-top: 50px;
    }

    .row {
        width: 48%;
        display: inline-block;
        text-align: center;
        gap: 10px;
        margin: 10px auto;
    }

    .theme-row {
        width: 98%;
        display: inline-block;
        text-align: center;
        gap: 10px;
        margin: 10px auto;
    }

    .g-row {
        width: 98%;
        display: inline-block;
        text-align: center;
        gap: 10px;
        margin: 10px auto;
    }

    .theme-container {
        width: 98%;
    }

    .row_top {
        display: none;
    }

    .title_top {
        width: 98%;
        display: inline-block;
        text-align: center;
        gap: 10px;
        margin: 10px auto;
    }

    .select-container_d {
        width: 90%;
        height: auto;
        display: inline-block;
        margin: 5px auto;
        background-color: #f9f9f9;
        text-align: center;
    }

    .select-container {
        width: 90%;
        height: auto;
        display: inline-block;
        margin: 5px auto;
        background-color: #f9f9f9;
        text-align: center;
    }


    .icon-container {
        width: 90%;
        height: 100px;
        border: 1px solid #ddd;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-radius: 8px;
        background-color: #f9f9f9;
        margin: 0 auto;
    }

    .input-c {
        margin: 0 auto;
    }

    .input-title {
        width: 90%;
        margin: 0 auto;
    }

    .title_left {
        width: 90%;
        text-align: center;
    }

    .title_right {
        width: 90%;
        text-align: center;
        margin: 10px auto;
    }
}