/**
 * front-page.css
 */

/* ==========================================================
   Background Dynamics & Canvas
   ========================================================== */
.c-bg-effects { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.c-bg-effects__grain { position: absolute; inset: 0; z-index: 9999; opacity: 0.06; mix-blend-mode: overlay; pointer-events: none; }
.c-bg-effects__grain svg { width: 100%; height: 100%; }
.c-bg-effects__canvas { position: absolute; inset: 0; z-index: 30; opacity: 0.6; }

.c-bg-effects__sunrise-wrap { position: absolute; inset: 0; overflow: hidden; background: var(--obi-base); }
.c-bg-effects__sunrise-base { position: absolute; inset: 0; background: var(--obi-primary); transition: background-color 1s ease; }

.obi-sunrise-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, var(--obi-primary) 0%, var(--obi-sunrise-mid) 30%, var(--obi-secondary) 60%, var(--obi-sunset-orange) 85%, var(--obi-accent) 100%);
    opacity: 0; transform: translateY(30%); will-change: transform, opacity;
}

.obi-sunrise-sun-container { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) translateY(40vh) scale(1); opacity: 0; will-change: transform, opacity; }
.obi-sunrise-sun-core {
    width: 100vw; height: 100vw; border-radius: 50%; 
    filter: blur(80px);
    background: radial-gradient(circle at center, var(--obi-accent) 0%, var(--obi-sunset-orange) 40%, var(--obi-secondary) 80%, transparent 100%);
}
@media (max-width: 767px) {
    .obi-sunrise-sun-core { width: 140vw; height: 140vw; filter: blur(50px); }
}
@media (prefers-reduced-motion: reduce) {
    .obi-sunrise-sun-core { filter: none; opacity: 0.8; }
}

/* ==========================================================
   Animations (.js-reveal)
   ========================================================== */
@keyframes revealUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}
.js-reveal { opacity: 0; transform: translateY(60px); }
@media (prefers-reduced-motion: no-preference) {
    .js-reveal.is-visible { animation: revealUp 2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
}
@media (prefers-reduced-motion: reduce) {
    .js-reveal { opacity: 1; transform: none; }
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }

/* ==========================================================
   Block: Hero
   ========================================================== */
.p-hero {
    position: relative; min-height: 100vh; display: flex; flex-direction: column;
    justify-content: center; padding: 5rem 1.5rem; color: var(--obi-white);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
@media (min-width: 768px) { .p-hero { padding: 5rem 4rem; } }
@media (min-width: 1024px) { .p-hero { padding: 5rem 6rem; } }

.p-hero__inner { max-width: 1152px; width: 100%; margin: 0 auto; }
.p-hero__subtitle-wrap { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 3.5rem; overflow: hidden; }
.p-hero__subtitle { font-size: 0.6875rem; letter-spacing: 0.25em; font-weight: bold; color: var(--obi-white); opacity: 0.9; }
.p-hero__subtitle-line { height: 1px; width: 3rem; background: rgba(255,255,255,0.3); }
@media (min-width: 768px) { .p-hero__subtitle-line { width: 5rem; } }
.p-hero__title-wrap { position: relative; margin-bottom: 3rem; }
@media (min-width: 768px) { .p-hero__title-wrap { margin-bottom: 6rem; } }
.p-hero__title { font-size: 3rem; line-height: 1.1; font-weight: 900; letter-spacing: -0.05em; word-break: break-all; color: var(--obi-white); }
@media (min-width: 768px) { .p-hero__title { font-size: 5rem; line-height: 0.95; } }
@media (min-width: 1024px) { .p-hero__title { font-size: 6rem; } }
.p-hero__title--gradient {
    background: linear-gradient(to right, var(--obi-accent), var(--obi-secondary), var(--obi-white));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.p-hero__desc-wrap { max-width: 42rem; border-left: 2px solid rgba(255,255,255,0.8); padding-left: 1.5rem; padding-top: 0.25rem; padding-bottom: 0.25rem; color: var(--obi-white); opacity: 0.9; }
@media (min-width: 768px) { .p-hero__desc-wrap { padding-left: 3rem; } }
.p-hero__desc { font-size: 0.875rem; font-weight: 300; line-height: 2; text-align: justify; }
@media (min-width: 768px) { .p-hero__desc { font-size: 1.25rem; text-align: left; } }

/* ==========================================================
   Block: About
   ========================================================== */
/* 可読性に配慮して白文字（--obi-white）を採用しています。背景遷移との整合を考慮し、不要な影を排除したシンプルな構成としています。必要に応じて再調整余地あり。 */
.p-about {
    position: relative; padding: 15vh 1.5rem 8rem; color: var(--obi-white);
}
@media (min-width: 768px) { .p-about { padding: 30vh 4rem 20rem; } }
@media (min-width: 1024px) { .p-about { padding: 30vh 6rem 20rem; } }
.p-about__inner { max-width: 1280px; margin: 0 auto; position: relative; }

.p-about__title-vertical { display: none; }
@media (min-width: 768px) {
    .p-about__title-vertical {
        display: flex; flex-direction: column; align-items: center; position: absolute;
        left: -100px; top: 0; height: 100%; opacity: 0.3; pointer-events: none;
    }
}
@media (min-width: 1024px) { .p-about__title-vertical { left: -150px; } }
.p-about__title-wrap h2 { font-size: 0.6875rem; letter-spacing: 0.4em; font-weight: bold; text-transform: uppercase; writing-mode: vertical-rl; }
.p-about__border-line { display: block; width: 1px; flex-grow: 1; background: rgba(255,255,255,0.2); margin: 2rem 0; }

.p-about__grid { display: flex; flex-direction: column; gap: 5rem; position: relative; z-index: 20; }
@media (min-width: 768px) { .p-about__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
@media (min-width: 1024px) { .p-about__grid { gap: 6rem; } }

.p-about-article { display: flex; flex-direction: column; }
.p-about-article__label {
    display: block; font-size: 0.6875rem; letter-spacing: 0.3em; font-weight: 900;
    text-transform: uppercase; color: var(--obi-accent); opacity: 0.9; margin-bottom: 2rem;
}
.p-about-article__title { font-size: 1.25rem; font-weight: 900; line-height: 1.2; letter-spacing: -0.05em; margin-bottom: 2rem; }
@media (min-width: 768px) { .p-about-article__title { font-size: 1.5rem; } }
@media (min-width: 1024px) { .p-about-article__title { font-size: 1.875rem; } }
.p-about-article__line { width: 3rem; height: 1px; background: var(--obi-accent); margin-bottom: 2.5rem; opacity: 0.8; }
@media (min-width: 768px) { .p-about-article__line { width: 4rem; } }
.p-about-article__desc { font-size: 0.875rem; line-height: 2; font-weight: 300; text-align: justify; opacity: 0.9; }
.p-about-article__desc p { margin-bottom: 1.5rem; }

.p-about-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.p-about-list__title { font-size: 0.875rem; font-weight: 900; margin-bottom: 0.25rem; opacity: 0.95; }
.p-about-list__desc { font-size: 0.75rem; font-weight: 300; line-height: 1.8; text-align: justify; padding-left: 1rem; opacity: 0.8; }

.p-about__header { margin-bottom: 3rem; }
.p-about__subtitle { display: block; font-size: 0.6875rem; letter-spacing: 0.3em; font-weight: bold; color: var(--obi-white); opacity: 0.8; }
.p-about__link-wrap { margin-top: 3rem; display: flex; }
.p-about__link { display: inline-flex; align-items: center; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 0.5rem; color: var(--obi-white); opacity: 0.8; transition: opacity 0.3s ease; }
.p-about__link:hover { opacity: 1; }
.p-about__link-text { font-size: 0.75rem; font-weight: bold; letter-spacing: 0.1em; }

/* ==========================================================
   Block: Service
   ========================================================== */
.p-service { position: relative; padding: 8rem 1.5rem; color: var(--obi-ink); }
@media (min-width: 768px) { .p-service { padding: 12rem 4rem; } }
@media (min-width: 1024px) { .p-service { padding: 12rem 6rem; } }

.p-service::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--obi-base) 15%, var(--obi-base) 100%);
    z-index: -1; pointer-events: none;
}

.p-service__gradient-border-top {
    position: absolute; top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(to right, var(--obi-accent), var(--obi-secondary), var(--obi-primary));
}
.p-service__inner { max-width: 1280px; margin: 0 auto; }
.p-service__header { margin-bottom: 5rem; display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) { .p-service__header { flex-direction: row; justify-content: space-between; align-items: baseline; margin-bottom: 8rem; } }
.p-service__title-wrap { position: relative; padding-left: 1.5rem; }
@media (min-width: 768px) { .p-service__title-wrap { padding-left: 0; } }
.p-service__subtitle { display: block; font-size: 0.6875rem; letter-spacing: 0.3em; font-weight: bold; color: var(--obi-accent); margin-bottom: 1rem; text-transform: uppercase; }
.p-service__title { font-size: 3rem; font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
@media (min-width: 768px) { .p-service__title { font-size: 5rem; } }
.p-service__gradient-line-left {
    position: absolute; left: 0; top: 0; height: 100%; width: 2px;
    background: linear-gradient(to bottom, var(--obi-accent), var(--obi-secondary), var(--obi-primary));
}
@media (min-width: 768px) { .p-service__gradient-line-left { left: -3rem; } }
.p-service__desc { max-width: 36rem; font-size: 0.875rem; font-weight: 300; opacity: 0.8; line-height: 1.8; text-align: justify; }
@media (min-width: 768px) { .p-service__desc { font-size: 1.125rem; } }

.p-service__grid { display: flex; flex-direction: column; gap: 4rem; align-items: stretch; }
@media (min-width: 768px) { .p-service__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6rem; } }

.p-service-card__link { display: flex; flex-direction: column; height: 100%; }
.p-service-card__visual {
    position: relative; overflow: hidden; aspect-ratio: 4/3;
    background: var(--obi-white); border: 1px solid rgba(0,0,0,0.05);
    display: flex; align-items: center; justify-content: center; padding: 2rem;
    transition: box-shadow 1s ease;
}
@media (min-width: 768px) { .p-service-card__visual { aspect-ratio: 16/10; padding: 3rem; } }
.p-service-card__link:hover .p-service-card__visual { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.p-service-card__img { max-height: 100%; object-fit: contain; opacity: 0.9; transition: transform 2s ease; }
.p-service-card__link:hover .p-service-card__img { transform: scale(1.05); }
.p-service-card__hover-bar {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 0;
    background: linear-gradient(to right, var(--obi-accent), var(--obi-secondary), var(--obi-primary)); transition: height 0.5s ease;
}
.p-service-card__link:hover .p-service-card__hover-bar { height: 2px; }

.p-service-card__content { padding-top: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.p-service-card__logo { height: 1.5rem; object-fit: contain; align-self: flex-start; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .p-service-card__logo { height: 2rem; } }
.p-service-card__text { font-size: 0.875rem; font-weight: 300; opacity: 0.6; line-height: 2; margin-bottom: 2rem; flex-grow: 1; text-align: justify; }
.p-service-card__cta {
    display: inline-flex; align-items: center; gap: 1rem; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 0.5rem; transition: all 0.3s;
}
.p-service-card__cta-text { font-size: 0.65rem; font-weight: 900; letter-spacing: 0.3em; text-transform: uppercase; }
.p-service-card__link:hover .p-service-card__cta { gap: 2rem; border-color: var(--obi-ink); }

/* ==========================================================
   Block: Contact
   ========================================================== */
.p-contact { position: relative; padding: 8rem 1.5rem; color: var(--obi-ink); background: var(--obi-base); }
@media (min-width: 768px) { .p-contact { padding: 12rem 4rem; } }
@media (min-width: 1024px) { .p-contact { padding: 12rem 6rem; } }

.p-contact__gradient-line-center {
    position: absolute; top: 0; left: 1.5rem; width: 1px; height: 6rem;
    background: linear-gradient(to bottom, var(--obi-accent), var(--obi-secondary), var(--obi-primary));
}
@media (min-width: 768px) { .p-contact__gradient-line-center { left: 50%; transform: translateX(-50%); height: 8rem; } }

.p-contact__inner { max-width: 1280px; margin: 0 auto; padding-top: 3rem; }
@media (min-width: 768px) { .p-contact__inner { padding-top: 0; } }

.p-contact__header { margin-bottom: 5rem; }
.p-contact__label { display: block; font-size: 0.6875rem; letter-spacing: 0.8em; text-transform: uppercase; font-weight: 900; opacity: 0.3; margin-bottom: 2rem; }
.p-contact__title { font-size: 3rem; font-weight: 900; letter-spacing: -0.05em; line-height: 0.9; margin-bottom: 2rem; text-transform: uppercase; font-style: italic; }
@media (min-width: 768px) { .p-contact__title { font-size: 5rem; } }
.p-contact__title-gradient { background: linear-gradient(to right, var(--obi-accent), var(--obi-secondary), var(--obi-primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.p-contact__separator { width: 4rem; height: 1px; background: rgba(0,0,0,0.1); margin-bottom: 2rem; }
.p-contact__desc { font-size: 0.875rem; font-weight: 300; opacity: 0.6; line-height: 1.8; text-align: justify; max-width: 36rem; }
.p-contact__subtitle { display: block; font-size: 0.6875rem; letter-spacing: 0.3em; font-weight: bold; color: var(--obi-accent); margin-bottom: 1rem; text-transform: uppercase; }

.p-contact__action { max-width: 32rem; width: 100%; }
.p-contact__action-primary { margin-bottom: 3rem; }
.p-contact__action-desc { font-size: 0.8125rem; font-weight: 500; opacity: 0.8; margin-bottom: 1.5rem; }
.p-contact__action-btn { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 2rem; width: 100%; border-radius: 4px; border: none; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.p-contact__action-btn-text { font-size: 1rem; font-weight: bold; letter-spacing: 0.1em; }

.p-contact__action-secondary { margin-bottom: 3rem; }
.p-contact__action-label { display: block; font-size: 0.6875rem; font-weight: bold; letter-spacing: 0.1em; opacity: 0.4; text-transform: uppercase; margin-bottom: 0.5rem; }
.p-contact__action-line { display: inline-block; transition: opacity 0.3s; }
.p-contact__action-line:hover { opacity: 0.7; }

.p-contact__action-socials { border-top: 1px solid rgba(0,0,0,0.1); padding-top: 2rem; }
.p-contact__action-x { margin-bottom: 2rem; }
.p-contact__action-x-desc { font-size: 0.75rem; font-weight: 300; opacity: 0.8; margin-bottom: 0.5rem; line-height: 1.6; }
.p-contact__action-x-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: bold; color: var(--obi-primary); text-decoration: none; border-bottom: 1px solid var(--obi-primary); padding-bottom: 0.1rem; transition: opacity 0.3s; }
.p-contact__action-x-link:hover { opacity: 0.6; }

.p-contact__action-email { margin-top: 2rem; }
.p-contact__action-email-link { font-size: 1rem; font-weight: 300; opacity: 0.8; letter-spacing: 0.05em; transition: opacity 0.3s; color: var(--obi-ink); }
.p-contact__action-email-link:hover { opacity: 0.6; }

/* ==========================================================
   Block: Empathy
   ========================================================== */
.p-empathy {
    position: relative; padding: 6rem 1.5rem; color: var(--obi-ink); background: var(--obi-base);
}
@media (min-width: 768px) { .p-empathy { padding: 8rem 4rem; } }
@media (min-width: 1024px) { .p-empathy { padding: 10rem 6rem; } }

.p-empathy__inner {
    max-width: 800px; margin: 0 auto;
    border: 1px solid rgba(0,0,0,0.05); padding: 3rem 2rem; border-radius: 4px;
    background: #ffffff; box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
@media (min-width: 768px) { .p-empathy__inner { padding: 4rem 5rem; } }

.p-empathy__header { margin-bottom: 2.5rem; text-align: center; }
.p-empathy__title { font-size: 1.5rem; font-weight: 900; letter-spacing: 0.1em; color: var(--obi-primary); }
@media (min-width: 768px) { .p-empathy__title { font-size: 1.875rem; } }

.p-empathy__list { list-style: none; margin-bottom: 3rem; }
.p-empathy__list li {
    position: relative; padding-left: 1.5rem; margin-bottom: 1rem;
    font-size: 0.875rem; font-weight: 500; line-height: 1.8; opacity: 0.8;
}
@media (min-width: 768px) { .p-empathy__list li { font-size: 1rem; margin-bottom: 1.25rem; } }

.p-empathy__list-dot {
    position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%;
    background: var(--obi-secondary);
}

.p-empathy__footer { border-top: 1px dashed rgba(0,0,0,0.1); padding-top: 2rem; text-align: center; }
.p-empathy__desc { font-size: 0.8125rem; font-weight: 500; line-height: 2; opacity: 0.9; }

/* ==========================================================
   FAQ Section
   ========================================================== */
.p-faq { padding: 5rem 1.5rem; }
@media (min-width: 768px) { .p-faq { padding: 7rem 2rem; } }

.p-faq__inner { max-width: 760px; margin: 0 auto; }

.p-faq__label {
    font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
    opacity: 0.4; margin-bottom: 0.75rem;
}

.p-faq__title {
    font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
    margin-bottom: 3rem;
}
@media (min-width: 768px) { .p-faq__title { font-size: 2rem; } }

.p-faq__list { list-style: none; }

.p-faq__item {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 1.5rem 0;
}
.p-faq__item:last-child { border-bottom: 1px solid rgba(0,0,0,0.08); }

.p-faq__question {
    display: flex; align-items: flex-start; gap: 1rem;
    font-size: 0.9375rem; font-weight: 700; line-height: 1.7;
    margin-bottom: 0.75rem;
}
.p-faq__question::before {
    content: 'Q'; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.75rem; height: 1.75rem; border-radius: 50%;
    background: var(--obi-primary); color: var(--obi-base);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0;
    margin-top: 0.05em;
}
@media (min-width: 768px) { .p-faq__question { font-size: 1rem; } }

.p-faq__answer {
    display: flex; align-items: flex-start; gap: 1rem;
    font-size: 0.875rem; font-weight: 400; line-height: 1.9; opacity: 0.75;
    margin: 0;
}
.p-faq__answer::before {
    content: 'A'; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.75rem; height: 1.75rem; border-radius: 50%;
    background: rgba(0,0,0,0.06); color: var(--obi-primary);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0;
    margin-top: 0.05em;
}
@media (min-width: 768px) { .p-faq__answer { font-size: 0.9375rem; } }
@media (min-width: 768px) { .p-empathy__desc { font-size: 0.9375rem; } }
