/* CSS変数定義 */
:root {
    /* カラーパレット */
    --color-primary: #009BBF;
    --color-secondary: #63A276;
    --color-text: #393636;
    --color-white: #FFFFFF;
    
    /* グラデーション */
    --gradient-primary: linear-gradient(to right, #009BBF 69%, #63A276 100%);
    --gradient-secondary: linear-gradient(35deg, #009BBF 0%, #63A276 100%);
    
    /* フォント */
    --font-jp: "Noto Sans JP", sans-serif;
    --font-en: "Roboto", sans-serif;
    
    /* スペーシング */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 40px;
    --spacing-xxl: 48px;
    
    /* ボーダーラディウス */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* シャドウ */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 155, 191, 0.3);
    --shadow-lg: 0 6px 20px rgba(0, 155, 191, 0.4);
}

* {
    font-family: var(--font-jp);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
}

.en-font {
    font-family: var(--font-en);
}

/* ユーティリティクラス */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-xxl { margin-bottom: var(--spacing-xxl); }

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mt-xxl { margin-top: var(--spacing-xxl); }

.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }
.p-xxl { padding: var(--spacing-xxl); }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-3 { z-index: 3; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }

/* リンク要素のカーソル */
a {
    cursor: pointer;
}

/* インナー */
.inner {
    width: 100%;
    max-width: calc(1360px + 40px * 2);
    margin: 0 auto;
    padding: 0 40px;
}

.inner-medium {
    width: 100%;
    max-width: calc(1280px + 40px * 2);
    margin: 0 auto;
    padding: 0 40px;
}

.inner-small {
    width: 100%;
    max-width: calc(1160px + 40px * 2);
    margin: 0 auto;
    padding: 0 40px;
}

.inner-xsmall {
    width: 100%;
    max-width: calc(760px + 40px * 2);
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .inner,
    .inner-medium,
    .inner-small {
        padding: 0 20px;
    }
}

/* ヘッダー */
header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 40px;
}

.header-inner {
    padding: 19.5px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 1100px) {
    .header-inner {
        padding: 19.5px 0px;
    }
}

/* ハンバーガー */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    padding: 0;
    position: relative;
    cursor: pointer;
}

.menu-toggle-bar {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background-color: #393636;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle-bar:nth-child(1) { top: 12px; }
.menu-toggle-bar:nth-child(2) { top: 19px; }
.menu-toggle-bar:nth-child(3) { top: 26px; }

.menu-toggle.is-open .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    header {
        padding: 16px 24px;
    }
    
    .header-inner {
        padding: 16px 24px;
    }
    
    .menu-toggle { display: block; }

    .nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(80%, 360px);
        background: #fff;
        box-shadow: -8px 0 24px rgba(0,0,0,0.08);
        padding: 80px 24px 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        gap: 24px;
        z-index: 999;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav.is-open { transform: translateX(0); }

    .nav ul { flex-direction: column; gap: 16px; }
    .nav-btns { flex-direction: column; gap: 12px; width: 100%; }
    .header-btn { width: 100%; font-size: 14px; }
}

@media (max-width: 768px) {
    header {
        padding: 12px 16px;
    }
    
    .header-inner {
        padding: 12px 16px;
        gap: 16px;
    }
    
    .header-btn { font-size: 13px; }
}

.logo-white{
    width: 200px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav a:hover {
    color: #007bff;
}

/* ドロップダウンメニュー */
.dropdown {
    position: relative;
}

.dropdown > a {
    position: relative;
    padding-right: 16px;
}

.dropdown > a::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><polyline points='2,4 6,8 10,4' fill='none' stroke='%23393636' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    min-width: 120px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 8px 0;
    margin: 0;
    list-style: none;
}

.dropdown .dropdown-menu {
    flex-direction: column;
    gap: 8px;
}

/* クリック開閉用の状態クラス */
.dropdown.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown > a { cursor: pointer; }

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #555;
    color: white;
}

.nav-btns {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-btn {
    display: block;
    padding-block: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 158px;
    font-size: 14px;
    font-weight: 500;
}

.header-btn-request {
    background-color: #393636;
    color: #FFFFFF;
    padding-left: 43px;
}

.header-btn-request::after {
    right: 30px;
}

.header-btn-contact {
    background: linear-gradient(to right, #009BBF 69%, #63A276 100%);
    color: white;
    padding-left: 28px;
}

.header-btn-contact::after {
    right: 20px;
}


/* ボタン共通スタイル */
.btn {
    display: block;
    position: relative;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}
  
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translateY(-50%) rotate(45deg);
    box-sizing: border-box;
}

/* ボタンバリエーション */
.btn--primary {
    background: linear-gradient(to right, #009BBF 69%, #63A276 100%);
    color: white;
}

.btn--secondary {
    background-color: #393636;
    color: #FFFFFF;
}

.btn--white {
    background-color: #FFFFFF;
    color: #393636;
}

.btn--white::after {
    border-top: 2px solid #393636;
    border-right: 2px solid #393636;
}

/* フッター */
footer {
    background-color: #393636;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-top {
    border-bottom: 1px solid #AEAEAE;
    padding-block: 80px 100px;
}

.footer-icon-wrapper {
    margin-top: 32px;
    display: flex;
    gap: 12px;
}

.footer-icon {
    width: 24px;
    height: 24px;
}

.footer-top-nav-list {
    display: flex;
    gap: 80px;
}

.footer-top-nav-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-top-nav-item a {
    color: #FFFFFF;
    font-weight: 500;
    
}

.footer-top-nav-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-top-nav-dropdown-menu a {
    color:#C5C5C5;
    
}

.footer-bottom {
    padding-block: 32px 60px;
}

.footer-bottom-copyright {
    color: #FFFFFF;
    font-size: 14px;
    
}

.footer-bottom-nav-list {
    display: flex;
    gap: 24px;
}

.footer-bottom-nav-item a {
    color: #FFFFFF;
    font-size: 14px;
    
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .footer-top {
        padding-block: 60px 80px;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }
    
    .footer-top-nav-list {
        gap: 40px;
    }
    
    .footer-icon-wrapper {
        margin-top: 24px;
    }
    
    .footer-bottom {
        padding-block: 24px 40px;
    }
    
    .footer-bottom .footer-inner {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        text-align: center;
    }
    
    .footer-bottom-nav-list {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding-block: 40px 60px;
    }
    
    .footer-inner {
        gap: 32px;
    }
    
    .footer-top-nav-list {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-icon-wrapper {
        margin-top: 20px;
        gap: 8px;
    }
    
    .footer-icon {
        width: 20px;
        height: 20px;
    }
    
    .footer-bottom {
        padding-block: 20px 32px;
    }
    
    .footer-bottom-nav-list {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-bottom-copyright {
        font-size: 12px;
    }
    
    .footer-bottom-nav-item a {
        font-size: 12px;
    }
}

/* 共通パーツ */

/* セクションヘッダー */
.section-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-header__title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: fit-content;
}

.section-header__subtitle {
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    line-height: 1.0;
    font-weight: 700;
    background: linear-gradient(to right, #009BBF 0%, #63A276 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: fit-content;
}

.section-header__title {
    font-size: 40px;
    font-weight: 700;
}

/* レガシー対応 */
.common-headline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.common-headline-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: fit-content;
}

.common-headline-en {
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    line-height: 1.0;
    font-weight: 700;
    background: linear-gradient(to right, #009BBF 0%, #63A276 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: fit-content;
}

.common-headline-title {
    font-size: 40px;
    font-weight: 700;
}

/* ========================================
   レスポンシブ: h2（共通見出し）
   ======================================== */
@media (max-width: 1024px) {
    .section-header__title,
    .common-headline-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .section-header__title,
    .common-headline-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .section-header__title,
    .common-headline-title {
        font-size: 24px;
    }
}

/* fv */
.common-fv-wrapper {
    border-radius: 20px;
    position: relative;
    background: 
        url("../images/common/mask.png") repeat,              /* ← ノイズ画像 (上) */
        linear-gradient(135deg, #009BBF 69%, #63A276 100%); /* ← グラデーション (下) */
    background-size: cover;
    background-blend-mode: normal;
    background-repeat: no-repeat;
}

.common-fv-content {
    padding-left: 80px;
    padding-block: 300px 96px;
    margin-bottom:48px;
}

.common-fv-content-title {
    margin-top: 4px;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
}

.common-fv-content-text {
    font-family: "Roboto", sans-serif;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.0;
    color: #FFFFFF;
}

/* FV レスポンシブ対応 */
@media (max-width: 1024px) {
    .common-fv-wrapper {
        border-radius: 16px;
    }
    
    .common-fv-content {
        padding-left: 40px;
        padding-block: 200px 60px;
    }
    
    .common-fv-content-title {
        font-size: 48px;
    }
    
    .common-fv-content-text {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .common-fv-wrapper {
        border-radius: 12px;
    }
    
    .common-fv-content {
        padding-left: 20px;
        padding-block: 120px 40px;
    }
    
    .common-fv-content-title {
        font-size: 36px;
        line-height: 1.3;
    }
    
    .common-fv-content-text {
        font-size: 14px;
    }
}