/*
Theme Name: Kanadel Design
Description: カナデルデザインのオーダーメイドホームページ制作会社のWordPressテーマ
Version: 1.0
Author: Murata Ken
Text Domain: kanadel-design
*/

/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ヘッダー */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    height: 150px;
}

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

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF69B4, #FFB6C1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.kanadel-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-image {
    height: 150px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
}

.logo-link:hover .logo-image {
    transform: scale(1.05);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #FF69B4, #8B4513);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.about-btn {
    background-color: #FFFACD;
    color: #333333;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-btn:hover {
    background-color: #F0E68C;
    transform: translateY(-2px);
}

.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.contact-btn,
.home-btn {
    background-color: #FFB6C1;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.contact-btn:hover,
.home-btn:hover {
    background-color: #FF69B4;
    transform: translateY(-2px);
    color: #ffffff;
}

/* メインコンテンツ */
main {
    margin-top: 120px;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
}

.content-wrapper {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

/* 画像セクション */
.image-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.framed-image {
    position: relative;
    width: 800px;
    height: 500px;
    background: linear-gradient(45deg, #FF69B4, #FFB6C1, #90EE90, #87CEEB, #FFFACD);
    background-size: 300% 300%;
    animation: gradientShift 6s ease-in-out infinite, pulse 4s ease-in-out infinite, glow 3s ease-in-out infinite;
    border-radius: 50% / 50%;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 
                0 0 60px rgba(255, 105, 180, 0.3),
                0 0 100px rgba(144, 238, 144, 0.2);
    transform: scale(1);
    transition: all 0.3s ease;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50% / 50%;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.1);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50% / 50%;
    filter: contrast(1.1) brightness(1.05) saturate(1.2);
    transition: all 0.3s ease;
}

.framed-image:hover .image-container img {
    filter: contrast(1.15) brightness(1.1) saturate(1.3);
    transform: scale(1.02);
}

.book-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.book {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: rotate(-5deg);
}

.book-cover {
    text-align: center;
}

.book-kanadel {
    font-size: 32px;
    margin-bottom: 8px;
}

.book-title {
    font-size: 12px;
    font-weight: bold;
    color: #333333;
    line-height: 1.3;
}

.speech-bubble {
    background-color: #FFFACD;
    padding: 12px 16px;
    border-radius: 20px;
    position: relative;
    font-size: 12px;
    font-weight: 500;
    color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.speech-bubble .arrow {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #FFFACD;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* テキストセクション */
.text-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    font-family: 'Noto Sans JP', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'HGS明朝E', 'MS P明朝', 'MS Mincho', serif;
}

.main-title {
    font-size: 32px;
    font-weight: 600;
    color: #333333;
    line-height: 1.4;
    margin-bottom: 20px;
    font-family: 'Playfair Display', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'HGS明朝E', 'MS P明朝', 'MS Mincho', serif;
}

.services {
    font-size: 24px;
    color: #8B4513;
    margin-bottom: 15px;
    font-family: 'Playfair Display', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'HGS明朝E', 'MS P明朝', 'MS Mincho', serif;
    font-weight: 500;
}

.description {
    font-size: 16px;
    color: #888888;
    line-height: 2.2;
    font-family: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'HGS明朝E', 'MS P明朝', 'MS Mincho', serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-align: left;
}



/* アニメーション定義 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 
                    0 0 60px rgba(255, 105, 180, 0.3),
                    0 0 100px rgba(144, 238, 144, 0.2);
    }
    50% {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 
                    0 0 80px rgba(255, 105, 180, 0.5),
                    0 0 120px rgba(144, 238, 144, 0.4);
    }
}

/* フッター */
footer {
    position: relative;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* フッター運営会社情報 */
.footer-company-info {
    text-align: center;
    margin-top: 20px;
}

.footer-company-info p {
    font-size: 14px;
    color: #333333;
    margin: 0;
}

.footer-company-info a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-company-info a:hover {
    color: #000000;
    text-decoration: underline;
}

.decorative-chevron {
    position: relative;
    width: 60px;
    height: 30px;
}

.chevron-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 20px solid;
}

.chevron-triangle.green {
    border-bottom-color: #90EE90;
    top: 0;
    left: 0;
}

.chevron-triangle.blue {
    border-bottom-color: #87CEEB;
    top: 5px;
    left: 5px;
}

.chevron-triangle.pink {
    border-bottom-color: #FFB6C1;
    top: 10px;
    left: 10px;
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #20B2AA;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top-btn:hover {
    background-color: #008B8B;
    transform: translateY(-3px);
}

.arrow-up {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid #ffffff;
}

/* レスポンシブデザイン */
@media (max-width: 1200px) {
    .content-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .image-section {
        order: 1;
    }
    
    .text-section {
        order: 2;
        text-align: center;
    }
    

    
    .framed-image {
        width: 650px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        height: 120px;
    }
    
    .logo-image {
        height: 80px;
        max-width: 120px;
    }
    
    main {
        margin-top: 150px;
    }
    
    .content-wrapper {
        padding: 150px 20px 20px;
    }
    
    .text-section {
        padding: 20px;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .services {
        font-size: 20px;
    }
    
    .description {
        font-size: 14px;
    }
    
    .framed-image {
        width: 500px;
        height: 320px;
    }
    
    .book-overlay {
        bottom: 10px;
        right: 10px;
    }
    
    .book {
        padding: 10px;
    }
    
    .book-title {
        font-size: 10px;
    }
    
    .speech-bubble {
        padding: 8px 12px;
        font-size: 10px;
    }
}

/* お問い合わせセクション */
.contact-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-title {
    font-size: 36px;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    color: #333333;
    text-align: center;
    margin-bottom: 10px;
}

.contact-subtitle {
    font-size: 16px;
    color: #666666;
    text-align: center;
    margin-bottom: 40px;
}

/* フォームスタイル */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 5px;
}

.form-group label:has(span) {
    color: #333333;
}

.form-group label span {
    color: #FF69B4;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 2px solid #FFFACD;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    background-color: #FFFACD;
    color: #333333;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFB6C1;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999999;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}



/* 送信ボタン */
.submit-btn {
    background-color: #FFB6C1;
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 20px auto 0;
    text-align: center;
}

.submit-btn:hover {
    background-color: #FF69B4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* お問い合わせセクションのレスポンシブ対応 */
@media (max-width: 768px) {
    .contact-container {
        padding: 20px;
        margin: 0 20px;
    }
    
    .contact-title {
        font-size: 28px;
    }
    
    .contact-subtitle {
        font-size: 14px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 15px;
        height: 100px;
    }
    
    .logo-image {
        height: 60px;
        max-width: 80px;
        object-fit: contain;
        object-position: center;
    }
    
    main {
        margin-top: 120px;
    }
    
    .contact-container {
        padding: 15px;
    }
    
    .contact-title {
        font-size: 24px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 13px;
    }
}

/* About Us モーダル */
.about-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #20B2AA;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 20px 40px 20px;
    transform: translateX(100%);
    transition: transform 0.5s ease;
}

.about-modal.active .modal-content {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
}

.close-btn:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

.profiles-container {
    max-width: 1000px;
    width: 100%;
    color: #ffffff;
    margin-top: 20px;
}

.profile-card {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.profile-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffffff;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
}

.profile-title {
    font-size: 16px;
    color: #e0f7fa;
    margin-bottom: 20px;
    font-weight: 500;
}

.profile-description {
    line-height: 1.8;
}

.profile-description p {
    margin-bottom: 15px;
    color: #ffffff;
}

.profile-link {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.profile-link:hover {
    color: #e0f7fa;
}

.clients-section {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.clients-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
    line-height: 1.4;
}

.clients-list {
    font-size: 16px;
    line-height: 1.8;
    color: #ffffff;
    text-align: center;
}

/* モーダルのレスポンシブ対応 */
@media (max-width: 768px) {
    .modal-content {
        padding: 60px 15px 20px 15px;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .profile-name {
        font-size: 20px;
    }
    
    .profile-title {
        font-size: 14px;
    }
    
    .clients-title {
        font-size: 18px;
    }
    
    .clients-list {
        font-size: 14px;
    }
    
    .close-btn {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .profile-card {
        padding: 20px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 18px;
    }
    
    .profile-title {
        font-size: 13px;
    }
    
    .clients-title {
        font-size: 16px;
    }
    
    .clients-list {
        font-size: 13px;
    }
}

/* ページテンプレート用スタイル */
.page-content,
.single-post {
    margin-top: 80px;
    padding: 40px;
}

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

.page-header,
.entry-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-title,
.entry-title {
    font-size: 36px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.entry-meta {
    color: #666666;
    font-size: 14px;
}

.entry-content,
.page-content {
    line-height: 1.8;
    color: #333333;
}

.entry-content h2,
.page-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333333;
    margin: 30px 0 20px 0;
    font-family: 'Playfair Display', serif;
}

.entry-content h3,
.page-content h3 {
    font-size: 24px;
    font-weight: 500;
    color: #333333;
    margin: 25px 0 15px 0;
}

.entry-content p,
.page-content p {
    margin-bottom: 20px;
}

.page-links {
    margin-top: 30px;
    text-align: center;
}

/* 管理者バーがある場合の調整 */
.admin-bar header {
    top: 32px;
}

.admin-bar main {
    margin-top: 112px;
}

.admin-bar .page-content,
.admin-bar .single-post {
    margin-top: 112px;
}

@media (max-width: 782px) {
    .admin-bar header {
        top: 46px;
    }
    
    .admin-bar main {
        margin-top: 166px;
    }
    
    .admin-bar .page-content,
    .admin-bar .single-post {
        margin-top: 166px;
    }
}

/* 管理画面の調整 */
@media (max-width: 782px) {
    .admin-bar header {
        top: 46px;
    }
    
    .admin-bar main {
        margin-top: 46px;
    }
    
    .admin-bar .page-content,
    .admin-bar .contact-section {
        margin-top: 46px;
    }
}

/* SEO・パフォーマンス最適化 */
/* 画像の最適化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 遅延読み込みのスタイル */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* フォーカス可能な要素のスタイル */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid #FF69B4;
    outline-offset: 2px;
}

/* スクリーンリーダー用のスタイル */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* プリント用スタイル */
@media print {
    header,
    .about-modal,
    .scroll-top-btn,
    .contact-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    main {
        margin-top: 0;
        padding: 20px;
    }
    
    .content-wrapper {
        display: block;
        gap: 0;
    }
    
    .image-section {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .text-section {
        padding: 0;
    }
    
    .main-title {
        font-size: 18pt;
        margin-bottom: 10pt;
    }
    
    .description {
        font-size: 11pt;
        margin-bottom: 15pt;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .about-btn,
    .contact-btn {
        border: 2px solid #333;
    }
    
    .framed-image {
        border: 3px solid #333;
    }
    
    .modal-content {
        border: 2px solid #333;
    }
}

/* モーション削減対応 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .framed-image:hover .image-container img,
    .logo-link:hover .logo-image,
    .about-btn:hover,
    .contact-btn:hover,
    .submit-btn:hover {
        transform: none;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    header {
        background-color: rgba(26, 26, 26, 0.95);
    }
    
    .about-btn {
        background-color: #333;
        color: #fff;
    }
    
    .contact-btn {
        background-color: #FF69B4;
        color: #fff;
    }
    
    .modal-content {
        background-color: #2a2a2a;
        color: #fff;
    }
    
    .close-btn {
        background-color: #333;
        color: #fff;
    }
}

/* パフォーマンス最適化 */
/* 重要なCSSの優先読み込み */
.main-title,
.services,
.description {
    font-display: swap;
}

/* 画像の最適化 */
.image-container img {
    will-change: transform;
}

/* アニメーションの最適化 */
.framed-image,
.logo-link,
.about-btn,
.contact-btn,
.submit-btn {
    will-change: transform;
}

/* レイアウトシフトの防止 */
.image-container {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.profile-image {
    aspect-ratio: 1/1;
    overflow: hidden;
}

/* フォントの最適化 */
@font-face {
    font-family: 'Noto Sans JP';
    src: url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap');
    font-display: swap;
}

/* メディアクエリの最適化 */
@media (max-width: 1200px) {
    .content-wrapper {
        max-width: 1000px;
        gap: 40px;
    }
    
    .image-section {
        flex: 0 0 45%;
    }
    
    .text-section {
        flex: 0 0 50%;
        padding: 0 20px;
    }
    
    .framed-image {
        transform: scale(0.9);
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 20px;
    }
    
    .logo-image {
        height: 100px;
        max-width: 120px;
        object-fit: contain;
        object-position: center;
    }
    
    main {
        margin-top: 80px;
    }
    
    .content-wrapper {
        flex-direction: column;
        gap: 30px;
        padding: 90px 20px 100px;
    }
    
    .text-section {
        order: 1;
        padding: 0;
        text-align: center;
    }
    
    .main-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .services {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .description {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .image-section {
        order: 2;
        flex: 0 0 auto;
    }
    
    .framed-image {
        transform: scale(0.8);
    }
    
    .book-overlay {
        display: none;
    }
    
    .book {
        display: none;
    }
    
    .book-title {
        display: none;
    }
    
    .speech-bubble {
        display: none;
    }
}

/* アクセシビリティの改善 */
.about-btn:focus,
.contact-btn:focus,
.close-btn:focus,
.submit-btn:focus {
    outline: 2px solid #FF69B4;
    outline-offset: 2px;
}

/* キーボードナビゲーション対応 */
.about-btn:focus-visible,
.contact-btn:focus-visible,
.close-btn:focus-visible,
.submit-btn:focus-visible {
    outline: 2px solid #FF69B4;
    outline-offset: 2px;
}

/* スキップリンク */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #ffffff00;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}

/* セマンティックHTMLのスタイル */
main[role="main"] {
    outline: none;
}

section[itemscope] {
    outline: none;
}

/* 構造化データの視覚的表現 */
[itemprop="name"] {
    font-weight: 600;
}

[itemprop="description"] {
    line-height: 1.6;
}

/* メタデータのスタイル */
.meta-info {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 1em;
}

/* 検索エンジン最適化 */
.content-wrapper {
    contain: layout style paint;
}

.text-section {
    contain: layout style;
}

/* パフォーマンス監視用クラス */
.perf-marker {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}