/* === blockobj-default.css === */
/* ブロックオブジェクト用デフォルトCSSテンプレート */
/* CSSエディター新規作成時の初期テンプレート */

/* ===== 基本的なブロック位置制御 ===== */
.block-align-left, .hero-align-left {
    margin-left: 0;
    margin-right: auto;
    width: fit-content;
    max-width: 70%;
}

.block-align-center, .hero-align-center {
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    max-width: 90%;
}

.block-align-right, .hero-align-right {
    margin-left: auto;
    margin-right: 0;
    width: fit-content;
    max-width: 70%;
}

/* ===== カスタムブロック - ヒーロー ===== */
.block-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 8px;
    margin: 20px 0;
}

.block-hero h1,
.block-hero h2,
.block-hero h3,
.block-hero h4,
.block-hero h5,
.block-hero h6 {
    border: none;
    color: white;
    margin-bottom: 0.3em;
}

/* ===== カスタムブロック - カラム ===== */
.block-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.block-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== カスタムブロック - アラート ===== */
.block-alert {
    padding: 16px;
    border-radius: 6px;
    margin: 20px 0;
}

.block-alert.info {
    background: #e7f3ff;
    border-left: 4px solid #0969da;
    color: #0550ae;
}

.block-alert.warning {
    background: #fff8e1;
    border-left: 4px solid #ff9800;
    color: #e65100;
}

.block-alert.success {
    background: #e8f5e8;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

.block-alert.danger {
    background: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
}

/* ===== カスタムブロック - iframe ===== */
.block-iframe {
    margin: 20px 0;
    width: 100%;
}

.block-iframe iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

/* ===== カスタムブロック - ヘッダー ===== */
.block-header {
    background: transparent;
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
    padding: 40px 20px;
    margin: 20px 0;
}

.block-header h1 {
    margin-bottom: 0.5em;
    color: #2d3748;
    font-weight: 700;
}

.block-header nav {
    margin-top: 1em;
}

.block-header nav a {
    display: inline-block;
    margin-right: 1.5em;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.block-header nav a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.block-header nav a:hover {
    color: #2d3748;
    transform: translateY(-2px);
}

.block-header nav a:hover::after {
    width: 100%;
}

/* ヘッダー内のすべてのリンク（navタグなしでも適用） */
.block-header a {
    display: inline-block;
    /* margin-right: 1.5em; */
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.block-header a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.block-header a:hover {
    color: #2d3748;
    transform: translateY(-2px);
}

.block-header a:hover::after {
    width: 100%;
}

/* ===== カスタムブロック - フッター ===== */
.block-footer {
    background: transparent;
    color: #4a5568;
    border-top: 1px solid #e2e8f0;
    padding: 40px 20px;
    margin: 20px 0;
}

.block-footer h1,
.block-footer h2,
.block-footer h3,
.block-footer strong {
    color: #2d3748;
    font-weight: 600;
}

.block-footer a {
    color: #718096;
    text-decoration: none;
    font-weight: 500;
    padding: 2px 0;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    border-bottom: 1px solid transparent;
}

.block-footer a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.4s ease;
    z-index: -1;
}

.block-footer a:hover::before {
    left: 100%;
}

.block-footer a:hover {
    color: #2d3748;
    border-bottom-color: #667eea;
    transform: scale(1.05);
}

/* より強い詳細度でフッターリンクを強制適用 */
.block-footer a:not(.no-style) {
    color: #718096;
    text-decoration: none;
}

/* ===== カスタムブロック - スペース ===== */
.block-space {
    display: block;
    width: 100%;
    background: transparent;
}

.block-center {
    text-align: center;
}

.block-center img {
    max-width: 100%;
    height: auto;
}

/* ===== カスタムブロック - 横並びレイアウト ===== */
.block-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 20px 0;
    gap: 20px; /* デフォルト値、インラインスタイルで上書き可能 */
}

.block-row-item {
    flex: 1;
    min-width: 150px; /* 最小幅を設定してレスポンシブに */
}

.block-row-item img {
    width: 100%;
    height: auto;
    display: block;
}

.block-row-item p {
    margin: 0;
}

/* レスポンシブ対応: 小さい画面では縦並びに */
@media (max-width: 768px) {
    .block-row {
        flex-direction: column;
    }

    .block-row-item {
        width: 100%;
        min-width: unset;
    }
}

/* ===== 基本的なタイポグラフィ ===== */
h1, h2, h3, h4, h5, h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.3;
}

p {
    margin-bottom: 1em;
    line-height: 1.7;
}

/* ===== リスト ===== */
ul, ol {
    margin: 1em 0;
    padding-left: 2em;
}

li {
    margin-bottom: 0.3em;
}

/* ===== 画像 ===== */
img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ===== 水平線 ===== */
hr {
    margin: 2em 0;
    border: none;
    border-top: 1px solid #e9ecef;
    height: 0;
    opacity: 1;
}

/* ===== リンク ===== */
a {
    color: #0969da;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* PDFリンク */
.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #d63384;
    font-weight: 500;
    padding: 4px 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pdf-link:hover {
    background: #e9ecef;
    border-color: #d63384;
    text-decoration: none;
}

/* ===== コード ===== */
code {
    background: #f6f8fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 85%;
    font-family: 'Monaco', 'Menlo', monospace;
}

pre {
    background: #f6f8fa;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1em 0;
}

pre code {
    background: none;
    padding: 0;
}

/* ===== レスポンシブ body パディング ===== */
@media (max-width: 768px) {
    body.preview-content { padding: 30px 24px; }
}
@media (max-width: 375px) {
    body.preview-content { padding: 20px 16px; }
}

/* === sites.layout_css (グローバル) === */
/* モダンテンプレートCSS */
html {
    background-color: #f0f0f0; /* 外側の背景色 */
    }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", Arial, "メイリオ", Meiryo, sans-serif;
    background-color: white;
    color: #222222;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    line-height: 2;
}

h1, h2{
    border-bottom: 1px solid #d0d0e5;
    color:#242;
}

h3,h4{
    color:#242;
}


.topImgWrap > img{
    padding:40px;
    width:270px;
}

.block-space {
    margin: 10px 0;
    background-color: transparent;
}
a {
  color:#444;
}


@media (max-width: 820px) {
    body{
        padding: 8px !important;
    }
    .block-align-left, .hero-align-left {
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 10px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .block-align-center{
        width: auto !important;
        max-width: 100% !important;
        background: #f5f5f5;
        padding: 10px !important;
    }
    .block-row {
        gap: 10px !important;
    }
    .block-header a{
        margin-right: 0;
    }

    img{
      display: block;
      margin: 0 auto;
    }
    
    h2, h3 {
      width: fit-content !important;
    }

    .block-iframe {
        margin-bottom: 5px;
        height: auto;
    }
    .block-iframe img{
        width:760px; 
    }

    .block-align-center a {
        display: block;
        padding: 12px 10px;
        border-bottom: 1px solid #ddd;
        text-decoration: none;
        color: #333;
        font-size: 16px;
    }

    .block-align-center a:last-child {
        border-bottom: none;
    }

    .block-align-center a:active {
        background: #f0f0f0;
    }
    .block-space {
        background-color: transparent;
    }
    .block-row-item {
        display: block !important;
    }
    .block-row-item img {
        width: 100% !important;
        height: auto !important;
    }
    .midashi {
        width: 100% !important;
        height: auto !important;
    }
    .kaikanName{
        width: 100px;
    }
    /* ===== カスタムブロック - ヒーロー ===== */
    .block-hero {
      width: fit-content !important;
      /*width: 100% !important;*/
    }
}

