/*
Theme Name:  SYA Web Support
Theme URI:   https://s3updev.foreign-in-japan.com/
Author:      sya
Description: WordPress保守・SEO支援のフリーランスエンジニア向けテーマ
Version:     1.0.0
Text Domain: sya-web-support
*/
@charset "UTF-8";

/* ===========================
   CSS変数
=========================== */
:root {
    --green:       #1FA869;
    --green-dark:  #14764A;
    --green-light: #E8F7F0;
    --green-pale:  #F2FAF6;
    --navy:        #0D1F2D;
    --text:        #1A1A1A;
    --text-muted:  #5A6472;
    --border:      #E0E6E3;
    --bg:          #F8FAF9;
    --white:       #FFFFFF;
    --yellow:      #FFD200;
    --shadow:      0 4px 24px rgba(0,0,0,.08);
    --shadow-lg:   0 8px 40px rgba(0,0,0,.12);
    --radius:      12px;
    --radius-lg:   20px;
    --transition:  .25s ease;
}

/* ===========================
   リセット・ベース
=========================== */
*, ::before, ::after { box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    color: var(--text);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    margin: 0;
    background: var(--white);
    overflow-x: hidden;
    animation: fadeIn .8s ease both;
}

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; line-height: 1.4; }
p { margin: 0 0 1em; color: var(--text-muted); font-size: 15px; line-height: 1.9; }
p:last-child { margin-bottom: 0; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; vertical-align: top; }
a { text-decoration: none; color: inherit; transition: opacity var(--transition); }
a:hover { opacity: .75; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===========================
   ユーティリティ
=========================== */
.pc-only { display: inline; }
.sp-only { display: none; }

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 90px 40px;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--green);
    background: var(--green-light);
    padding: 4px 14px;
    border-radius: 30px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 900;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.35;
}

.section-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 50px;
    line-height: 1.9;
}

/* ===========================
   ボタン
=========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
    box-shadow: 0 4px 20px rgba(31,168,105,.35);
}
.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(31,168,105,.45);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
    background: rgba(255,255,255,.15);
    opacity: 1;
}

.btn-outline-green {
    background: transparent;
    color: var(--green);
    border-color: var(--green);
}
.btn-outline-green:hover {
    background: var(--green);
    color: var(--white);
    opacity: 1;
}

.btn-header {
    background: var(--green);
    color: var(--white);
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--green);
}
.btn-header:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    opacity: 1;
}

.btn-white {
    background: var(--white);
    color: var(--green-dark);
    border-color: var(--white);
    font-weight: 700;
}
.btn-white:hover {
    background: var(--green-light);
    opacity: 1;
}

/* ===========================
   ヘッダー
=========================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 18px;
    color: var(--navy);
    white-space: nowrap;
}
.logo-icon { color: var(--green); font-size: 14px; }
.logo-accent { color: var(--green); }

.header-nav { margin-left: auto; }
.header-nav ul {
    display: flex;
    gap: 32px;
}
.header-nav ul li a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    position: relative;
}
.header-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 2px;
    background: var(--green);
    transition: width var(--transition);
}
.header-nav ul li a:hover { opacity: 1; }
.header-nav ul li a:hover::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   ヒーロー
=========================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a4f 50%, #0f2d20 100%);
    display: flex;
    align-items: center;
    padding-top: 68px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(31,168,105,.15) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(31,168,105,.08) 0%, transparent 60%);
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text { flex: 1; }

.hero-lead {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--green);
    background: rgba(31,168,105,.15);
    border: 1px solid rgba(31,168,105,.3);
    padding: 5px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(36px, 6vw, 58px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 28px;
    letter-spacing: .02em;
}
.hero-title em {
    font-style: normal;
    color: var(--green);
    position: relative;
}
.hero-title em::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0; right: 0;
    height: 3px;
    background: var(--green);
    opacity: .4;
    border-radius: 2px;
}

.hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,.75);
    line-height: 1.9;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-badges li {
    font-size: 13px;
    color: rgba(255,255,255,.7);
    font-weight: 500;
}

/* ヒーローカード */
.hero-image {
    flex: 0 0 460px;
    position: relative;
    height: 640px;
}

.hero-card {
    position: absolute;
    width: 52%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 56px rgba(0,0,0,.5);
    display: flex;
    flex-direction: column;
}

/* 左カード：上 */
.hero-card--1 {
    top: 20px;
    left: 0;
    z-index: 1;
    animation: floatCard 4s ease-in-out infinite;
}

/* 右カード：下・重なりなし */
.hero-card--2 {
    bottom: 20px;
    right: 0;
    z-index: 2;
    animation: floatCard2 4s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes floatCard2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
}

.hero-card-bg {
    width: 100%;
    height: auto;
    display: block;
    flex-shrink: 0;
}

/* バッジ（画像の下） */
.hero-card-badge {
    padding: 22px 16px 16px;
    background: rgba(10, 30, 30, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    flex-shrink: 0;
}

.hero-card-badge-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
    letter-spacing: .04em;
    white-space: nowrap;
}

.hero-card-badge-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #4ade80;
}

.dot-green {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
    flex-shrink: 0;
}

.hero-card-badge-rank-glass {
    font-size: 18px;
    font-weight: 900;
    color: var(--yellow);
    letter-spacing: .03em;
    text-shadow: 0 0 10px rgba(255,210,0,.4);
}

.hero-bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(31,168,105,.12);
    border: 1px solid rgba(31,168,105,.2);
}
.hero-bg-circle.c1 {
    width: 240px; height: 240px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.hero-bg-circle.c2 {
    width: 320px; height: 320px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1;
}
.hero-scroll span {
    display: block;
    font-size: 11px;
    letter-spacing: .2em;
    color: rgba(255,255,255,.4);
    margin-bottom: 8px;
    text-transform: uppercase;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
    margin: 0 auto;
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===========================
   お悩みセクション
=========================== */
.trouble { background: var(--white); }
.trouble .section-inner { padding-bottom: 70px; }

.trouble-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.trouble-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 24px 28px;
    text-align: center;
    transition: all var(--transition);
}
.trouble-item:hover {
    border-color: var(--green);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.trouble-icon { margin-bottom: 0; }
.trouble-icon img {
    width: 160px;
    height: 160px;
    object-fit: contain;
}
.trouble-item p {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin: 0;
    line-height: 1.7;
}

.trouble-arrow {
    text-align: center;
    padding-top: 20px;
}
.arrow-down {
    width: 0; height: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-top: 28px solid var(--green);
    margin: 0 auto 20px;
}
.trouble-solution {
    font-size: 20px;
    font-weight: 700;
    color: var(--green);
    margin: 0;
}

/* ===========================
   サービスセクション
=========================== */
.service { background: var(--bg); }

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all var(--transition);
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--green);
}
.service-card--main {
    border-top: 4px solid var(--green);
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.service-num {
    font-size: 11px;
    font-weight: 900;
    color: var(--green);
    letter-spacing: .1em;
    background: var(--green-light);
    padding: 3px 10px;
    border-radius: 20px;
}

.service-icon {
    display: flex;
    align-items: center;
}
.service-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.service-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.service-card > p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.service-list li {
    font-size: 14px;
    color: var(--text);
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
    font-weight: 500;
}
.service-list li:last-child { border-bottom: none; }

/* ===========================
   選ばれる理由
=========================== */
.reason { background: var(--green); }
.reason .section-inner { padding: 80px 40px; }
.reason .section-label {
    background: rgba(255,255,255,.2);
    color: var(--white);
}
.reason .section-title { color: var(--white); }

.reason-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.reason-item {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    color: var(--white);
}

.reason-num {
    font-size: 40px;
    font-weight: 900;
    color: rgba(255,255,255,.2);
    line-height: 1;
    margin-bottom: 12px;
    font-family: serif;
}

.reason-item h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}
.reason-item p {
    font-size: 14px;
    color: rgba(255,255,255,.8);
    line-height: 1.9;
    margin: 0;
}

/* ===========================
   料金プラン
=========================== */
.price { background: var(--white); }

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 40px;
}

.price-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    transition: all var(--transition);
}
.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.price-card--popular {
    background: var(--navy);
    border-color: var(--navy);
    transform: scale(1.04);
    box-shadow: var(--shadow-lg);
}
.price-card--popular:hover {
    transform: scale(1.04) translateY(-4px);
}

.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--yellow);
    color: var(--navy);
    font-size: 12px;
    font-weight: 900;
    padding: 4px 20px;
    border-radius: 30px;
    white-space: nowrap;
}

.price-plan-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--green);
    margin-bottom: 8px;
    text-transform: uppercase;
}
.price-card--popular .price-plan-name { color: rgba(255,255,255,.7); }

.price-amount {
    font-size: 40px;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    margin-bottom: 12px;
}
.price-card--popular .price-amount { color: var(--white); }

.price-yen { font-size: 22px; vertical-align: super; margin-right: 2px; }
.price-unit { font-size: 15px; font-weight: 400; }

.price-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}
.price-card--popular .price-desc {
    color: rgba(255,255,255,.6);
    border-color: rgba(255,255,255,.15);
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}
.price-list li {
    font-size: 13px;
    padding-left: 22px;
    position: relative;
}
.price-list li.on {
    color: var(--text);
    font-weight: 500;
}
.price-card--popular .price-list li.on { color: rgba(255,255,255,.9); }
.price-list li.on::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}
.price-card--popular .price-list li.on::before { color: #4ade80; }
.price-list li.off {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: .5;
}
.price-card--popular .price-list li.off { color: rgba(255,255,255,.35); }

.price-note {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 2;
    margin: 0;
}

/* ===========================
   実績
=========================== */
.portfolio { background: var(--bg); }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-item a { display: block; }

.portfolio-img {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--border);
}
.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.portfolio-item:hover .portfolio-img img { transform: scale(1.05); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 42, 30, .75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay span {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .05em;
}

.portfolio-info { padding: 14px 4px 0; }
.portfolio-client {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.portfolio-tags {
    display: flex;
    gap: 8px;
    margin: 0;
}
.portfolio-tags span {
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
    background: var(--green-light);
    padding: 2px 10px;
    border-radius: 20px;
}

/* ===========================
   プロフィール
=========================== */
.about { background: var(--white); }

.about-flex {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about-img {
    flex: 0 0 260px;
}
.about-img img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-text { flex: 1; }

.about-name {
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 6px;
}
.about-name small {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 8px;
}

.about-tagline {
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: .05em;
    margin-bottom: 20px;
    background: var(--green-light);
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
}

.about-text > p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-career {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.career-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.career-year {
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    white-space: nowrap;
    min-width: 80px;
    padding-top: 1px;
}

.career-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===========================
   FAQ
=========================== */
.faq { background: var(--bg); }

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-light);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    transition: background var(--transition);
}
.faq-question:hover { background: var(--bg); }
.faq-question[aria-expanded="true"] { background: var(--green-pale); }

.faq-q {
    flex: 0 0 30px;
    height: 30px;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}

.faq-question > span:nth-child(2) { flex: 1; }

.faq-arrow {
    font-size: 12px;
    color: var(--green);
    transition: transform var(--transition);
    flex: 0 0 auto;
}
.faq-question[aria-expanded="true"] .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
}
.faq-answer.open {
    max-height: 200px;
    padding: 0 24px 20px 70px;
}
.faq-answer p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.9;
    margin: 0;
}

/* ===========================
   お問合せ
=========================== */
.contact {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a4f 50%, #0f2d20 100%);
}
.contact .section-inner { padding: 80px 40px; }
.contact .section-label {
    background: rgba(31,168,105,.2);
    color: rgba(255,255,255,.8);
}

.contact-title-white { color: var(--white); }

.contact-desc {
    color: rgba(255,255,255,.7);
    font-size: 16px;
    margin-bottom: 50px;
    line-height: 1.9;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.contact-methods--single {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
}

.contact-method {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    text-align: center;
}

.contact-method-icon { font-size: 40px; margin-bottom: 16px; }

.contact-method h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.contact-method > p {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    margin-bottom: 20px;
}

.contact-id {
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    background: rgba(31,168,105,.15);
    border: 1px solid rgba(31,168,105,.3);
    padding: 8px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: inline-block;
    letter-spacing: .05em;
}

/* フォーム */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    font-size: 14px;
    color: var(--white);
    font-family: inherit;
    transition: border-color var(--transition), background var(--transition);
    outline: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,.4);
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--green);
    background: rgba(31,168,105,.1);
}
.contact-form textarea { resize: vertical; min-height: 100px; }

/* ===========================
   フッター
=========================== */
.site-footer {
    background: var(--navy);
    padding: 48px 40px 32px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
    font-size: 18px;
    color: var(--white);
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    margin-bottom: 24px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 28px;
}
.footer-nav a {
    font-size: 13px;
    color: rgba(255,255,255,.6);
    transition: color var(--transition);
}
.footer-nav a:hover { color: var(--green); opacity: 1; }

.footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,.3);
    margin: 0;
}

/* ===========================
   ページトップ
=========================== */
.page-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(31,168,105,.4);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    z-index: 100;
}
.page-top.visible {
    opacity: 1;
    pointer-events: auto;
}
.page-top:hover {
    background: var(--green-dark);
    opacity: 1;
    transform: translateY(-3px);
}

/* ===========================
   スクロールアニメーション
=========================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   レスポンシブ
=========================== */
/* モバイルメニュー（ヘッダー外） */
.mobile-menu {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.98);
    overflow-y: auto;
    z-index: 9999;
    padding: 32px 40px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}
.mobile-menu ul li a {
    display: block;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.mobile-menu ul li a:hover { color: var(--green); opacity: 1; }
.mobile-menu ul li:last-child {
    border-bottom: none;
    padding-top: 28px;
    text-align: center;
}
.mobile-menu-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--green) !important;
    color: var(--white) !important;
    padding: 14px 40px !important;
    border-radius: 50px !important;
    border-bottom: none !important;
    font-weight: 700 !important;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(31,168,105,.35);
    width: auto;
}

@media screen and (max-width: 1024px) {
    .header-nav { display: none; }
    .hamburger { display: flex; }
    .btn-header { display: none; }

    .section-inner { padding: 60px 24px; }
    .hero-inner { flex-direction: column; padding: 60px 24px; text-align: center; }
    .hero-image { display: none; }
    .hero-actions { justify-content: center; }
    .hero-badges { justify-content: center; }
    .pc-only { display: none; }

    .trouble-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid { grid-template-columns: 1fr; }
    .reason-grid { grid-template-columns: 1fr; gap: 16px; }

    .price-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .price-card--popular { transform: scale(1); }
    .price-card--popular:hover { transform: translateY(-4px); }

    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

    .about-flex { flex-direction: column; }
    .about-img { flex: none; max-width: 220px; }

    .contact-methods { grid-template-columns: 1fr; }
    .footer-nav { gap: 16px; }
}

@media screen and (max-width: 600px) {
    .trouble-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 36px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .price-grid { max-width: none; }
    .contact-method { padding: 28px 20px; }
    .page-top { bottom: 20px; right: 20px; }
    .site-footer { padding: 40px 24px 28px; }
}

/* ===========================
   ロゴ画像（丸型）
=========================== */
.logo-img-wrap img,
.custom-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.header-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}
.footer-logo-img img,
.footer-logo-img .custom-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.footer-logo-name .logo-text { color: var(--white); font-weight: 900; font-size: 18px; }
.header-nav ul li a.current { color: var(--green); }
.header-nav ul li a.current::after { width: 100%; }

/* ===========================
   ページヒーロー（ブログ・固定ページ共通）
=========================== */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a4f 50%, #0f2d20 100%);
    padding: 120px 40px 60px;
    text-align: center;
    margin-top: 68px;
}
.page-hero-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.page-hero-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.35;
    text-align: center;
}
.page-hero p { color: rgba(255,255,255,.7); font-size: 15px; margin: 0; text-align: center; }
.single-post-title { font-size: clamp(22px, 3vw, 34px); text-align: left; }
.single-main .page-hero-inner { text-align: left; }
.single-post-date { color: rgba(255,255,255,.6); font-size: 13px; margin-top: 12px; }

/* ===========================
   ブログ一覧
=========================== */
.blog-main, .single-main, .page-main { background: var(--bg); }
.blog-container .section-inner { padding-top: 60px; padding-bottom: 80px; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}
.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--green);
}
.blog-card-link { display: block; color: inherit; }
.blog-card-link:hover { opacity: 1; }

.blog-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--border);
}
.blog-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }
.blog-card-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--green-light);
    font-size: 40px;
}

.blog-card-body { padding: 20px 22px 22px; }

.blog-card-cats {
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px;
}
.blog-cat-tag {
    font-size: 11px; font-weight: 700;
    color: var(--green); background: var(--green-light);
    padding: 3px 10px; border-radius: 20px;
    text-decoration: none;
}
a.blog-cat-tag:hover { background: var(--green); color: var(--white); opacity: 1; }

.blog-card-title {
    font-size: 16px; font-weight: 700;
    color: var(--text); margin-bottom: 10px; line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-excerpt {
    font-size: 13px; color: var(--text-muted);
    line-height: 1.8; margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-meta {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 12px; border-top: 1px solid var(--border);
}
.blog-card-date { font-size: 12px; color: var(--text-muted); }
.blog-card-more { font-size: 12px; font-weight: 700; color: var(--green); }

/* ページネーション */
.blog-pagination { text-align: center; }
.blog-pagination .nav-links {
    display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.blog-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 14px; font-weight: 700;
    border: 2px solid var(--border); color: var(--text);
    transition: all var(--transition);
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--green); border-color: var(--green); color: var(--white); opacity: 1;
}
.blog-pagination .prev, .blog-pagination .next {
    width: auto; padding: 0 16px; border-radius: 20px;
}
.blog-empty { text-align: center; padding: 80px 0; color: var(--text-muted); }

/* ===========================
   シングル記事
=========================== */
.single-container .section-inner { padding-top: 60px; padding-bottom: 80px; }
.single-article {
    max-width: 800px; margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow);
}
.single-thumbnail {
    border-radius: var(--radius);
    overflow: hidden; margin-bottom: 36px;
}
.single-thumbnail img { width: 100%; height: auto; display: block; }

.single-content {
    font-size: 16px; line-height: 2; color: var(--text);
    margin-bottom: 40px;
}
.single-content h2 {
    font-size: 22px; font-weight: 700; color: var(--text);
    margin: 40px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--green);
}
.single-content h3 {
    font-size: 18px; font-weight: 700;
    margin: 32px 0 12px; color: var(--text);
}
.single-content p { margin-bottom: 20px; color: var(--text); line-height: 2; }
.single-content ul, .single-content ol {
    padding-left: 24px; margin-bottom: 20px;
}
.single-content li { margin-bottom: 6px; line-height: 1.8; }
.single-content img { max-width: 100%; border-radius: var(--radius); margin: 20px 0; }
.single-content a { color: var(--green); text-decoration: underline; }
.single-content blockquote {
    border-left: 4px solid var(--green);
    background: var(--green-pale);
    padding: 16px 20px; margin: 24px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* コードブロック */
.single-content pre,
.single-content .wp-block-code {
    background: #1a1f2e;
    color: #e2e8f0;
    padding: 20px 24px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 24px 0;
    border-left: 4px solid var(--green);
    position: relative;
}
.single-content pre code,
.single-content .wp-block-code code {
    font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace;
    font-size: 14px;
    line-height: 1.8;
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
}
.single-content code {
    font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace;
    font-size: 14px;
    background: var(--green-pale);
    color: var(--green-dark);
    padding: 2px 8px;
    border-radius: 4px;
}

/* 目次 */
.toc-box {
    background: var(--green-pale);
    border: 1px solid var(--green-light);
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin: 0 0 36px;
}
.toc-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.toc-nav ol {
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
}
.toc-nav > ol { padding-left: 0; list-style: none; counter-reset: toc-h2; }
.toc-nav > ol > li { counter-increment: toc-h2; padding-left: 4px; }
.toc-nav > ol > li::before {
    content: counter(toc-h2) ". ";
    font-weight: 700; color: var(--green);
}
.toc-nav ol ol { margin-top: 4px; padding-left: 20px; list-style: disc; }
.toc-nav ol ol li::before { display: none; }
.toc-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    line-height: 2;
    display: inline-block;
    transition: color var(--transition);
}
.toc-nav a:hover { color: var(--green); opacity: 1; }
.toc-nav li { margin-bottom: 2px; }

.single-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.single-tag {
    font-size: 12px; color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 4px 12px; border-radius: 20px;
    transition: all var(--transition);
}
.single-tag:hover { border-color: var(--green); color: var(--green); opacity: 1; }

.single-nav {
    display: flex; gap: 16px;
    padding: 24px 0; border-top: 1px solid var(--border);
    margin-bottom: 32px;
}
.single-nav-prev, .single-nav-next { flex: 1; }
.single-nav-next { text-align: right; }
.single-nav a { display: block; color: var(--text); }
.single-nav a:hover { color: var(--green); opacity: 1; }
.single-nav span { font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.single-nav strong { font-size: 14px; font-weight: 700; line-height: 1.5; display: block;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.single-back { text-align: center; }

/* 固定ページ */
.page-content { max-width: 800px; margin: 0 auto; background: var(--white); padding: 48px; border-radius: var(--radius-lg); }

/* ===========================
   ブログレスポンシブ
=========================== */
@media screen and (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .page-hero { padding: 100px 24px 48px; }
    .single-article { padding: 28px 24px; }
}
@media screen and (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
    .single-nav { flex-direction: column; }
    .single-nav-next { text-align: left; }
}
