/*
Theme Name: i-HomeGate
Theme URI: https://www.i-homegate.com
Author: NexNest
Description: Custom one-page theme for i-HomeGate.
Version: 1.0
Text Domain: ihomegate
*/

:root {
    --ihg-bg: #ffffff;
    --ihg-soft: #f7f6f3;
    --ihg-text: #222222;
    --ihg-muted: #747474;
    --ihg-line: #ddddda;
    --ihg-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ihg-bg);
    color: var(--ihg-text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Helvetica Neue",
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        "Noto Sans CJK JP",
        Arial,
        sans-serif;
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.ihg-shell {
    width: min(calc(100% - 80px), var(--ihg-width));
    margin: 0 auto;
}


/* HEADER */

.ihg-header {
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.ihg-header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ihg-logo {
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.03em;
}

.ihg-language {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: #999;
}

.ihg-language a {
    text-decoration: none;
}

.ihg-language a.active {
    color: #222;
    font-weight: 600;
}


/* COMMON */

.ihg-section {
    padding: 130px 0;
}

.ihg-soft {
    background: var(--ihg-soft);
}

.ihg-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 90px;
}

.ihg-grid-reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.ihg-section-no {
    margin-bottom: 28px;
    font-size: 12px;
    letter-spacing: .16em;
    color: #aaa;
}

h1,
h2 {
    margin: 0;
    font-weight: 500;
    letter-spacing: -.045em;
}

h1 {
    font-size: clamp(42px, 4.4vw, 68px);
    line-height: 1.2;
}

h2 {
    font-size: clamp(38px, 3.7vw, 58px);
    line-height: 1.25;
}

.ihg-body {
    margin-top: 42px;
    font-size: 17px;
    line-height: 2;
    color: #4a4a4a;
}

.ihg-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #ecebea;
}

.ihg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ihg-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 12px;
    letter-spacing: .18em;
}

.ihg-product-name {
    margin-top: 36px;
    font-size: clamp(40px, 4vw, 62px);
    line-height: 1;
    font-weight: 500;
    letter-spacing: -.055em;
}

.ihg-tagline {
    margin-top: 44px;
    font-size: 25px;
    line-height: 1.55;
    font-weight: 500;
}


/* 256 + 8TB */

.ihg-number-section {
    text-align: center;
    padding-top: 160px;
    padding-bottom: 160px;
}

.ihg-big-number {
    font-size: clamp(72px, 10vw, 150px);
    line-height: .95;
    font-weight: 500;
    letter-spacing: -.075em;
}

.ihg-number-headline {
    margin-top: 68px;
    font-size: clamp(30px, 3vw, 48px);
}

.ihg-narrow {
    width: min(720px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.ihg-callout {
    margin: 70px auto 0;
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 500;
    letter-spacing: -.035em;
}

.ihg-tail {
    margin-top: 36px;
}


/* COMPARISON */

.ihg-comparison h2 {
    max-width: 850px;
}

.ihg-table-wrap {
    margin-top: 70px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ihg-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 15px;
}

.ihg-table th,
.ihg-table td {
    padding: 22px 18px;
    text-align: left;
    border-bottom: 1px solid var(--ihg-line);
    vertical-align: middle;
}

.ihg-table thead th {
    font-weight: 600;
    color: #333;
}

.ihg-table tbody th {
    font-weight: 400;
    color: #777;
    width: 18%;
}

.ihg-table td:nth-child(2),
.ihg-table thead th:nth-child(2) {
    font-weight: 600;
}

.ihg-comparison-callout {
    margin-top: 80px;
    font-size: clamp(31px, 3.5vw, 52px);
    line-height: 1.35;
    font-weight: 500;
    letter-spacing: -.04em;
}

.ihg-footnotes {
    margin-top: 58px;
    max-width: 980px;
    color: #999;
    font-size: 10px;
    line-height: 1.6;
}

.ihg-footnotes p {
    margin: 8px 0;
}


/* CTA */

.ihg-cta {
    text-align: center;
    padding-top: 150px;
    padding-bottom: 150px;
}

.ihg-cta-inner {
    max-width: 850px;
}

.ihg-cta .ihg-body {
    margin-top: 35px;
}

.ihg-cta-link {
    display: inline-block;
    margin-top: 52px;
    padding-bottom: 6px;
    text-decoration: none;
    border-bottom: 1px solid #222;
    font-size: 19px;
    font-weight: 500;
}

.ihg-official {
    margin-top: 18px;
    font-size: 11px;
    color: #aaa;
}


/* FOOTER */

.ihg-footer {
    padding: 0 0 44px;
}

.ihg-search-strip {
    height: 50px;
    border: 1px solid #d8d8d5;
    display: flex;
    align-items: center;
    max-width: 620px;
    margin: 0 auto 65px;
    font-size: 12px;
    color: #888;
}

.ihg-search-strip > span:first-child {
    padding: 0 22px;
    border-right: 1px solid #d8d8d5;
}

.ihg-search-brand {
    padding: 0 24px;
    color: #222;
    letter-spacing: .02em;
}

.ihg-footer-meta {
    text-align: center;
    font-size: 10px;
    line-height: 1.8;
    color: #aaa;
}

.ihg-footer-meta a {
    text-decoration: none;
}


/* TABLET */

@media (max-width: 900px) {

    .ihg-shell {
        width: min(calc(100% - 48px), var(--ihg-width));
    }

    .ihg-section {
        padding: 100px 0;
    }

    .ihg-grid,
    .ihg-grid-reverse {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .ihg-grid-reverse .ihg-image {
        order: 2;
    }

    .ihg-grid-reverse .ihg-copy {
        order: 1;
    }

    .ihg-number-section {
        padding-top: 120px;
        padding-bottom: 120px;
    }
}


/* MOBILE */

@media (max-width: 600px) {

    .ihg-shell {
        width: calc(100% - 36px);
    }

    .ihg-header-inner {
        min-height: 68px;
    }

    .ihg-logo {
        font-size: 19px;
    }

    .ihg-language {
        gap: 6px;
        font-size: 10px;
    }

    .ihg-section {
        padding: 78px 0;
    }

    .ihg-section-no {
        margin-bottom: 20px;
        font-size: 10px;
    }

    h1 {
        font-size: 38px;
        line-height: 1.27;
    }

    h2 {
        font-size: 34px;
        line-height: 1.3;
    }

    .ihg-body {
        margin-top: 30px;
        font-size: 15px;
        line-height: 1.9;
    }

    .ihg-grid,
    .ihg-grid-reverse {
        gap: 44px;
    }

    .ihg-image {
        aspect-ratio: 4 / 3;
    }

    .ihg-product-name {
        margin-top: 28px;
        font-size: 42px;
    }

    .ihg-tagline {
        margin-top: 34px;
        font-size: 21px;
    }

    .ihg-number-section {
        padding-top: 95px;
        padding-bottom: 95px;
    }

    .ihg-big-number {
        font-size: clamp(61px, 18vw, 84px);
        white-space: nowrap;
    }

    .ihg-number-headline {
        margin-top: 48px;
        font-size: 29px;
    }

    .ihg-callout {
        margin-top: 52px;
        font-size: 29px;
        line-height: 1.4;
    }

    .ihg-table-wrap {
        margin-top: 48px;
    }

    .ihg-table {
        min-width: 690px;
        font-size: 13px;
    }

    .ihg-table th,
    .ihg-table td {
        padding: 17px 14px;
    }

    .ihg-comparison-callout {
        margin-top: 58px;
        font-size: 30px;
    }

    .ihg-footnotes {
        margin-top: 42px;
        font-size: 10px;
    }

    .ihg-cta {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .ihg-cta-link {
        margin-top: 40px;
        font-size: 16px;
    }

    .ihg-search-strip {
        max-width: 100%;
        height: 46px;
        margin-bottom: 50px;
    }

    .ihg-footer {
        padding-bottom: 30px;
    }
}

/* LANGUAGE FONT NORMALIZATION */

body.ihg-lang-ja {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Hiragino Sans",
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        "YuGothic",
        "Noto Sans JP",
        sans-serif;
}

body.ihg-lang-zh {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Microsoft YaHei",
        "PingFang SC",
        "Noto Sans SC",
        "Source Han Sans SC",
        sans-serif;
}

body.ihg-lang-en {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Helvetica Neue",
        Arial,
        sans-serif;
}

/* =========================================================
   Cross-browser font-family unification
   Same font policy as NexNest.
   ========================================================= */

html,
body,
button,
input,
select,
textarea,
.ihg-site,
.ihg-header,
.ihg-footer {
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Noto Sans CJK SC",
    "Noto Sans SC",
    "Microsoft YaHei",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif !important;
}

.ihg-site * {
  font-family: inherit !important;
}
