/*
Theme Name: SouthCity Theme
Author: South City
Description: Official Theme for South City
Version: 4.8
*/

/* ==========================================================================
   Reset & Variables
   ========================================================================== */
:root {
    --c-black: #111111;
    --c-dark: #222222;
    --c-gray: #f4f4f4;
    --c-white: #ffffff;
    --c-accent: #f8b62d;
    
    --f-base: "Noto Sans JP", sans-serif;
    --f-en: "Oswald", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body, html {
    width: 100%;
    font-family: var(--f-base);
    color: var(--c-black);
    background-color: var(--c-white);
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: all 0.3s; }
ul { list-style: none; }

img {
    vertical-align: bottom;
    max-width: 100%;
    height: auto;
}

/* 共通ユーティリティ（PC表示・スマホ表示切り替え） */
.sp-br { display: none; }
@media (max-width: 768px) { 
    .sp-br { display: block; }
    .pc-only { display: none !important; }
}
@media (min-width: 769px) {
    .sp-only { display: none !important; }
}

/* Utilities */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
@media (max-width: 768px) { .section { padding: 60px 0; } }

/* Headings */
.sec-header { text-align: center; margin-bottom: 60px; }
.sec-title-en {
    display: block; font-family: var(--f-en); font-weight: 700;
    font-size: 4rem; color: var(--c-accent); line-height: 1; margin-bottom: 10px; text-transform: uppercase;
}
.sec-title-jp {
    display: inline-block; font-size: 2rem; font-weight: 900;
    position: relative; z-index: 1; color: var(--c-black); font-family: var(--f-base);
}
.sec-title-jp.white { color: #fff; }
.sec-title-jp::after {
    content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 10px;
    background: var(--c-accent); z-index: -1; opacity: 0.8;
}
@media (max-width: 768px) {
    .sec-title-en { font-size: 2.5rem; }
    .sec-title-jp { font-size: 1.5rem; }
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    background-color: var(--c-accent); color: var(--c-white);
    font-family: var(--f-en); padding: 15px 40px; font-weight: 700;
    border: 2px solid var(--c-accent);
    letter-spacing: 0.1em; cursor: pointer;
}
.btn:hover { background-color: #fff; color: var(--c-black); border-color: var(--c-accent); }

.btn-fill {
    background-color: var(--c-accent); color: var(--c-white);
    border: 2px solid var(--c-accent); padding: 15px 50px; font-weight: 900;
}
.btn-fill:hover { background-color: #fff; color: #000; border-color: var(--c-accent); }

/* 詳細ページ用ボタン */
.btn-black {
    display: inline-flex; align-items: center; justify-content: center;
    background-color: var(--c-black); color: var(--c-white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); border: 2px solid var(--c-black);
    transition: 0.3s;
}
.btn-black:hover {
    color: var(--c-accent); background-color: var(--c-black);
    transform: translateY(-3px);
}

/* VIEW ALL ボタン */
.view-more-btn {
    display: inline-block; border: 1px solid rgba(255,255,255,0.3);
    padding: 15px 60px; color: #fff; font-family: var(--f-en);
    font-size: 1rem; letter-spacing: 0.1em; position: relative;
    overflow: hidden; background: transparent; cursor: pointer; z-index: 1;
}
.view-more-btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%;
    background: var(--c-accent); transition: width 0.3s ease; z-index: -1;
}
.view-more-btn:hover { color: var(--c-black); border-color: var(--c-accent); }
.view-more-btn:hover::before { width: 100%; }


/* =========================================
   HEADER
   ========================================= */
.header {
    width: 100%; height: 80px;
    background: #000;
    position: fixed; top: 0; left: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px; border-bottom: 1px solid #333;
}
.header-inner {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
}
.header-logo img { height: 40px; width: auto; display: block; }

.header-nav ul { display: flex; gap: 30px; }
.header-nav a {
    color: #fff; font-family: var(--f-en); font-weight: 500; font-size: 1rem; position: relative;
}
.header-nav a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--c-accent); transition: 0.3s;
}
.header-nav a:hover::after { width: 100%; }

@media (max-width: 1024px) {
    .header { padding: 0 20px; height: 60px; }
    .header-logo img { height: 30px; }
    .header-nav { display: none; }
}

/* =========================================
   HAMBURGER MENU
   ========================================= */
.open-btn {
    position: relative; z-index: 9999; cursor: pointer;
    width: 50px; height: 50px; border-radius: 5px;
    display: none;
}
@media (max-width: 1024px) { .open-btn { display: block; } }

.open-btn span {
    display: inline-block; transition: all .4s;
    position: absolute; left: 14px; height: 3px;
    border-radius: 2px; background: #fff; width: 45%;
}
.open-btn span:nth-of-type(1) { top: 15px; }
.open-btn span:nth-of-type(2) { top: 25px; }
.open-btn span:nth-of-type(3) { top: 35px; }

#g-nav {
    position: fixed; z-index: 9990;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: #000;
    opacity: 0; visibility: hidden; transition: all 0.6s;
    display: flex; justify-content: center; align-items: center;
}
#g-nav.panelactive { opacity: 1; visibility: visible; }

.close-btn {
    position: absolute; top: 20px; right: 20px;
    width: 50px; height: 50px; cursor: pointer;
    color: #fff; font-size: 3rem; 
    display: flex; align-items: center; justify-content: center;
    border: none; z-index: 10000;
}

#g-nav ul { text-align: center; }
#g-nav ul li { margin: 20px 0; }
#g-nav ul li a {
    color: #fff; text-decoration: none; font-size: 1.5rem;
    font-weight: 700; font-family: var(--f-en); letter-spacing: 0.05em;
}

/* =========================================
   SLIDER
   ========================================= */
.slider-area {
    width: 100%; margin-top: 80px; background: #000; padding: 0; line-height: 0;
}
@media (max-width: 1024px) { .slider-area { margin-top: 60px; } }

.slider { width: 100%; margin: 0; padding: 0; }
.slider .slide-item { width: 100%; position: relative; }
.slider img { width: 100%; height: auto; object-fit: cover; }

/* =========================================
   CONTENTS (NEWS, ABOUT...)
   ========================================= */
.news-section { background: var(--c-white); padding: 60px 0; }
.news-list { max-width: 900px; margin: 0 auto 60px; border-top: 2px solid var(--c-black); }
.news-item {
    display: flex; align-items: center; border-bottom: 1px solid #ddd; padding: 20px 0;
    transition: 0.3s; color: var(--c-black);
}
.news-item:hover { padding-left: 10px; border-bottom-color: var(--c-accent); background: #fdfdfd; }
.news-date { font-family: var(--f-en); font-weight: 700; color: #888; margin-right: 25px; font-size: 0.9rem; }
.news-cat {
    background: var(--c-black); color: #fff; font-size: 0.7rem; padding: 4px 10px; margin-right: 20px;
    font-weight: 700; min-width: 90px; text-align: center; font-family: var(--f-en);
}
.news-title { font-weight: 500; font-size: 1rem; }
@media(max-width: 768px){ .news-item { flex-wrap: wrap; } .news-title { width: 100%; margin-top: 10px; } }
.pagination { display: flex; justify-content: center; margin-top: 40px; }

/* ABOUT */
.about-section {
    background-image: url('images/about.jpg'); background-size: cover; background-position: center;
    position: relative; color: #fff; z-index: 0;
}
.about-section::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 1;
}
.about-section .container { position: relative; z-index: 2; }
.about-text-wrapper { max-width: 800px; margin: 0 auto; text-align: center; }

.philosophy-head { font-size: 1.6rem; font-weight: 900; margin-bottom: 40px; color: #fff; line-height: 1.6; }
.philosophy-head span { background: linear-gradient(transparent 60%, rgba(248, 182, 45, 0.6) 60%); }

@media (max-width: 768px) {
    .philosophy-head { font-size: 4vw; white-space: nowrap; }
}

.philosophy-body { 
    font-size: 1rem; color: #f0f0f0; line-height: 2.2; 
    text-align: justify; font-weight: 700; 
}
.philosophy-body p { margin-bottom: 20px; }
@media (max-width: 768px) {
    .philosophy-body { 
        text-align: center; 
        line-height: 1.7; /* ←追加：スマホ版の行間を詰める（元は2.2） */
    }
    .philosophy-body p { 
        text-align: center; 
        text-align-last: center; 
        margin-bottom: 12px; /* ←追加：段落ごとの隙間も少し詰める（元は20px） */
    }
}

.about-catch {
    display: block; width: 100%; text-align: center; 
    font-size: 2.2rem; font-weight: 900; margin-top: 60px; 
    text-shadow: 0 0 10px rgba(0,0,0,0.5); line-height: 1.4;
}
.catch-part { display: inline-block; }

@media (max-width: 768px) { 
    .about-catch { font-size: 8vw; line-height: 1.3; margin-bottom: 40px; }
}

/* SERVICE (Top Page) */
.service-section { background: #fff; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; }
.service-card { background: #fff; height: 100%; display: flex; flex-direction: column; transition: 0.3s; }
.service-card:hover { transform: translateY(-10px); }
.service-thumb { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); margin-bottom: 20px; }
.service-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.service-card:hover .service-thumb img { transform: scale(1.1); }
.service-title { font-size: 1.3rem; font-weight: 900; margin-bottom: 10px; border-left: 5px solid var(--c-accent); padding-left: 15px; }
.service-desc { font-size: 0.95rem; color: #666; margin-bottom: 20px; flex-grow: 1; }
.service-link { text-align: right; color: var(--c-black); font-weight: 700; font-family: var(--f-en); font-size: 0.9rem; }

@media (max-width: 768px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .service-card { min-width: auto; }
    .service-title { font-size: 1rem; padding-left: 10px; border-left-width: 3px; }
    .service-desc { font-size: 0.8rem; line-height: 1.5; }
    .service-link { font-size: 0.8rem; }
}

/* SERVICE LIST (Archive) */
.service-list-section { background: #000; padding: 80px 0; color: #fff; }
.service-item { background: #111; border: 1px solid #333; transition: 0.3s; display: block; text-decoration: none; margin-bottom: 30px; }
.service-item:hover { transform: translateY(-5px); border-color: var(--c-accent); }
.service-img-wrap { width: 100%; aspect-ratio: 16/9; overflow: hidden; position: relative; }
.service-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.service-item:hover .service-img-wrap img { transform: scale(1.1); }
.service-info { padding: 25px; }
.service-info h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 15px; border-left: 4px solid var(--c-accent); padding-left: 10px; color: #fff; }
.service-info p { font-size: 0.95rem; color: #ccc; line-height: 1.6; margin-bottom: 20px; }
.service-more { text-align: right; font-family: var(--f-en); font-weight: 700; color: var(--c-accent); font-size: 0.9rem; }

/* WORKS & CATALOG */
.works-section { background: #000; color: #fff; }
.works-section .sec-title-jp { color: #fff; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }

.work-item { position: relative; aspect-ratio: 16/10; overflow: hidden; cursor: pointer; background: #000; }
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.work-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); opacity: 1; transition: 0.3s;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
}
.work-item:hover img { transform: scale(1.1); }
.work-item:hover .work-overlay { background: rgba(0,0,0,0.7); }

.work-cat {
    font-family: var(--f-en); font-size: 0.8rem; color: var(--c-accent);
    font-weight: 700; letter-spacing: 0.1em; margin-bottom: 5px;
    display: inline-block; background: rgba(0,0,0,0.8); padding: 4px 10px;
    border: 1px solid var(--c-accent);
}
.work-title { font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1.4; margin-top: 5px; }

@media(max-width: 768px){ .works-grid { grid-template-columns: 1fr; } }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; }
.catalog-card { text-align: center; }
.catalog-thumb { width: 100%; aspect-ratio: 4/5; overflow: hidden; margin-bottom: 15px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-radius: 4px; }
.catalog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.catalog-dl { display: inline-flex; align-items: center; background: #eee; padding: 10px 25px; border-radius: 50px; font-weight: 700; font-family: var(--f-en); }
.catalog-dl:hover { background: var(--c-accent); }

.catalog-title { margin-bottom: 30px; font-size: 1.2rem; }

@media (max-width: 768px) {
    .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .catalog-dl { padding: 8px 15px; font-size: 0.9rem; }
    .catalog-title { font-size: 1rem; }
}

/* COMPANY */
.company-section { background-color: #000; padding-bottom: 0; }
.company-section .sec-header, .company-section .sec-title-jp { color: #fff; }
.company-grid { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.company-tile { position: relative; aspect-ratio: 1/1; overflow: hidden; display: block; }
.company-tile.full { grid-column: 1 / -1; aspect-ratio: 32 / 9; }
.family-tile { background-image: url('images/family.jpg'); background-size: cover; background-position: center; }
.company-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.company-tile::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1; transition: 0.3s; }
.tile-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; z-index: 2; width: 100%; }

.tile-en { font-family: var(--f-en); font-size: 3.8rem; font-weight: 700; display: block; line-height: 1; }
.tile-jp { font-size: 1.2rem; margin-top: 10px; display: inline-block; font-weight: 900; }
.company-tile:hover img { transform: scale(1.05); }

@media(max-width: 768px) { 
    .company-grid { grid-template-columns: 1fr; } 
    .company-tile.full.family-tile { aspect-ratio: 16 / 9; background-image: url('images/family_sp.jpg'); } 
    .tile-en { font-size: 2rem; }
}

/* CONTACT */
.contact-section { padding: 120px 0; text-align: center; background: #fff; }
.contact-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 20px; font-family: var(--f-en); }
.contact-desc { font-weight: 700; margin-bottom: 60px; font-family: var(--f-base); }

/* SPONSOR */
.sponsor-section { background: #000; padding: 80px 0 0; }
.sponsor-wrapper { margin-bottom: 60px; text-align: center; }
.sponsor-wrapper.last { margin-bottom: 0; padding-bottom: 40px; }
.sponsor-head { font-family: var(--f-en); color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.sponsor-head::after { content:''; display: block; width: 30px; height: 2px; background: var(--c-accent); margin: 10px auto 0; }

.sponsor-list {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.sponsor-box {
    width: calc(25% - 15px); aspect-ratio: 32 / 9; background: transparent; display: block;
}
.sponsor-box img { width: 100%; height: 100%; object-fit: cover; vertical-align: bottom; }
.sponsor-list.official .sponsor-box { width: 400px; max-width: 100%; }

@media screen and (max-width: 1060px) {
    .sponsor-box { width: calc(50% - 10px); }
    .sponsor-list.official .sponsor-box { width: 100%; }
}

/* =========================================
   SINGLE WORKS & SERVICE PAGE (共通化)
   ========================================= */
.single-work-section { background: #000; color: var(--c-black); padding: 100px 0 80px; }

.single-article { 
    max-width: 1000px; margin: 0 auto; background: #fff; padding: 60px;
    border-radius: 4px; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.single-thumb { margin-bottom: 40px; border-radius: 4px; overflow: hidden; }
.single-thumb img { width: 100%; height: auto; display: block; }

.single-meta {
    margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid #eee;
    display: flex; gap: 20px; align-items: center; font-family: var(--f-en);
}
.work-date { color: #888; font-weight: 500; }
.work-label { background: var(--c-black); color: #fff; padding: 2px 10px; font-size: 0.8rem; border-radius: 2px; }

.single-content { font-size: 1rem; line-height: 1.9; margin-bottom: 80px; }

/* 詳細ページ本文内のリストスタイル */
.single-content ul {
    list-style: disc;      /* 黒丸を表示 */
    margin-left: 1.5em;    /* 左にインデント */
    margin-bottom: 30px;   /* 下に余白 */
}

.single-content li {
    margin-bottom: 5px;    /* 項目間の余白 */
}
.single-content h2, .single-content h3 { 
    font-size: 1.6rem; margin: 50px 0 30px; font-weight: 900; 
    position: relative; padding-left: 15px; border-left: 6px solid var(--c-accent);
}
.single-content h2::after { display: none; }

.single-content p { margin-bottom: 30px; }
.single-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 20px 0; }

/* Table Style for Service */
.single-content table { width: 100%; border-collapse: collapse; margin-bottom: 40px; }
.single-content th, .single-content td { border: 1px solid #ddd; padding: 15px; }
.single-content th { background: #f9f9f9; width: 30%; font-weight: 700; }

.single-footer-nav { text-align: center; margin-top: 60px; }

@media (max-width: 768px) {
    .single-article { padding: 30px 20px; }
    .single-content h2, .single-content h3 { font-size: 1.4rem; padding-left: 10px; border-left-width: 4px; }
    .single-content th, .single-content td { display: block; width: 100%; }
    .single-content th { background: #eee; }
}

/* =========================================
   PAGE HEADER
   ========================================= */
.page-header {
    background-color: var(--c-black); color: var(--c-white); padding: 180px 0 100px;
    text-align: center; background-size: cover; background-position: center;
}
.page-title-en { font-family: var(--f-en); font-size: 3.5rem; font-weight: 700; display: block; color: var(--c-accent); line-height: 1; margin-bottom: 15px; }
.page-title-jp { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.1em; }

/* =========================================
   BOTTOM NAV & FOOTER
   ========================================= */
.bottom-nav-strip { background: #fff; width: 100%; border-bottom: 1px solid #eee; padding: 30px 0; }
.bottom-nav-strip ul { display: flex; justify-content: center; gap: 40px; list-style: none; flex-wrap: wrap; }
.bottom-nav-strip a { font-family: var(--f-en); font-weight: 700; color: #000; font-size: 1rem; text-transform: uppercase; }
.bottom-nav-strip a:hover { color: var(--c-accent); }
@media (max-width: 768px) {
    .bottom-nav-strip { padding: 15px 0; }
    .bottom-nav-strip ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px 5px; text-align: center; }
    .bottom-nav-strip a { font-size: 12px; white-space: nowrap; }
}

.footer { background: #050505; color: #888; padding: 40px 0 30px; text-align: center; font-size: 0.8rem; }
.footer::before { content: ''; display: block; width: 100%; height: 3px; background: var(--c-accent); margin-bottom: 40px; position: relative; top: -40px; }
.footer-logo { margin-bottom: 30px; display: inline-block; }
.footer-logo img { height: 60px; width: auto; }
.footer-sns { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; }
.footer-sns a { width: 50px; height: 50px; border: 1px solid #333; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; transition: 0.3s; }
.footer-sns a:hover { background: var(--c-accent); color: #000; border-color: var(--c-accent); }

.footer-links a { 
    margin: 0 10px; color: #ccc; border: 1px solid #444; padding: 8px 20px; 
    display: inline-block; text-transform: uppercase;
    font-family: var(--f-en); letter-spacing: 0.05em; 
}

.footer-copy { font-family: var(--f-en); color: #555; margin-top: 30px;}
@media(max-width: 768px) { .footer { padding-top: 20px; } .footer::before { margin-bottom: 20px; top: -20px; } }

.cta { text-align: center; }
.cta-title { display: inline-block; margin-bottom: 20px; }
.cta .btn { 
    background-color: var(--c-accent); 
    color: #fff;
    min-width: 300px;
    margin-top: 20px;
    border: 2px solid var(--c-accent);
}
.cta .btn:hover { background-color: #fff; color: #000; border-color: var(--c-accent); }

/* =========================================
   COMPANY PAGE STYLES
   ========================================= */
.company-list { border-top: 2px solid var(--c-black); margin-bottom: 60px; }
.company-row { display: flex; border-bottom: 1px solid #ddd; }
.company-row dt { width: 25%; padding: 25px 20px; background: #f9f9f9; font-weight: 700; display: flex; align-items: center; }
.company-row dd { width: 75%; padding: 25px 30px; background: #fff; }
.en-name { display: block; color: #888; font-family: var(--f-en); font-size: 0.9rem; margin-top: 5px; }

.business-list { display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 0; padding: 0; }
.business-list li { position: relative; padding-left: 15px; width: calc(50% - 15px); list-style: none; }
.business-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--c-accent); border-radius: 50%; }

@media (max-width: 768px) {
    .company-row { display: block; }
    .company-row dt { width: 100%; padding: 15px 20px; background: #eee; border-bottom: 1px solid #fff; }
    .company-row dd { width: 100%; padding: 20px; }
    .business-list li { width: 100%; margin-bottom: 5px; }
}

/* =========================================
   MESSAGE PAGE STYLES & ANIMATIONS
   ========================================= */

/* ★ フェードインアニメーション ★ */
@keyframes pageFadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.message-fade-in {
    opacity: 0;
    /* アニメーション名, 秒数, 動き(少し溜めてスッと), 完了後に状態を維持 */
    animation: pageFadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* 表示を少しずつ遅らせるクラス */
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

/* Hero Area */
.message-section { 
    padding-top: 100px; 
    padding-bottom: 0 !important; 
}
.msg-hero { display: flex; align-items: center; justify-content: space-between; margin-bottom: 100px; gap: 60px; }
.msg-hero-text { flex: 1; }

.catch-copy {
    font-size: 3.2rem; /* PC版 */
    font-weight: 900; line-height: 1.75; margin-bottom: 35px;
    font-feature-settings: "palt"; letter-spacing: 0.05em;
}
.catch-copy .highlight {
    background: linear-gradient(transparent 60%, rgba(248, 182, 45, 0.4) 60%); padding-bottom: 3px;
}
.sub-catch {
    font-size: 1.8rem; /* PC版 */
    font-weight: 700; color: #333; border-left: 5px solid var(--c-accent);
    padding-left: 20px; line-height: 1.9; margin-top: 0;
}

.msg-hero-img { flex: 1; text-align: right; aspect-ratio: 1 / 1; position: relative; }
.msg-hero-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; box-shadow: 20px 20px 0 var(--c-gray); filter: grayscale(20%); }

.msg-body { max-width: 800px; margin: 0 auto; }
.msg-body p { margin-bottom: 30px; text-align: justify; font-size: 1.05rem; }
.msg-subhead { font-size: 1.5rem; font-weight: 900; margin: 60px 0 30px; border-bottom: 2px solid var(--c-accent); padding-bottom: 10px; display: inline-block; }
.mission-text { font-weight: 700; background: #f9f9f9; padding: 30px; border-left: 5px solid var(--c-black); margin-top: 40px; }

.sign { text-align: right; margin-top: 60px; font-weight: 700; line-height: 1.6; }
.sign-img { width: 180px; height: auto; display: block; margin: 15px 0 0 auto; filter: invert(1); }

/* ★960px以下でヒーロー部分をスマホレイアウトに切り替え */
@media (max-width: 960px) {
    .message-section { padding-top: 60px; }
    .msg-hero { 
        flex-direction: column-reverse; 
        align-items: center; 
        gap: 40px; 
        margin-bottom: 60px; 
    }
    .msg-hero-text {
        width: 100%;
        text-align: center; 
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .catch-copy { 
        font-size: 2.2rem; 
        line-height: 1.6; 
        margin-bottom: 25px; 
        text-align: center; 
    }
    .sub-catch { 
        font-size: 1.3rem; 
        line-height: 1.8; 
        text-align: center; 
        border-left: none; 
        padding-left: 0;
        position: relative;
        padding-top: 15px; 
    }
    .sub-catch::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 3px;
        background: var(--c-accent);
    }
    .msg-hero-img { 
        width: 100%; 
        max-width: 550px; /* タブレットで大きすぎないように制限 */
        margin: 0 auto; 
        aspect-ratio: 1/1; 
    }
    .msg-hero-img img { box-shadow: 10px 10px 0 var(--c-gray); }
}

/* ★スマホ版(768px以下)の文字サイズや他のセクションの微調整（文字サイズのみ維持） */
@media (max-width: 768px) {
    .catch-copy { 
        font-size: 1.25rem; 
        margin-bottom: 20px; 
    }
    .sub-catch { 
        font-size: 0.95rem; 
        padding-top: 12px; 
    }
    .msg-body p { font-size: 1rem; }
}


/* Profile Section */
.profile-wrapper { position: relative; background-color: #000; color: #fff; padding: 100px 0; overflow: hidden; margin-top: 100px; margin-bottom: 0; }
.bg-deco-text { position: absolute; top: -30px; right: -20px; font-family: var(--f-en); font-size: 15rem; font-weight: 700; color: #1a1a1a; line-height: 1; z-index: 0; pointer-events: none; user-select: none; }
.profile-inner { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 60px; max-width: 1000px; margin: 0 auto; padding: 0 20px; }

.profile-visual { width: 48%; flex-shrink: 0; } 
.profile-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; box-shadow: 15px 15px 0px rgba(50, 50, 50, 0.5); border-radius: 4px; }

/* Sub Gallery (3:2 Landscape) */
.profile-sub-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 15px; }
.sub-img-box { width: 100%; aspect-ratio: 3 / 2; overflow: hidden; }
.sub-img-box img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(30%); transition: 0.3s; }
.sub-img-box img:hover { filter: grayscale(0%); transform: scale(1.05); }

.profile-content { flex-grow: 1; padding-top: 10px; }
.profile-header { margin-bottom: 30px; border-bottom: 1px solid #333; padding-bottom: 20px; }
.p-role { display: block; color: var(--c-accent); font-family: var(--f-en); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.1em; margin-bottom: 5px; }
.p-name-en { font-family: var(--f-en); font-size: 3.5rem; line-height: 1; font-weight: 700; margin-bottom: 10px; letter-spacing: 0.02em; }
.p-name-jp-row { display: flex; align-items: baseline; gap: 15px; }
.p-name-jp { font-size: 1.4rem; font-weight: 700; }
.p-age { font-family: var(--f-en); color: #888; font-size: 0.9rem; }

.profile-bio { margin-bottom: 40px; }
.profile-bio p { font-size: 0.95rem; line-height: 2; color: #ccc; margin-bottom: 20px; text-align: justify; }
.highlight-text { color: #fff; font-weight: 700; border-bottom: 1px solid var(--c-accent); }

.profile-skills { display: flex; flex-direction: column; gap: 10px; }
.skill-label { font-family: var(--f-en); font-weight: 700; color: #666; font-size: 0.8rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; }
.skill-tags li { font-size: 0.8rem; color: #fff; border: 1px solid #444; padding: 6px 16px; border-radius: 50px; transition: 0.3s; }
.skill-tags li:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* ★960px以下でプロフィール部分もスマホレイアウト（縦積み）に切り替え */
@media (max-width: 960px) {
    .profile-wrapper { padding: 60px 0; margin-top: 60px; }
    .bg-deco-text { font-size: 6rem; right: -10px; top: -10px; opacity: 0.5; }
    .profile-inner { flex-direction: column; gap: 40px; }
    .profile-visual { width: 100%; }
    .profile-img { width: 100%; max-width: 100%; margin: 0 auto; border-radius: 4px; box-shadow: 10px 10px 0 rgba(80, 80, 80, 0.5); } 
    .profile-content { width: 100%; text-align: left; padding-top: 0; }
    .p-name-en { font-size: 2.8rem; }
    .p-name-jp-row { flex-direction: row; align-items: center; }
    .skill-tags li { font-size: 0.75rem; padding: 5px 12px; }
}

/* =========================================
   CONTACT FORM 7 STYLES (追加)
   ========================================= */
.wpcf7-submit {
    display: inline-block;
    background-color: var(--c-accent); color: var(--c-white);
    border: 2px solid var(--c-accent); padding: 15px 50px; font-weight: 900;
    font-family: var(--f-en); font-size: 1rem; letter-spacing: 0.1em;
    border-radius: 0; box-shadow: none;
    cursor: pointer; transition: 0.3s;
    -webkit-appearance: none;
}
.wpcf7-submit:hover {
    background-color: #fff; color: #000; border-color: var(--c-accent);
    transform: none; box-shadow: none;
}