/*
Theme Name: Portfolio Theme 2026
Author: Morita Shogo
Description: ポートフォリオ
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portfolio-theme
Tags: portfolio, one-column, custom-colors, custom-menu, editor-style, featured-images, theme-options, threaded-comments, translation-ready
*/

/* =========================================
   リセットCSS & 基本設定
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #fcfcfc;
    --color-text: #333333;
    --color-accent: #2F5D50;
    --color-gray: #f4f4f4;
    --color-border: #e6e6e6;
    --font-base: 'Noto Sans JP', sans-serif;
    --font-serif: 'Shippori Mincho', serif;
    --sidebar-width: 300px;
    --easing: cubic-bezier(0.25, 1, 0.5, 1);
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 2.0;
    letter-spacing: 0.08em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease, color 0.3s ease;
}

a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   ユーティリティ & アニメーション
   ========================================= */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.2em;
    font-family: var(--font-serif);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--easing), transform 1s var(--easing);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* =========================================
   レイアウト構造
   ========================================= */
.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--color-bg);
    border-right: 1px solid var(--color-border);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 100;
}

.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    background-color: var(--color-bg);
    position: relative;
}

/* =========================================
   サイドバー詳細
   ========================================= */
.logo h1 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.logo span {
    font-size: 0.75rem;
    color: #999;
    display: block;
    font-family: var(--font-base);
    letter-spacing: 0.05em;
}

.nav-menu { margin-top: 80px; }
.nav-menu li { margin-bottom: 25px; }

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
    display: inline-block;
    color: #888;
    transition: color 0.4s var(--easing);
}

.nav-menu a.active, .nav-menu a:hover { color: var(--color-accent); }

.nav-menu a::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent);
    top: 50%;
    left: -15px;
    transform: translateY(-50%) scale(0);
    transition: transform 0.3s var(--easing);
}

.nav-menu a.active::before { transform: translateY(-50%) scale(1); }

.nav-footer { font-size: 0.7rem; color: #bbb; }

/* RINIA相談リンク（サイドバー） */
.rinia-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.rinia-link:hover {
    background-color: #fff;
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 93, 80, 0.1);
}

.rinia-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.rinia-text {
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.03em;
}

.sns-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.sns-links a {
    font-size: 0.8rem;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.sns-links a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* =========================================
   モバイルメニュー
   ========================================= */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(60px + env(safe-area-inset-top));
    background: rgba(252, 252, 252, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
    padding: env(safe-area-inset-top) 20px 0 20px;
}

.hamburger {
    width: 25px;
    height: 18px;
    position: relative;
    cursor: pointer;
    z-index: 1002;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-text);
    transition: all 0.4s var(--easing);
}

.hamburger span:nth-of-type(1) { top: 0; }
.hamburger span:nth-of-type(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-of-type(3) { bottom: 0; }

.hamburger.active span:nth-of-type(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-of-type(2) { opacity: 0; }
.hamburger.active span:nth-of-type(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 999;
}

.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav li { margin: 20px 0; opacity: 0; transform: translateY(20px); transition: 0.5s var(--easing); }
.mobile-nav.open li { opacity: 1; transform: translateY(0); }
.mobile-nav.open li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.open li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav.open li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav.open li:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav a { font-size: 1.3rem; font-family: var(--font-serif); }

/* =========================================
   メインコンテンツ
   ========================================= */
section {
    padding: 120px 8%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.section-header { margin-bottom: 60px; position: relative; }

.section-num {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: #f0f0f0;
    position: absolute;
    top: -30px;
    left: -20px;
    z-index: -1;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-text);
    display: inline-block;
}

.section-title span {
    color: var(--color-accent);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-base);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Hero セクション */
#hero {
    height: 100vh;
    padding: 0;
    position: relative;
    background-color: var(--color-bg);
    overflow: hidden;
    border-bottom: none;
}

/* About セクション - 白背景 */
#about {
    background-color: #ffffff;
    position: relative;
}

/* Works セクション - ライトグレー背景 */
#works {
    background-color: #fafafa;
    position: relative;
}

#works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(47, 93, 80, 0.1), transparent);
}

/* Contact セクション - アクセントカラーのグラデーション背景 */
#contact {
    background-color: #ffffff;
    position: relative;
    border-bottom: none;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(47, 93, 80, 0.15), transparent);
}

.hero-visual-area {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}

/* スライドショー */
.hero-slideshow {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.7);
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

@keyframes fadeInSimple { to { opacity: 1; } }

/* Heroタイトル */
.hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    opacity: 0;
    animation: fadeInSimple 2s ease 0.5s forwards;
    width: 100%;
    padding: 0 20px;
}

.hero-title h1 {
    font-size: 5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.15em;
    margin: 0 0 20px 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-family: var(--font-serif);
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.2em;
    margin: 0;
    opacity: 0.95;
    font-family: 'Klee One', serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeInSimple 2s ease 2s forwards;
    z-index: 10;
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.scroll-line {
    width: 1px;
    height: 0;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    animation: scrollGrow 2s infinite ease-in-out;
}

@keyframes scrollGrow {
    0% { height: 0; transform-origin: top; }
    50% { height: 60px; transform-origin: top; }
    51% { height: 60px; transform-origin: bottom; }
    100% { height: 0; transform-origin: bottom; }
}

/* =========================================
   モバイル用フッター
   ========================================= */
.mobile-footer {
    display: none;
    background-color: #fff;
    border-top: 1px solid var(--color-border);
    padding: 30px 20px;
    text-align: center;
}

.mobile-footer-content {
    max-width: 600px;
    margin: 0 auto;
}

/* モバイルRINIA相談リンク */
.mobile-rinia-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-rinia-link:hover {
    background-color: #fff;
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 93, 80, 0.1);
}

.mobile-rinia-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.mobile-rinia-text {
    font-size: 0.85rem;
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.03em;
}

.mobile-footer-sns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.mobile-footer-sns a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.mobile-footer-sns a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.mobile-footer-copyright {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

/* About & Works & Contact */
.about-layout {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-top-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: start;
}

.about-visual-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.about-content-wrapper {
    flex: 1;
}

.about-content-wrapper h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 25px;
    line-height: 1.8;
    color: var(--color-text);
}

.about-content-wrapper p {
    margin-bottom: 20px;
    line-height: 2.0;
}

.about-visual {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8efec 0%, #d4e4df 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2F5D50;
    font-size: 1.2rem;
    font-family: var(--font-serif);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-name {
    font-size: 1.5rem;
    font-weight: 500;
    font-family: var(--font-serif);
    margin: 0;
    color: var(--color-text);
    letter-spacing: 0.1em;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.about-name-ruby {
    font-size: 0.75rem;
    font-weight: 400;
    font-family: var(--font-base);
    color: #999;
    letter-spacing: 0.15em;
}

.about-role {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
    letter-spacing: 0.05em;
}

.about-desc h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 25px;
    line-height: 1.8;
    color: var(--color-text);
}

.about-desc p {
    margin-bottom: 20px;
    line-height: 2.0;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0;
    width: 100%;
}

.feature-item {
    background-color: #fafafa;
    padding: 25px 20px;
    border-radius: 8px;
    border-left: 3px solid var(--color-accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-item p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 0;
    color: #666;
}

.skill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.skill-tag { font-size: 0.8rem; padding: 5px 15px; background-color: #f0f0f0; border-radius: 20px; color: #666; }

.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; }
.works-grid .work-item:nth-child(even) { margin-top: 80px; }
.work-item { display: block; position: relative; }
.work-thumb-wrapper { overflow: hidden; position: relative; margin-bottom: 20px; aspect-ratio: 4/3; }
.work-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--easing); background-color: #eee; }
.work-item:hover .work-thumb { transform: scale(1.08); }
.work-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(47, 93, 80, 0.4); opacity: 0;
    transition: opacity 0.5s ease; display: flex; align-items: center; justify-content: center; color: #fff;
}
.work-item:hover .work-overlay { opacity: 1; }
.view-more-text { font-family: var(--font-serif); letter-spacing: 0.1em; transform: translateY(20px); transition: transform 0.5s ease; }
.work-item:hover .view-more-text { transform: translateY(0); }
.work-title { font-size: 1.1rem; font-family: var(--font-serif); margin-bottom: 5px; font-weight: 500; }
.work-cat { font-size: 0.75rem; color: #999; letter-spacing: 0.1em; }

.contact-container {
    margin: 0 auto;
}

.contact-info {
    text-align: center;
    margin-bottom: 50px;
}

.contact-info p {
    margin-bottom: 0;
    line-height: 1.8;
}

/* Contact Form 7 スタイル */
.contact-form {
    /* 背景なし */
}

.contact-form .form-group {
    margin-bottom: 30px;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
    position: relative;
    padding-left: 10px;
}

.contact-form label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.contact-form .form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fafafa;
    font-family: var(--font-base);
    transition: all 0.3s ease;
}

.contact-form .form-control:hover {
    background-color: #fff;
    border-color: #d0d0d0;
}

.contact-form .form-control:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(47, 93, 80, 0.08);
}

.contact-form textarea.form-control {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

.contact-form .submit-group {
    margin-top: 40px;
    text-align: center;
}

.contact-form .btn {
    padding: 16px 60px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-base);
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(47, 93, 80, 0.2);
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #245043 100%);
    color: #fff;
}

.contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(47, 93, 80, 0.35);
}

.contact-form .btn-primary:active {
    transform: translateY(-1px);
}

/* Contact Form 7 デフォルトスタイルの上書き */
.contact-form .wpcf7-form-control-wrap {
    display: block;
}

.contact-form .wpcf7-not-valid-tip {
    font-size: 0.85rem;
    color: #e74c3c;
    margin-top: 5px;
}

.contact-form .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.contact-form .wpcf7-validation-errors {
    background-color: #ffe8e8;
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

.contact-form .wpcf7-mail-sent-ok {
    background-color: #e8f5e9;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

/* reCAPTCHA バッジ非表示 */
.grecaptcha-badge {
    visibility: hidden;
}

/* reCAPTCHA 代替テキスト */
.recaptcha-notice {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 20px;
    line-height: 1.6;
}

.recaptcha-notice a {
    color: var(--color-accent);
    text-decoration: underline;
}

.recaptcha-notice a:hover {
    opacity: 0.7;
}

/* レスポンシブ (スマホ向け調整) */
@media screen and (max-width: 900px) {
    :root { --sidebar-width: 0px; }

    html {
        background-color: rgba(252, 252, 252, 0.95) !important;
    }

    body {
        background-color: rgba(252, 252, 252, 0.95) !important;
    }

    body::before {
        display: none;
    }

    .sidebar { display: none; }
    .mobile-header { display: flex; }
    .main-content { margin-left: 0; width: 100%;}
    .mobile-footer { display: block; }

    /* Heroタイトルのモバイル調整 */
    .hero-title h1 {
        font-size: 2.5rem;
        letter-spacing: 0.1em;
        margin: 0 0 15px 0;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.15em;
    }

    /* 余白を詰める */
    section { padding: 80px 5%; min-height: auto; }
    .section-header { margin-bottom: 40px; }

    /* 1カラム化 */
    .works-grid { grid-template-columns: 1fr; gap: 40px; }

    /* お問い合わせフォームのモバイル調整 */
    .contact-container {
        padding: 40px 20px;
        border-radius: 0;
    }

    .contact-info {
        margin-bottom: 40px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .contact-form .form-control {
        font-size: 16px; /* iOSのズーム防止 */
        padding: 12px 15px;
    }

    .contact-form .btn {
        width: 100%;
        padding: 14px 30px;
    }

    /* Aboutセクションのモバイル調整 */
    .about-layout {
        gap: 40px;
    }

    .about-top-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-visual-wrapper {
        flex-direction: column;
        gap: 25px;
    }

    .about-visual {
        width: 180px;
        height: 180px;
    }

    .about-info {
        text-align: center;
    }

    .about-name {
        font-size: 1.3rem;
    }

    .about-role {
        font-size: 0.85rem;
    }

    .about-content-wrapper h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item {
        padding: 20px 18px;
    }

    .feature-item h4 {
        font-size: 0.95rem;
    }

    .feature-item p {
        font-size: 0.85rem;
    }

    /* 作品の段差をなくす */
    .works-grid .work-item:nth-child(even) { margin-top: 0; }

    /* 文字サイズ調整 */
    .section-num { font-size: 2.8rem; top: -15px; }
    .section-title { font-size: 1.8rem; }
    .email-link { font-size: 1.2rem; }

    .contact-container { padding: 40px 30px; }

    /* Hero スマホ調整 */
    #hero { height: calc(100vh - 60px); }
}

/* WordPress固有のクラス */
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.9rem; color: #666; margin-top: 5px; }
.screen-reader-text { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
