/* ==========================================================================
   Pages Shared Styles
   Front-page トンマナ統一デザイン
   Noto Serif JP (見出し) + Noto Sans JP (本文)
   ========================================================================== */

:root {
    --pg-font-sans: 'Noto Sans JP', sans-serif;
    --pg-font-serif: 'Noto Serif JP', serif;
    --pg-text-main: #111;
    --pg-text-muted: #888;
    --pg-text-light: #555;
    --pg-accent: #0a192f;
    --pg-bg: #ffffff;
    --pg-bg-alt: #fcfcfc;
    --pg-container: 1200px;
    --pg-container-wide: 1400px;
    --pg-trans: 1s cubic-bezier(0.22, 1, 0.36, 1);
}

body {
    font-family: var(--pg-font-sans) !important;
    letter-spacing: 0.05em;
    color: var(--pg-text-main);
}

/* ==========================================================================
   Scroll Reveal (front-page.css と共通)
   ========================================================================== */
.js-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--pg-trans), transform var(--pg-trans);
}

.js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pg-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Section Head (fp-section-head パターン)
   英語ラベル(左) + 日本語見出し(右) + border-top
   ========================================================================== */
.pg-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
    margin-bottom: 48px;
}

.pg-heading-en {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pg-text-muted);
}

.pg-heading-jp {
    font-family: var(--pg-font-serif);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 500;
    margin: 0;
    color: var(--pg-text-main);
}

/* ==========================================================================
   Page Hero (画像ベース)
   ========================================================================== */
.page-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pg-accent) 0%, #1a365d 100%);
}

.page-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.page-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 60px 20px 0; /* ヘッダー重複分(120px)の半分を上にオフセット */
}

.page-hero__label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    opacity: 0;
    animation: pg-fade-up 1s forwards 0.3s;
}

.page-hero__title {
    font-family: var(--pg-font-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    letter-spacing: 0.05em;
    color: #fff;
    opacity: 0;
    animation: pg-fade-up 1s forwards 0.6s;
}

/* Hero Simple (法務ページ用 - グラデーション背景、コンパクト) */
.page-hero--simple {
    min-height: auto;
    padding: 140px 20px 60px;
}

.page-hero--simple .page-hero__label,
.page-hero--simple .page-hero__title {
    opacity: 1;
    animation: none;
}

.page-hero--simple .page-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    font-family: var(--pg-font-sans);
}

/* Hero Desc (--simple 用) */
.page-hero__desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin: 1rem 0 0;
}

/* ==========================================================================
   Page CTA
   ========================================================================== */
.page-cta {
    background: var(--pg-accent);
    padding: 80px 20px;
    text-align: center;
}

.page-cta__inner {
    max-width: 600px;
    margin: 0 auto;
}

.page-cta__title {
    font-family: var(--pg-font-serif);
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    margin: 0 0 1rem;
}

.page-cta__desc {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 2rem;
    line-height: 1.8;
}

.page-cta__btn {
    display: inline-block;
    background: #fff;
    color: var(--pg-accent);
    padding: 16px 60px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.page-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Services Page
   ========================================================================== */
.page-services .sv-section {
    padding: 80px 5%;
}

.page-services .sv-section__inner {
    max-width: var(--pg-container-wide);
    margin: 0 auto;
}

/* Service Rows (front-page fp-service-row パターン) */
.sv-list {
    display: flex;
    flex-direction: column;
}

.sv-row {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 60px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sv-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sv-row:nth-child(even) {
    flex-direction: row-reverse;
}

.sv-row__img-wrap {
    flex: 1;
    height: 340px;
    overflow: hidden;
    border-radius: 4px;
}

.sv-row__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.sv-row:hover .sv-row__img {
    transform: scale(1.05);
}

.sv-row__content {
    flex: 1;
}

.sv-row__num {
    display: block;
    font-size: 4rem;
    font-family: var(--pg-font-serif);
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
    margin-bottom: -20px;
    position: relative;
    z-index: 0;
}

.sv-row__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 20px;
}

.sv-row__desc {
    color: var(--pg-text-muted);
    line-height: 2;
    margin-bottom: 24px;
}

.sv-row__features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sv-row__features li {
    position: relative;
    padding: 6px 0 6px 24px;
    color: var(--pg-text-light);
    font-size: 0.95rem;
}

.sv-row__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 12px;
    height: 1px;
    background: var(--pg-accent);
}

@media (max-width: 900px) {
    .sv-row {
        flex-direction: column !important;
        gap: 30px;
        padding: 40px 0;
    }

    .sv-row__img-wrap {
        width: 100%;
        height: 220px;
    }
}

/* ==========================================================================
   Profile Page
   ========================================================================== */
.page-profile .pf-section {
    padding: 80px 5%;
}

.page-profile .pf-section--alt {
    background: var(--pg-bg-alt);
}

.page-profile .pf-section__inner {
    max-width: var(--pg-container);
    margin: 0 auto;
}

/* Profile Intro */
.pf-intro {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

.pf-intro__img-wrap {
    overflow: hidden;
    border-radius: 4px;
}

.pf-intro__img {
    width: 100%;
    display: block;
}

.pf-intro__name {
    font-family: var(--pg-font-serif);
    font-size: 2rem;
    font-weight: 500;
    margin: 0 0 8px;
}

.pf-intro__role {
    font-size: 0.9rem;
    color: var(--pg-text-muted);
    margin: 0 0 24px;
    letter-spacing: 0.1em;
}

.pf-intro__desc {
    line-height: 2;
    color: var(--pg-text-light);
}

@media (max-width: 768px) {
    .pf-intro {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pf-intro__img-wrap {
        max-width: 240px;
    }
}

/* Skills Grid */
.pf-skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pf-skill-card {
    background: #fff;
    padding: 32px;
    border-radius: 4px;
    border-top: 2px solid var(--pg-accent);
}

.pf-skill-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.pf-skill-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pf-skill-card__list li {
    padding: 6px 0;
    color: var(--pg-text-muted);
    font-size: 0.9rem;
}

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

/* Career Timeline */
.pf-timeline {
    max-width: 700px;
    position: relative;
    padding-left: 32px;
}

.pf-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.pf-timeline-item {
    position: relative;
    padding: 0 0 40px 24px;
}

.pf-timeline-item:last-child {
    padding-bottom: 0;
}

.pf-timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 8px;
    width: 9px;
    height: 9px;
    background: var(--pg-accent);
    border-radius: 50%;
}

.pf-timeline-item__year {
    display: inline-block;
    font-family: var(--pg-font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--pg-accent);
    margin-bottom: 4px;
}

.pf-timeline-item__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.pf-timeline-item__desc {
    color: var(--pg-text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.page-contact .ct-section {
    padding: 80px 5%;
}

.page-contact .ct-section__inner {
    max-width: var(--pg-container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 768px) {
    .page-contact .ct-section__inner {
        grid-template-columns: 1fr;
    }
}

/* Contact Form */
.ct-form-wrap {
    background: var(--pg-bg-alt);
    padding: 40px;
    border-radius: 4px;
}

.ct-form-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ct-form__group {
    margin-bottom: 24px;
}

.ct-form__group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pg-text-main);
    margin-bottom: 8px;
}

.ct-form__group .required {
    color: #c0392b;
    font-size: 0.75rem;
    margin-left: 4px;
}

.ct-form__group input,
.ct-form__group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--pg-font-sans);
    background: #fff;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.ct-form__group input:focus,
.ct-form__group textarea:focus {
    outline: none;
    border-color: var(--pg-accent);
}

.ct-form__submit {
    margin-top: 32px;
}

.ct-form__btn {
    display: inline-block;
    width: 100%;
    background: var(--pg-accent);
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--pg-font-sans);
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: opacity 0.3s;
}

.ct-form__btn:hover {
    opacity: 0.85;
}

/* Contact Form 7 スタイル統一 */
.ct-form-wrap .wpcf7 {
    font-family: var(--pg-font-sans);
}

.ct-form-wrap .wpcf7 p {
    margin: 0 0 24px;
}

.ct-form-wrap .wpcf7 p:last-of-type {
    margin-bottom: 0;
}

.ct-form-wrap .wpcf7 label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pg-text-main);
    margin-bottom: 8px;
}

.ct-form-wrap .wpcf7 input[type="text"],
.ct-form-wrap .wpcf7 input[type="email"],
.ct-form-wrap .wpcf7 input[type="tel"],
.ct-form-wrap .wpcf7 input[type="url"],
.ct-form-wrap .wpcf7 input[type="number"],
.ct-form-wrap .wpcf7 textarea,
.ct-form-wrap .wpcf7 select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--pg-font-sans);
    background: #fff;
    transition: border-color 0.3s;
    box-sizing: border-box;
    margin-top: 4px;
}

.ct-form-wrap .wpcf7 input:focus,
.ct-form-wrap .wpcf7 textarea:focus,
.ct-form-wrap .wpcf7 select:focus {
    outline: none;
    border-color: var(--pg-accent);
}

.ct-form-wrap .wpcf7 textarea {
    min-height: 160px;
    resize: vertical;
}

.ct-form-wrap .wpcf7 input[type="submit"] {
    display: block;
    width: 100%;
    background: var(--pg-accent);
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--pg-font-sans);
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-top: 8px;
}

.ct-form-wrap .wpcf7 input[type="submit"]:hover {
    opacity: 0.85;
}

.ct-form-wrap .wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 14px 16px !important;
    border-radius: 4px !important;
    font-size: 0.875rem;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

.ct-form-wrap .wpcf7-not-valid-tip {
    color: #c0392b;
    font-size: 0.8rem;
    margin-top: 6px;
    display: block;
}

.ct-form-wrap .wpcf7 .wpcf7-not-valid {
    border-color: #c0392b;
}

.ct-form-wrap .wpcf7-mail-sent-ok {
    border-color: #27ae60 !important;
    color: #27ae60;
}

/* Contact Info */
.ct-info {
    padding: 40px;
    background: var(--pg-accent);
    color: #fff;
    border-radius: 4px;
    height: fit-content;
}

.ct-info__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.ct-info__list {
    margin: 0;
}

.ct-info__list dt {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 20px;
}

.ct-info__list dt:first-child {
    margin-top: 0;
}

.ct-info__list dd {
    margin: 6px 0 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.ct-info__list a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s;
}

.ct-info__list a:hover {
    border-color: #fff;
}

/* ==========================================================================
   News Page
   ========================================================================== */
.page-news .nw-section {
    padding: 80px 5%;
    background: var(--pg-bg);
}

.page-news .nw-section__inner {
    max-width: 900px;
    margin: 0 auto;
}

/* News List */
.nw-list {
    border-top: 1px solid #eee;
}

.nw-item {
    display: flex;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: var(--pg-text-main);
    transition: background 0.3s, padding 0.3s;
}

.nw-item:hover {
    padding-left: 16px;
    background: #fafafa;
}

.nw-item__date {
    font-family: var(--pg-font-serif);
    color: var(--pg-text-muted);
    font-size: 0.9rem;
    width: 120px;
    flex-shrink: 0;
}

.nw-item__cat {
    display: inline-block;
    font-size: 0.7rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--pg-text-muted);
    padding: 3px 10px;
    margin-right: 24px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.nw-item__title {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.6;
}

.nw-item__arrow {
    margin-left: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
    flex-shrink: 0;
}

.nw-item:hover .nw-item__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* News Pagination */
.nw-pagination {
    margin-top: 48px;
    text-align: center;
}

.nw-pagination__inner {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nw-pagination__inner a,
.nw-pagination__inner span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pg-text-muted);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.nw-pagination__inner a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--pg-text-main);
}

.nw-pagination__inner .current {
    background: var(--pg-accent);
    color: #fff;
}

/* News Empty */
.nw-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--pg-bg-alt);
    border-radius: 4px;
}

.nw-empty__title {
    font-size: 1.25rem;
    color: var(--pg-text-main);
    margin: 0 0 8px;
}

.nw-empty__sub {
    color: var(--pg-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 767px) {
    .nw-item {
        flex-wrap: wrap;
        gap: 4px;
    }

    .nw-item__date {
        width: auto;
        margin-right: 12px;
    }

    .nw-item__title {
        width: 100%;
        margin-top: 4px;
    }

    .nw-item__arrow {
        display: none;
    }
}

/* ==========================================================================
   Portfolio Page
   ========================================================================== */

/* Filter (tab style) */
.wk-filter {
    position: sticky;
    top: 104px;
    z-index: 100;
    background: var(--pg-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0 5%;
}

.wk-filter__inner {
    max-width: var(--pg-container-wide);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.wk-filter__tab {
    display: inline-block;
    padding: 18px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--pg-font-sans);
    color: var(--pg-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    letter-spacing: 0.05em;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
}

.wk-filter__tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--pg-accent);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.wk-filter__tab:hover {
    color: var(--pg-text-main);
}

.wk-filter__tab:hover::after {
    transform: scaleX(1);
}

.wk-filter__tab.is-active {
    color: var(--pg-text-main);
}

.wk-filter__tab.is-active::after {
    transform: scaleX(1);
}

/* Works Section */
.wk-section {
    padding: 60px 5% 80px;
    background: var(--pg-bg-alt);
}

.wk-section__inner {
    max-width: var(--pg-container-wide);
    margin: 0 auto;
}

/* Works Grid */
.wk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.wk-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/3;
}

.wk-card__link {
    display: block;
    height: 100%;
}

.wk-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.wk-card:hover .wk-card__img {
    transform: scale(1.05);
}

.wk-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    padding: 40px 24px 24px;
    color: #fff;
}

.wk-card__cat {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-bottom: 6px;
}

.wk-card__title {
    font-size: 1.05rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .wk-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .wk-filter__inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wk-filter__tab {
        padding: 14px 18px;
        font-size: 0.8125rem;
        flex-shrink: 0;
    }

    .wk-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================================================
   Legal Pages (Privacy Policy, Terms)
   ========================================================================== */
.legal-content {
    padding: 60px 20px;
    background: #fff;
}

.legal-content__inner {
    max-width: 800px;
    margin: 0 auto;
    line-height: 2;
}

.legal-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.legal-content h2 {
    font-size: 1.25rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pg-accent);
}

.legal-content ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.legal-content li {
    margin: 0.5rem 0;
}

.legal-date {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.legal-table th,
.legal-table td {
    padding: 1rem;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background: #f8f9fa;
    width: 30%;
    font-weight: 600;
}

@media (max-width: 600px) {
    .legal-table th,
    .legal-table td {
        display: block;
        width: 100%;
    }

    .legal-table th {
        background: var(--pg-accent);
        color: #fff;
    }
}

/* ==========================================================================
   Global Responsive
   ========================================================================== */
@media (max-width: 767px) {
    .pg-section-head {
        flex-direction: column;
        gap: 4px;
    }
}
