/*
 * WHRP Human Performance Co. — ブランドスタイルシート
 * v0のTailwindクラスをすべて純粋なCSSに変換
 * SWELLのスタイルに干渉しないよう #whrp-site スコープで管理
 */

/* ============================================================
   1. Google Fonts & CSS変数
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

#whrp-site,
#whrp-site * {
    box-sizing: border-box;
}

#whrp-site {
    --green:       #1db88e;
    --green-dark:  #17a87f;
    --green-light: #e8f7f1;
    --navy:        #1a1a2e;
    --navy-mid:    #2d2d45;
    --white:       #ffffff;
    --gray-bg:     #f4f7f5;
    --border:      #e0ebe6;
    --text:        #3d4a44;
    --text-light:  #6b7a72;
    --shadow-sm:   0 2px 8px rgba(29,184,142,.08);
    --shadow-md:   0 8px 28px rgba(29,184,142,.13);
    --shadow-lg:   0 16px 48px rgba(29,184,142,.18);
    --radius:      0.75rem;
    --radius-sm:   0.5rem;
    --transition:  all .22s ease;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   2. コンテナ・セクション共通
============================================================ */
.whrp-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.whrp-section { padding: 80px 0; }
.whrp-section--white { background: var(--white); }
.whrp-section--gray  { background: var(--gray-bg); }

.whrp-section__header {
    text-align: center;
    margin-bottom: 56px;
}
.whrp-section__footer {
    text-align: center;
    margin-top: 48px;
}

/* アイブロウ */
.whrp-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--green);
    font-family: 'DM Sans', sans-serif;
    margin-bottom: .5rem;
}

/* セクションタイトル */
.whrp-section__title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.3;
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    margin: .25rem 0 0;
}

/* ============================================================
   3. ボタン
============================================================ */
.whrp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .95rem;
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    letter-spacing: .02em;
}
.whrp-btn--lg { padding: 16px 32px; font-size: 1rem; }
.whrp-btn--primary {
    background: var(--green);
    color: #fff !important;
    border-color: var(--green);
}
.whrp-btn--primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff !important;
}
.whrp-btn--outline {
    background: transparent;
    color: var(--green) !important;
    border-color: var(--green);
}
.whrp-btn--outline:hover {
    background: var(--green);
    color: #fff !important;
}
.whrp-btn--outline-white {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255,255,255,.6);
}
.whrp-btn--outline-white:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
}

/* リンクアロー */
.whrp-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    transition: var(--transition);
}
.whrp-link-arrow:hover { gap: 10px; color: var(--green-dark); }
.whrp-link-arrow svg { transition: var(--transition); }

/* タグ */
.whrp-tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 9999px;
    font-family: 'DM Sans', sans-serif;
}
.whrp-tag--green         { background: var(--green); color: #fff; }
.whrp-tag--outline       { border: 1.5px solid var(--green); color: var(--green); background: transparent; }
.whrp-tag--navy          { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }

/* ============================================================
   4. HERO
============================================================ */
.whrp-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--white);
    overflow: hidden;
    padding-top: 80px; /* ヘッダー分 */
}

/* 背景の浮遊六角形 */
.whrp-hero__bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.whrp-shape { position: absolute; color: var(--green); }
.whrp-shape--1 { width: 128px; height: 128px; top: 80px;  right: 40px;  opacity: .10; animation: whrp-float 6s ease-in-out infinite; }
.whrp-shape--2 { width: 64px;  height: 64px;  top: 160px; right: 25%;   opacity: .05; animation: whrp-float 8s ease-in-out infinite 1s; }
.whrp-shape--3 { width: 96px;  height: 96px;  bottom: 160px; right: 80px; opacity: .08; animation: whrp-float 7s ease-in-out infinite .5s; }
.whrp-shape--4 { width: 80px;  height: 80px;  bottom: 80px;  left: 40px;  opacity: .05; animation: whrp-float 9s ease-in-out infinite 2s; }

@keyframes whrp-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-16px) rotate(6deg); }
}

.whrp-hero__grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.whrp-hero__content { display: flex; flex-direction: column; gap: 20px; }

.whrp-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: -.02em;
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    margin: 0;
}

.whrp-hero__sub {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 520px;
    margin: 0;
}

.whrp-hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.whrp-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.whrp-hero__watermark {
    width: min(384px, 90%);
    height: auto;
    color: var(--green);
    opacity: .15;
}

/* ============================================================
   5. FEATURES
============================================================ */
.whrp-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.whrp-feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    border-top: 4px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.whrp-feature-card:hover {
    border-top-color: var(--green);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.whrp-feature-card__icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: var(--green-light);
    color: var(--green);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}
.whrp-feature-card__title {
    font-size: 1.15rem; font-weight: 800; color: var(--navy); margin: 0 0 4px;
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
}
.whrp-feature-card__en {
    font-size: .8rem; font-weight: 600; color: var(--green);
    font-family: 'DM Sans', sans-serif; letter-spacing: .04em; margin: 0 0 14px;
}
.whrp-feature-card__body { font-size: .9rem; color: var(--text-light); line-height: 1.75; margin: 0; }

/* ============================================================
   6. ABOUT
============================================================ */
.whrp-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.whrp-about__content { display: flex; flex-direction: column; gap: 20px; }
.whrp-about__body { display: flex; flex-direction: column; gap: 16px; }
.whrp-about__body p { font-size: 1rem; color: var(--text-light); line-height: 1.8; margin: 0; }

/* 同心六角形グラフィック */
.whrp-about__graphic {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 320px;
}
.whrp-hexagon { position: absolute; }
.whrp-hexagon--lg { width: 256px; height: 256px; color: var(--green); opacity: .20; }
.whrp-hexagon--md { width: 180px; height: 180px; color: var(--green); opacity: .30; }
.whrp-hexagon--sm { width: 96px;  height: 96px;  color: var(--green); opacity: 1; }

/* ============================================================
   7. BRANDS
============================================================ */
.whrp-brands {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.whrp-brand-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.whrp-brand-card--navy { border-left-color: var(--navy); }
.whrp-brand-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.whrp-brand-card__name {
    font-size: 1.9rem; font-weight: 800; color: var(--green);
    font-family: 'DM Sans', sans-serif; margin: 0; letter-spacing: -.01em;
}
.whrp-brand-card--navy .whrp-brand-card__name { color: var(--navy); }
.whrp-brand-card__tagline { margin: 0; font-size: .95rem; color: var(--text); }
.whrp-brand-card__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.whrp-brand-card__body { font-size: .9rem; color: var(--text-light); line-height: 1.8; margin: 0; flex: 1; }

/* ============================================================
   8. PRODUCTS
============================================================ */
.whrp-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.whrp-product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.whrp-product-card:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
    border-color: var(--green);
}
.whrp-product-card__top { padding: 16px 16px 0; }
.whrp-product-card__img {
    aspect-ratio: 1;
    margin: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--green-light);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.whrp-product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.whrp-product-card__placeholder { width: 96px; height: 96px; color: var(--green); opacity: .3; }
.whrp-product-card__body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.whrp-product-card__title { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin: 0; }
.whrp-product-card__en { font-size: .8rem; color: var(--green); font-weight: 600; margin: 0; }
.whrp-product-card__price { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 0; }
.whrp-product-card__excerpt { font-size: .875rem; color: var(--text-light); line-height: 1.7; margin: 0; flex: 1; }

/* ============================================================
   9. MEDIA
============================================================ */
.whrp-media {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: 64px;
    align-items: center;
}
.whrp-media__content { display: flex; flex-direction: column; gap: 20px; }
.whrp-media__brand {
    font-size: 1.5rem; font-weight: 800; color: var(--navy);
    font-family: 'DM Sans', sans-serif; margin: 0;
}
.whrp-media__body { font-size: .95rem; color: var(--text-light); line-height: 1.8; margin: 0; }

/* モックブラウザ */
.whrp-browser {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}
.whrp-browser__bar {
    background: var(--gray-bg);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}
.whrp-browser__dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--border);
}
.whrp-browser__dot:nth-child(1) { background: #ff5f57; }
.whrp-browser__dot:nth-child(2) { background: #febc2e; }
.whrp-browser__dot:nth-child(3) { background: #28c840; }
.whrp-browser__url {
    margin-left: 10px; font-size: .75rem;
    color: var(--text-light); font-family: 'DM Sans', sans-serif;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 12px;
    flex: 1;
}
.whrp-browser__content { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.whrp-browser__article {
    padding: 14px;
    background: var(--gray-bg);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--green);
}
.whrp-browser__tag {
    display: inline-block;
    font-size: .65rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--green);
    font-family: 'DM Sans', sans-serif; margin-bottom: 4px;
}
.whrp-browser__title { font-size: .875rem; font-weight: 600; color: var(--navy); margin: 0; line-height: 1.4; }

/* ============================================================
   10. MISSION BANNER
============================================================ */
.whrp-mission {
    background: var(--navy);
    padding: 80px 24px;
    border-top: 3px solid var(--green);
    text-align: center;
}
.whrp-mission__inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.whrp-mission__title {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    margin: 0;
}
.whrp-mission__sub { font-size: .95rem; color: var(--green); margin: 0; font-family: 'DM Sans', sans-serif; letter-spacing: .04em; }

/* ============================================================
   11. COMPANY
============================================================ */
.whrp-company {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    align-items: start;
}
.whrp-company__graphic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 60px;
}
.whrp-company__graphic svg { width: 160px; height: 160px; color: var(--green); opacity: .35; }
.whrp-company__tagline { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-light); font-family: 'DM Sans', sans-serif; }
.whrp-company__table-wrap { display: flex; flex-direction: column; gap: 20px; }

.whrp-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.whrp-table tr { border-bottom: 1px solid var(--border); transition: background .15s; }
.whrp-table tr:last-child { border-bottom: none; }
.whrp-table tr:hover { background: var(--green-light); }
.whrp-table th { width: 140px; background: var(--gray-bg); padding: 14px 18px; font-size: .82rem; font-weight: 700; color: var(--navy); text-align: left; white-space: nowrap; vertical-align: top; }
.whrp-table td { padding: 14px 18px; font-size: .9rem; color: var(--text); line-height: 1.7; }
.whrp-table td a { color: var(--green); }
.whrp-table__note { font-size: .8rem; color: var(--text-light); margin: 0; }

/* ============================================================
   12. NEWS
============================================================ */
.whrp-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.whrp-news-card { display: flex; flex-direction: column; gap: 10px; }
.whrp-news-card__meta { display: flex; align-items: center; gap: 12px; }
.whrp-news-card__meta time { font-size: .82rem; color: var(--text-light); font-family: 'DM Sans', sans-serif; }
.whrp-news-card__cat { font-size: .78rem; font-weight: 600; color: var(--green); }
.whrp-news-card__title { font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.5; margin: 0; }
.whrp-news-card__title a { color: inherit; text-decoration: none; transition: var(--transition); }
.whrp-news-card__title a:hover { color: var(--green); }
.whrp-news-card__excerpt { font-size: .875rem; color: var(--text-light); line-height: 1.7; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   13. CONTACT
============================================================ */
.whrp-contact { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.whrp-form { display: flex; flex-direction: column; gap: 20px; }
.whrp-form__field { display: flex; flex-direction: column; gap: 6px; }
.whrp-form__field label { font-size: .875rem; font-weight: 600; color: var(--navy); }
.whrp-form__field input,
.whrp-form__field textarea {
    width: 100%; padding: 12px 16px;
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: .95rem; color: var(--text);
    font-family: 'Noto Sans JP', sans-serif; transition: var(--transition);
    outline: none;
}
.whrp-form__field input:focus,
.whrp-form__field textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(29,184,142,.12);
}
.whrp-form__field textarea { resize: vertical; min-height: 120px; }
.whrp-form__submit { width: 100%; padding: 16px; font-size: 1rem; border: none; }
.whrp-contact__note { font-size: .82rem; color: var(--text-light); text-align: center; margin: 0; }

/* CF7スタイル上書き */
.whrp-contact .wpcf7 { width: 100%; }
.whrp-contact .wpcf7-form { display: flex; flex-direction: column; gap: 20px; }
.whrp-contact .wpcf7-form p { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.whrp-contact .wpcf7-form input[type="text"],
.whrp-contact .wpcf7-form input[type="email"],
.whrp-contact .wpcf7-form textarea {
    width: 100%; padding: 12px 16px;
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: .95rem; color: var(--text);
    transition: var(--transition); outline: none;
}
.whrp-contact .wpcf7-form input:focus,
.whrp-contact .wpcf7-form textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(29,184,142,.12);
}
.whrp-contact .wpcf7-form input[type="submit"] {
    width: 100%; padding: 16px;
    background: var(--green); color: #fff;
    font-size: 1rem; font-weight: 700;
    border: none; border-radius: var(--radius-sm);
    cursor: pointer; transition: var(--transition);
}
.whrp-contact .wpcf7-form input[type="submit"]:hover { background: var(--green-dark); transform: translateY(-1px); }

/* ============================================================
   14. レスポンシブ
============================================================ */
@media (max-width: 1024px) {
    .whrp-features  { grid-template-columns: repeat(2, 1fr); }
    .whrp-products  { grid-template-columns: repeat(2, 1fr); }
    .whrp-media     { grid-template-columns: 1fr; gap: 40px; }
    .whrp-company   { grid-template-columns: 1fr; }
    .whrp-company__graphic { padding-top: 0; flex-direction: row; justify-content: flex-start; }
}

@media (max-width: 768px) {
    .whrp-section   { padding: 56px 0; }
    .whrp-hero      { min-height: auto; padding: 100px 0 60px; }
    .whrp-hero__grid { grid-template-columns: 1fr; }
    .whrp-hero__visual { display: none; }
    .whrp-about     { grid-template-columns: 1fr; }
    .whrp-about__graphic { display: none; }
    .whrp-brands    { grid-template-columns: 1fr; }
    .whrp-features  { grid-template-columns: 1fr; }
    .whrp-products  { grid-template-columns: 1fr; }
    .whrp-news      { grid-template-columns: 1fr; }
    .whrp-brand-card { padding: 24px; }
    .whrp-hero__buttons { flex-direction: column; }
    .whrp-btn--lg   { width: 100%; }
    .whrp-table th  { width: 100px; }
}

@media (max-width: 480px) {
    .whrp-container { padding: 0 16px; }
    .whrp-section   { padding: 40px 0; }
}
/* SWELLのコンテンツエリア上部余白を除去 */
.l-content.l-container {
    padding-top: 0 !important;
}
