﻿/* ▼▼▼▼▼ myホームページクリエイター専用スタイル（改） ▼▼▼▼▼ */

/* ページのメインコンテナ */
#hp-creator-container {
    max-width: 1200px;
    margin: -30px auto 100px auto;
    padding: 3rem 4rem;
    background-color: #fff;
    border: 1px solid #e9ecef;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    border-radius: 12px;
}

/* ヘッダー部分 */
.tool-header {
    text-align: center;
    margin-bottom: 4rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}
.tool-header h2 {
    font-size: 2.8rem;
    margin: 0 0 1rem 0;
    font-weight: 800;
    color: var(--base-inverse-color);
}
.tool-header p {
    font-size: 1.1rem;
    color: #6c757d;
}

/* テンプレート一覧のグリッドレイアウト */
.template-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* テンプレートカードのスタイル */
.template-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    text-decoration: none;
    color: var(--base-inverse-color);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* ★動き（アニメーション）のための初期設定 */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn-up 0.6s ease forwards;
}

/* ★カードが順番に表示されるアニメーション遅延 */
.template-card:nth-child(2) { animation-delay: 0.1s; }
.template-card:nth-child(3) { animation-delay: 0.2s; }
.template-card:nth-child(4) { animation-delay: 0.3s; }
.template-card:nth-child(5) { animation-delay: 0.4s; }
.template-card:nth-child(6) { animation-delay: 0.5s; }
.template-card:nth-child(7) { animation-delay: 0.6s; } /* 7個目用に追加 */


/* ★カードをふわっと表示させるアニメーション定義 */
@keyframes fadeIn-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ★マウスホバー時の動き */
.template-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* サムネイル画像エリア */
.template-card .thumbnail {
    width: 100%;
    padding-top: 99%; /* 画像の縦横比 (高さ/幅) */
    background-size: cover;
    background-position: top center;
    border-bottom: 1px solid #e9ecef;
    transition: transform 0.4s ease;
}

/* ★ホバー時に画像を少しズームさせる */
.template-card:hover .thumbnail {
    transform: scale(1.05);
}

/* 情報エリア（タイトルや説明文） */
.template-card .info {
    padding: 1.2rem 1.5rem; /* ★変更点：上下の余白を少し詰めました */
}
.template-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem; /* ★変更点：少しだけ小さくしました */
    font-weight: 700;
}
.template-card p {
    font-size: 0.85rem; /* ★変更点：少しだけ小さくしました */
    color: #555;
    margin: 0 0 1.2rem 0; /* ★変更点：ボタンとの余白を少し詰めました */
    min-height: 45px; /* ★変更点：説明文エリアの高さを少し調整しました */
    line-height: 1.8;
}

/* ボタンのフレックスコンテナ */
.template-card .buttons {
    display: flex;
    gap: 1rem;
}

/* ボタン共通スタイル */
.btn {
    flex: 1;
    display: inline-block;
    padding: 0.7rem 1rem; /* ★変更点：ボタンの上下の余白を少し詰めました */
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem; /* ★変更点：ボタンの文字サイズを調整 */
}
.btn i {
    margin-right: 0.5em;
}

/* デモボタンのスタイル */
.btn-demo {
    background-color: #3498db;
    color: #fff;
}
.btn-demo:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.4);
}

/* ダウンロードボタンのスタイル */
.btn-download {
    background-color: #e67e22;
    color: #fff;
}
.btn-download:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.4);
}

/* レスポンシブ対応 */
@media screen and (max-width: 700px) {
    #hp-creator-container {
        padding: 2rem 1.5rem;
    }
    .tool-header h2 {
        font-size: 2rem;
    }
}
/* ▲▲▲▲▲ myホームページクリエイター専用スタイル（改） ▲▲▲▲▲ */

/* ▼▼▼▼▼ よくある質問ページ専用スタイル ▼▼▼▼▼ */
#faq-container {
    max-width: 960px;
    margin: -30px auto 100px auto;
    padding: 3rem 4rem;
    background-color: #fff;
    border: 1px solid #e9ecef;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    border-radius: 12px;
}
.faq-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}
.faq-header h2 {
    font-size: 2.4rem;
    margin: 0 0 1rem 0;
}
.faq-header .lead {
    font-size: 1rem;
    line-height: 1.9;
    color: #555;
}

/* ★セクション見出しのスタイル */
.faq-section-title {
    font-size: 1.6rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 5px solid var(--primary-color);
}
.faq-section-title:first-of-type {
    margin-top: 0;
}

.faq-list {
    margin: 0;
    padding: 0;
}
.faq-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 2rem 0;
}
.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: flex-start;
    line-height: 1.7;
}
.faq-question .q-icon {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-right: 1rem;
    font-weight: bold;
}

.faq-answer {
    margin-top: 1.5rem;
    padding-left: 2.8rem;
    font-size: 0.95rem;
    line-height: 2.2;
    color: #333;
}
.faq-answer .a-icon {
    font-size: 1.3rem;
    color: #e67e22;
    margin-right: 1rem;
    font-weight: bold;
    float: left;
}
.faq-answer p, .faq-answer ul {
    margin: 0 0 1em 0;
    overflow: hidden;
}
.faq-answer p:last-child, .faq-answer ul:last-child {
    margin-bottom: 0;
}
.faq-answer ul {
    padding-left: 1.5em;
}
.faq-answer code {
    background-color: #f0f2f5;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}
.faq-answer a {
    font-weight: bold;
    text-decoration: underline;
}

/* ★誘導を強化するためのボタンスタイル */
.cta-button {
    display: inline-block;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    color: #fff;
    background-color: #e67e22;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 1rem;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    opacity: 1;
}
.cta-button i {
    margin-right: 0.5em;
}


@media screen and (max-width: 700px) {
    #faq-container { padding: 2rem 1.5rem; }
    .faq-header h2 { font-size: 1.8rem; }
    .faq-question { font-size: 1.1rem; }
    .faq-answer { padding-left: 0; margin-top: 1rem; }
    .faq-answer .a-icon { float: none; display: block; margin-bottom: 0.5rem; }
}
/* ▲▲▲▲▲ よくある質問ページ専用スタイル ▲▲▲▲▲ */

/* ▼▼▼▼▼ 利用規約ページ専用スタイル ▼▼▼▼▼ */
#rule2-container {
    max-width: 960px;
    margin: -30px auto 100px auto;
    padding: 3rem 4rem;
    background-color: #fff;
    border: 1px solid #e9ecef;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    border-radius: 12px;
}
.rule2-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}
.rule2-header h2 {
    font-size: 2.4rem;
    margin: 0 0 1rem 0;
}
.rule2-header .lead {
    font-size: 1rem;
    line-height: 1.9;
    color: #555;
}
.warning-box {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    border-left: 5px solid #f59e0b;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
    font-size: 0.9rem;
    line-height: 1.8;
}
.warning-box strong {
    color: #b45309;
}

.rule2-article {
    margin-bottom: 2.5rem;
}
.rule2-article:last-child {
    margin-bottom: 0;
}
.rule2-article h3 {
    font-size: 1.4rem;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
}
.rule2-article h3 i {
    font-size: 1.2rem;
    margin-right: 1rem;
    color: var(--primary-color);
    background-color: #f0fdfd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.rule2-article p {
    font-size: 0.95rem;
    line-height: 2.2;
    padding-left: 0.5rem;
}

@media screen and (max-width: 700px) {
    #rule2-container {
        padding: 2rem 1.5rem;
    }
    .rule2-header h2 {
        font-size: 1.8rem;
    }
}
/* ▲▲▲▲▲ 利用規約ページ専用スタイル ▲▲▲▲▲ */

/* ▼▼▼▼▼ 設置ガイドページ専用スタイル ▼▼▼▼▼ */
.step-number-box {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    text-align: center;
}
.step-number-box .step-label {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary-color);
}
.step-number-box .step-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    font-family: 'Oswald', sans-serif;
}
.step-content {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    width: 100%;
    border: 1px solid #eee;
}
.step-content h3 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--base-inverse-color);
}
.step-content h3 i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}
.step-content p {
    line-height: 2;
    margin: 0 0 1rem 0;
}
.step-content p:last-child {
    margin-bottom: 0;
}
.code-block {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 1rem 0;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: 'Consolas', 'Courier New', monospace;
}
.code-block strong {
    color: #f7b731;
}
.point-list {
    list-style-type: none;
    padding-left: 0;
    margin: 1rem 0 0 0;
}
.point-list li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.8rem;
}
.point-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #27ae60;
    position: absolute;
    left: 0;
    top: 0.2em;
}
.cta-button {
    display: inline-block;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    color: #fff;
    background-color: #e67e22;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 1rem;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
@media screen and (max-width: 700px) {
    .step-card { flex-direction: column; padding-left: 0; }
    .step-number-box { position: static; width: auto; display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 1rem; }
    .step-number-box .step-number { font-size: 2.5rem; }
    .step-content { padding: 1.2rem; }
}
/* ▲▲▲▲▲ 設置ガイドページ専用スタイル ▲▲▲▲▲ */