/* Base Styles */

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, 'Yu Gothic', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.site-main {
    background-color: #f9f9f9;
}

a {
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.4;
    color: #333;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Section Title Style (共通タイトルスタイル) */
.section-title {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: bold;
    letter-spacing: 0.05em;
}

p {
    margin-bottom: 1em;
}

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto 20px;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}


.b-768 {
    display: none;
}

@media (max-width: 768px) {
    .b-768 {
        display: block;
    }
}

/* ===================================================================
   Demo Notice Bar — ポートフォリオ用架空サイト通知
=================================================================== */
.demo-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(20, 20, 20, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    text-align: center;
}

.demo-notice__text {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.04em;
}

.demo-notice__text strong {
    color: #fff;
    font-weight: 600;
}

.demo-notice__icon {
    display: inline-block;
    margin-right: 6px;
    font-style: normal;
    opacity: 0.7;
}

/* ===================================================================
   Back to Portfolio — 各 work ページからのフローティングリンク
=================================================================== */
.back-to-portfolio {
    position: fixed;
    bottom: 56px;   /* demo-notice バー（約44px）の上に配置 */
    right: 20px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 16px;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.back-to-portfolio:hover {
    background: rgba(20, 20, 20, 0.85);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    transform: translateX(3px);
}

.back-to-portfolio svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    order: 1;   /* 矢印を右側に */
}

.back-to-portfolio span {
    order: 0;
}

.back-to-portfolio:hover svg {
    transform: translateX(2px);
}

@media (max-width: 767px) {
    .back-to-portfolio span { display: none; }
    .back-to-portfolio {
        padding: 10px;
        bottom: 52px;
        right: 14px;
    }
}

