:root {
    /* Layout Spacing Variables */
    --section-gap-desktop: 8rem; /* デスクトップ用の標準セクション間余白 */
    --section-gap-mobile: 5rem;   /* スマホ用の標準セクション間余白 */
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    background-color: #FFFFFF;
    color: #111;
    line-height: 1.9;
    letter-spacing: 0.05em;
}

/* Header - モノトーン */
.site-header {
    background: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #ddd;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    color: #111;
    font-weight: 700;
    font-family: "Futura", "Century Gothic", "Trebuchet MS", sans-serif; /* ご指定のFuturaを第一候補に設定 */
    letter-spacing: -0.02em; /* ロゴのように文字が少し詰まった力強い印象に調整 */
    display: flex;
    align-items: center;
    gap: 0.8rem; /* アイコンと文字の間の余白 */
    text-decoration: none;
}

.site-title span {
    display: inline-block;
    transform: scaleX(0.87); /* ご指定に合わせて87%の長体に微調整 */
    transform-origin: left center; /* 左端を軸にして変形 */
}

.site-icon {
    height: 55px; /* ご要望に合わせてさらに大きく存在感を出す設定 */
    width: auto;
    display: block;
    transform: translateY(-6px); /* さらに約1mm(計6px)上に微調整 */
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.site-nav a {
    color: #111;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Hero */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start; /* 左寄せ */
    align-items: center; /* 上下の中央配置 */
    padding-left: 0; /* コンテナ側の余白をゼロに */
}

.hero-logo {
    max-width: 100%; 
    width: 132%; /* 大きさはそのままキープ */
    height: auto;
    margin-left: -10%; /* 全体を約2cm右へスライドさせるため、マイナスマージンを弱める */
    mix-blend-mode: multiply; /* 白背景を透過させて下のベース画像を透けさせる */
}

/* Sections */
.section-padding {
    padding: 5rem 0;
}

.intro-section {
    padding: 1.5rem 0;
    text-align: center;
}

#philosophy {
    padding-top: 3.5rem;
}

#strengths {
    padding-top: 0;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #111;
    font-weight: 500;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    overflow-wrap: break-word;
    word-break: break-word;
    word-spacing: 0.05em;
}

.section-title {
    font-family: "Hiragino Mincho ProN", "HiraMinProN-W3", "Noto Serif JP", serif;
    font-size: 2rem;
    color: #111;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.philosophy-text {
    line-height: 1.9;
    color: #111;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.philosophy-text p {
    margin-bottom: 1.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    overflow-wrap: break-word;
    word-break: break-word;
    word-spacing: 0.05em;
}

/* Strengths - アイコン225px設定 */
#strengths .container {
    max-width: 1240px;
    margin: 0 auto;
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.strength-card {
    background: #FFF;
    padding: 2.5rem 2rem;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.strength-icon {
    width: 225px;
    height: 225px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.strength-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.strength-card h3 {
    font-family: "Hiragino Mincho ProN", "HiraMinProN-W3", "Noto Serif JP", serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.strength-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: left;
}

/* Footer */
.site-footer {
    background: #111;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.8rem;
}

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    .site-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem 1.2rem;
        padding: 0;
        margin-top: 0.5rem;
    }

    .site-title {
        font-size: 1.2rem;
        text-align: center;
    }

    .strengths-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .strength-icon {
        width: 120px;
        height: 120px;
    }

    .hero-content {
        padding-left: 5%; /* スマホでは左の余白を少し狭く */
    }
    .hero-logo {
        width: 75%; /* スマホではロゴを大きく表示 */
    }
    .section-padding,
    .content-section {
        padding: 3.5rem 0;
    }
    .content-subtitle {
        margin-top: 3.5rem !important;
        margin-bottom: 1.8rem;
        font-size: 1.35rem;
    }
    .content-subtitle.mt-5 {
        margin-top: var(--section-gap-mobile) !important;
    }
    .editable-content > .content-subtitle:first-child,
    .editable-content > .content-subtitle:first-child.mt-5 {
        margin-top: 0.5rem !important;
    }
    .content-headline {
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    .content-headline.mt-5 {
        margin-top: 2.5rem !important;
    }
    .sns-links {
        margin-bottom: 2.5rem;
    }
}

/* -----------------------------------
   Subpage Common Styles
----------------------------------- */
.page-header {
    background-color: #f9f9f9;
    padding: 4rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.page-title {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.content-section {
    padding: 5rem 0;
}

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

.content-subtitle {
    font-family: "Hiragino Mincho ProN", "HiraMinProN-W3", "Noto Serif JP", serif;
    font-size: 1.6rem;
    margin: 5rem 0 2.5rem;
    text-align: center;
    font-weight: 500;
}

.content-subtitle.mt-5 {
    margin-top: var(--section-gap-desktop);
}

.content-subtitle:first-child,
.editable-content > .content-subtitle:first-child,
.editable-content > .content-subtitle:first-child.mt-5 {
    margin-top: 1rem !important;
}

.content-headline {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: #222;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.content-headline.mt-5 {
    margin-top: 3.5rem;
}

/* Service Page: Domain Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-item {
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 2.2rem 1.8rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.04);
}

.service-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #111;
    text-align: center;
}

.service-desc,
.service-item p,
.service-card p {
    font-size: 0.9rem;
    color: #555;
    margin: 0 auto !important;
    line-height: 1.7;
    text-align: center !important;
}

/* Service Page: Workflow Flowchart */
.workflow-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.flow-step {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border: 2px solid #111;
    border-radius: 8px;
    padding: 1.6rem 1.5rem;
    text-align: center !important;
}

.flow-step-num {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: #111;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
    text-align: center !important;
}

.flow-step-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #111;
    text-align: center !important;
}

.flow-step-desc {
    font-size: 0.9rem;
    color: #555;
    margin: 0 auto !important;
    text-align: center !important;
}

.workflow-card,
.workflow-step {
    text-align: center !important;
}

.flow-arrow {
    width: 0; 
    height: 0; 
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 14px solid #111;
    margin: 0.8rem 0;
}

/* About Page */
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-divider {
    color: #ccc;
    margin: 0 0.5rem;
    vertical-align: middle;
}

.profile-roles {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .profile-divider {
        display: none;
    }
    .profile-roles {
        display: block;
        margin-top: 0.5rem;
        white-space: normal;
        text-align: center;
    }
}

.profile-text p {
    margin-bottom: 1.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    overflow-wrap: break-word;
    word-break: break-word;
    word-spacing: 0.05em;
}

/* General editable content paragraphs */
.editable-content p {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    text-align: left;
    overflow-wrap: break-word;
    word-break: break-word;
    word-spacing: 0.05em;
}

.faq-list {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 2.5rem;
}

.faq-q {
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.8rem;
}

.faq-q::before {
    content: "Q.";
    position: absolute;
    left: 0;
    color: #111;
    font-weight: 900;
}

.faq-a {
    margin-left: 0;
    padding-left: 1.8rem;
    position: relative;
    color: #444;
}

.faq-a::before {
    content: "A.";
    position: absolute;
    left: 0;
    font-weight: 900;
    color: #111;
}

/* Contact Page */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.required {
    color: #e74c3c;
    margin-left: 0.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #111;
    background: #fff;
}

/* Utilities & Buttons */
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; }
.text-center { text-align: center; }

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: #111;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #333;
}

/* Navigation Active State */
.site-nav a.active {
    border-bottom: 2px solid #111;
    padding-bottom: 0.2rem;
}

/* -----------------------------------
   Additional Features (SNS, Journal, Works)
----------------------------------- */

/* SNS Buttons */
.sns-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 3.5rem;
}

.sns-icon-link {
    display: inline-block;
    width: 44px;
    height: 44px;
    transition: opacity 0.3s, transform 0.3s;
}

.sns-icon-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sns-icon-link:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

/* Journal Articles */
.journal-articles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.journal-card {
    border-bottom: 1px dashed #bbb;
    padding-bottom: 1.5rem;
}

.journal-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.journal-card a {
    display: block;
    text-decoration: none;
    color: #111;
    transition: opacity 0.3s, transform 0.3s;
    background: transparent;
}

.journal-card a:hover {
    opacity: 0.8;
    transform: translateX(4px);
}

.journal-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.5;
}

.journal-meta {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.category-tag {
    font-size: 0.8rem;
    color: #888;
    margin-left: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.journal-card-date {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

.text-left { text-align: left; }

/* Works Page */
.works-list {
    margin-top: 2rem;
}

.works-item {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.works-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #111;
    border-left: 4px solid #111;
    padding-left: 1rem;
}

.works-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.5rem;
}

.works-details dt {
    font-weight: 700;
    color: #444;
    white-space: nowrap;
}

.works-details dd {
    margin: 0;
    line-height: 1.8;
}

/* Mobile adjustments for Works */
@media (max-width: 600px) {
    .works-details {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
    .works-details dt {
        margin-top: 1rem;
    }
    .works-details dt:first-child {
        margin-top: 0;
    }
}

/* Projects Grid (Card Layout) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.project-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
    text-decoration: none;
}

.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card-img img {
    transform: scale(1.05);
}

.project-card-img::after {
    display: none; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(17, 17, 17, 0.8);
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-card-img::after {
    opacity: 1;
}

.project-card-content {
    padding: 1.5rem 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #111;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.project-client {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.project-card-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Contact Page Specific */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-container .lead-text {
    text-align: center;
}

@media (min-width: 769px) {
    .contact-container {
        position: relative;
        left: 2rem;
    }
}