/* common-ui.css: 共通デザイン・演出パーツ */

/* =========================================================
   Background Blob Animation (全ページ共通)
========================================================= */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #f0f7ff 0%, #f9f0ff 100%);
    overflow: hidden;
    pointer-events: none;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.7;
    pointer-events: none;
    will-change: transform;
}

.blob-1 {
    width: 80vw;
    height: 80vw;
    background: #dbeafe;
    top: -10%;
    left: -10%;
    animation: bg-move1 12s infinite alternate ease-in-out;
}

.blob-2 {
    width: 70vw;
    height: 70vw;
    background: #f3e8ff;
    bottom: -10%;
    right: -10%;
    animation: bg-move2 15s infinite alternate ease-in-out;
}

.blob-3 {
    width: 60vw;
    height: 60vw;
    background: #e0f2fe;
    top: 20%;
    left: 30%;
    animation: bg-move3 18s infinite alternate ease-in-out;
}

@keyframes bg-move1 {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(30%, 25%) scale(1.3) rotate(10deg); }
}
@keyframes bg-move2 {
    0%   { transform: translate(0, 0) scale(1.2) rotate(0deg); }
    100% { transform: translate(-25%, 35%) scale(0.8) rotate(-15deg); }
}
@keyframes bg-move3 {
    0%   { transform: translate(0, 0) scale(0.9) rotate(0deg); }
    100% { transform: translate(20%, -25%) scale(1.2) rotate(10deg); }
}

.inner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Section Header (Global) --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

/* --- Sub Page Layout Container --- */
.service-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 4% 120px;
    min-height: 60vh;
    position: relative;
}

/* --- Decorative diagonal line (right side) --- */

/* =========================================================
   ページヘッダーバナー（全内部ページ共通）
   コンセプト：波形下端＋Sphereカラー。右側が開いて舵輪が覗く。
========================================================= */
.page-hero-banner {
    width: 100%;
    background: linear-gradient(135deg, #0033cc 0%, #0077ff 50%, #18d0ff 80%, #70e1f5 100%);
    position: relative;
    padding: calc(var(--header-height) + 36px) 0 110px;
    display: flex;
    align-items: flex-start;
    min-height: 360px;
    box-sizing: border-box;
    clip-path: url(#banner-wave-clip);
}

/* ③ service-container と左端を揃えるラッパー */
.page-hero-banner__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
    box-sizing: border-box;
}

.page-hero-banner__content {
    max-width: 600px;
}

/* パンくずを内部に小さく表示 */
.page-hero-banner__breadcrumb {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    line-height: 1.6;
}

.page-hero-banner__breadcrumb a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
}

.page-hero-banner__breadcrumb a:hover {
    color: #fff;
}

/* ② CORE VALUES シマーアニメーション */
.page-hero-banner__en {
    font-family: var(--font-en);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    line-height: 1;
    margin-bottom: 16px;
    display: block;
    text-transform: uppercase;
    background: linear-gradient(90deg,
        #70e1f5 0%,
        #ffffff 30%,
        #70e1f5 50%,
        #b8f0ff 70%,
        #ffffff 85%,
        #70e1f5 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-en 4s linear infinite, fade-up-en 0.9s ease both;
}

@keyframes shimmer-en {
    0%   { background-position: 0% center; }
    100% { background-position: 250% center; }
}

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

.page-hero-banner__catch {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.6;
    letter-spacing: 0.04em;
    margin: 0 0 20px;
    animation: fade-up-en 0.9s ease 0.25s both;
}

.page-hero-banner__sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.85;
    margin: 0;
    animation: fade-up-en 0.9s ease 0.5s both;
}

/* 波形SVG（左下） */
.page-hero-banner__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    pointer-events: none;
    z-index: 1;
}

.page-hero-banner__wave svg {
    display: block;
    width: 100%;
    height: 100px;
}

@media (max-width: 1024px) {
    .page-hero-banner {
        padding: calc(var(--header-height) + 40px) 0 160px;
    }
}

@media (max-width: 768px) {
    .page-hero-banner {
        padding: calc(var(--header-height) + 24px) 0 140px;
        min-height: auto;
    }
    .page-hero-banner__content {
        max-width: 100%;
    }
    .page-hero-banner__catch {
        font-size: 1.4rem;
    }
    .page-hero-banner__wave {
        height: 60px;
    }
}

/* --- Sub Page Headers (service-it.html etc) --- */
.sec-header {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* キャッチh2がないページ（B-①）用：タイトル→序文のマージンを縮小 */
.sec-header.compact {
    margin-bottom: 24px;
}

.sec-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--smhc-navy);
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.sec-title-en {
    font-family: var(--font-en);
    font-size: 3.2rem;
    font-weight: 400;
    color: var(--smhc-navy);
    letter-spacing: 0.05em;
    line-height: 1.1;
}

/* --- Animations & Effects --- */
.js-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

@keyframes txtPika {
    0% { background-position-x: 100%; }
    100% { background-position-x: 0%; }
}

.js-pika-primary {
    color: transparent !important;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(80deg, var(--smhc-navy) 0%, var(--smhc-navy) 40%, #18A6F0 47%, #40DEFF 50%, #18A6F0 53%, var(--smhc-navy) 60%, var(--smhc-navy) 100%);
    background-size: 300% 100%;
    animation: txtPika 2.5s ease-in-out 0s forwards;
    display: inline-block;
}
/* =========================================================
   レスポンシブ ユーティリティ
========================================================= */
.pc-only {
    display: inline;
}

@media (max-width: 768px) {
    .pc-only {
        display: none;
    }
}

/* アクセシビリティ: 視覚的に非表示だがスクリーンリーダーには読まれる */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   キーボード・フォーカス状態（アクセシビリティ）
   マウス操作時は非表示、キーボード操作時のみ表示
========================================================= */
:focus-visible {
    outline: 3px solid #18A6F0;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ボタン・リンクのフォーカス */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #18A6F0;
    outline-offset: 3px;
}

/* フォームのフォーカスはoutlineより内側のboxshadowで表現 */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(24, 166, 240, 0.3);
}

/* =========================================================
   共通CTAセクション
========================================================= */
.page-cta {
    background: linear-gradient(135deg, #001A3D 0%, #003070 100%);
    position: relative;
    z-index: 4;
    padding: 80px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 50%, rgba(24, 166, 240, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 50%, rgba(24, 166, 240, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.page-cta-inner {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.page-cta-label {
    font-family: var(--font-en, 'Montserrat', sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #18A6F0;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.page-cta-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 14px;
}

.page-cta-sub {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 36px;
    line-height: 1.9;
    text-align: center;
}


.page-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #18A6F0, #0077cc);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 44px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 24px rgba(24, 166, 240, 0.4);
}

.page-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(24, 166, 240, 0.55);
    color: #fff;
}

.page-cta-btn::after {
    content: '→';
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .page-cta {
        padding: 60px 6%;
        text-align: left;
    }
    .page-cta-label {
        text-align: left;
    }
    .page-cta-title {
        font-size: 1.15rem;
        text-align: left;
    }
    .page-cta-sub {
        font-size: 0.9rem;
        text-align: left;
    }
    .page-cta-sub br {
        display: none;
    }
    .page-cta-btn {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 16px 24px;
        box-sizing: border-box;
    }
}

/* =========================================================
   サブページ共通コンテナ — padding-top 統一
   （固定ヘッダー80px + 余白10px = 90px）
========================================================= */
.sample-container,
.service-container {
    padding-top: 90px !important;
    position: relative;
    z-index: 4;
}

/* =========================================================
   パンくずリスト（コンテンツ内 static 配置）
========================================================= */
.breadcrumb {
    position: static;
    margin-bottom: 12px;
    background: none;
    border: none;
    padding: 0;
    height: auto;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    list-style: none;
    font-size: 0.78rem;
    color: var(--smhc-text-light);
    flex-wrap: wrap;
}

.breadcrumb ol li + li::before {
    content: '/';
    color: rgba(0, 26, 61, 0.25);
    margin: 0 8px;
}

.breadcrumb ol a {
    color: var(--smhc-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb ol a:hover {
    color: var(--smhc-blue);
}

.breadcrumb ol li[aria-current="page"] {
    color: var(--smhc-navy);
    font-weight: 500;
}

/* =========================================================
   舵輪（ヘルム）装飾 - index / contact / privacy / security を除く全ページ
========================================================= */
.helm-decoration {
    position: fixed;
    top: 30px;
    right: -160px;
    width: 620px;
    height: 620px;
    pointer-events: none;
    z-index: -1;
}

#helm-svg {
    width: 100%;
    height: 100%;
    color: #001A3D;
    opacity: 0.055;
    animation: helmGlow 8s ease-in-out infinite;
    transform-origin: 50% 50%;
    will-change: transform, opacity;
}

/* C: バナー型ページでは舵輪をコンテンツ前面に */
body.has-dark-hero .helm-decoration {
    z-index: 3;
}

@keyframes helmGlow {
    0%, 100% { opacity: 0.04; }
    50%       { opacity: 0.085; }
}

@media (max-width: 1024px) {
    .helm-decoration {
        width: 420px;
        height: 420px;
        right: -100px;
        top: 20px;
    }
}

@media (max-width: 768px) {
    .helm-decoration {
        width: 260px;
        height: 260px;
        right: -60px;
        top: 10px;
    }
}

/* =========================================================
   キャッチフレーズ + 序文（A-①共通）
========================================================= */
.msg-hero {
    position: relative;
    margin-top: 8px;
    margin-bottom: 28px;
    text-align: center;
    z-index: 2;
}

.msg-catchphrase {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.1em;
    background: linear-gradient(90deg, var(--smhc-navy), #18A6F0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 16px;
}

.quote-subtext {
    text-align: left;
    font-size: 1rem;
    color: var(--smhc-text-light);
    margin-bottom: 28px;
    max-width: 960px;
    line-height: 1.9;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .msg-catchphrase {
        font-size: 1.8rem;
    }
}
