/* =========================================================
   固定ページ「mimalink-sensor」（IoT重量計 ミマリンクセンサー）専用
   functions.php で is_page('mimalink-sensor') のときだけ読み込みます。
   前半：旧 assets/css/style.css のうち、このページで使っている指定
   後半：旧 assets/css/page.css の「重量計センサーページ」の指定（前半を上書きする順番のまま）
   ========================================================= */

/* Hide page titles on static pages */
.page .entry-title {
    display: none;
}

/* --- 基本設定 --- */
:root {
    --primary-orange: #f97316;
    --primary-orange-hover: #ea580c;
    --primary-green: #4c7845;
    --primary-green-hover: #16a34a;
    --text-dark: #1f2937;
    --text-gray: #4b5563;
    --bg-light: #f9fafb;
    --bg-feature: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- 共通クラス --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-orange {
    background-color: var(--primary-orange);
    color: #fff;
    margin-top: 30px;
    padding: 16px 32px;
    font-size: 1.025rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-orange:hover {
    background-color: var(--primary-orange-hover);
    transform: scale(1.05);
}

.section-title {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 2.2rem;
    text-align: center;
}

.section-desc {
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 4rem;
}

.only-pc {
    display: none;
}

/* --- ヒーローセクション --- */
.hero {
    height: 580px;
    margin-top: 69px;
    padding-top: 62px;
    background-image: url('https://senelief.com/wp-content/uploads/2026/02/hero-2.webp');
    background-repeat: no-repeat;
    background-position: calc(-760px + 1vw) 0px;
    background-size: cover;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    background-color: #ffedd5;
    color: #ea580c;
    padding: 4px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-content {
    padding: 25px 10px;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.3;
    letter-spacing: 0.14rem;
    margin-bottom: 1.5rem;
    color: #f2f2f2;
}

.hero h1 span {
    color: var(--primary-orange);
}

.hero-text {
    font-size: 1.025rem;
    color: #f2f2f2;
    /* color: var(--text-gray); */
    margin-bottom: 2rem;
    line-height: 1.8;
}

.google-play-btn {
    display: flex;
    align-items: center;
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    width: fit-content;
    transition: background-color 0.3s;
    text-align: left;
}

.google-play-btn:hover {
    background-color: #333;
}

.google-play-btn i {
    font-size: 1.75rem;
    margin-right: 12px;
}

.play-store-text {
    font-size: 0.75rem;
    line-height: 1;
}

.play-store-title {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.2;
}

img.app-qr {
    width: 175px;
    margin-top: 30px;
}

/* スマホモックアップ関連 */
.mockup-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.mockup-bg-green {
    position: absolute;
    background-color: #bbf7d0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    top: 20px;
    right: 0;
    z-index: 0;
}

.mockup-bg-orange {
    position: absolute;
    background-color: #fed7aa;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    bottom: 0;
    left: -20px;
    z-index: 0;
}

.phone-frame {
    position: relative;
    z-index: 10;
    border: 12px solid #333;
    border-radius: 30px;
    background: #fbfbfb;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 280px;
    height: 580px;
    /* 画像のアスペクト比に合わせて調整 */
    overflow: hidden;
    margin: 0 auto;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 20px;
    background: #333;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 20;
}

/* アプリ画面再現（HTML版） */
.app-screen {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 16px 32px 16px;
    text-align: center;
}

/* --- 特徴セクション --- */
.features {
    padding: 80px 0;
    background-color: #f2f2f2;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.feature-card {
    background-color: #f9fafb;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid #f3f4f6;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem;
    margin: 0 auto 1.5rem auto;
}

.icon-orange {
    background-color: #ffedd5;
    color: var(--primary-orange);
}

.icon-green {
    background-color: #dcfce7;
    color: var(--primary-green);
}

.icon-blue {
    background-color: #dbeafe;
    color: #3b82f6;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primary-orange);
    font-weight: bold;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    text-align: left;
}

/* --- 使い方セクション --- */
.how-to {
    padding: 80px 0;
    background-color: #f0fdf4;
    /* 薄い緑 */
}

.steps-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-card {
    background-color: #fbfbfb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fbfbfb;
    margin-bottom: 1rem;
}

.num-1 {
    background-color: var(--primary-orange);
}

.num-2 {
    background-color: var(--primary-green);
}

.num-3 {
    background-color: #f87171;
}

.step-content {
    flex-grow: 1;
}

.step-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

.step-icon {
    font-size: 2.5rem;
    margin-top: 1rem;
}

/* --- おすすめの方 --- */
.recommend {
    padding: 80px 0;
    background-color: #f2f2f2;
}

.recommend-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.2rem;
}

.recommend-card {
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s;
}

.recommend-card:hover {
    background-color: #fff7ed;
}

.recommend-card-img {
    height: auto;
}

.recommend-card-img img {
    max-width: 100%;
    height: 100%;
    border-radius: 5px;
}

.recommend-card-text {
    padding: 17px 0 17px;
    background-color: #f9fafb;
}

.recommend-card p {
    font-weight: bold;
    letter-spacing: 0.05rem;
    line-height: 1.6;
}

/* --- CTAセクション --- */
.cta {
    padding: 80px 0;
    background-color: #1f2937;
    color: #f2f2f2;
    text-align: center;
}

.cta .container {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 24px;
}

.cta h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.cta p {
    color: #f2f2f2;
    font-size: 1.025rem;
    margin-bottom: 2.5rem;
}

/* --- レスポンシブ対応 (メディアクエリ) --- */
@media (min-width: 768px) {
    .hero {
        background-position: -460px 0px;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .step-card {
        flex-direction: row;
        text-align: left;
        padding: 1.5rem 2rem;
    }

    .step-number {
        margin-bottom: 0;
        margin-right: 2rem;
    }

    .step-icon {
        margin-top: 0;
        margin-left: 2rem;
    }
	
	.step-icon-phone {
    padding-right: 10px;
}

    .recommend-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .only-pc {
        display: block;
    }
	
.hero {
    height: 629px;
    margin-top: 88px;
	background-color: #f2f2f2;
    background-position: 0px -30px;
}

    .hero h1 {
        font-size: 4rem;
        font-weight: bold;
        color: #f2f2f2;
    }

    .app-dl {
        display: flex;
    }

    .app-dl-android.only-pc {
        width: 77px;
        margin-left: 23px;
    }

    .recommend h2 {
        margin-bottom: 2.6rem;
    }

    .recommend-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .recommend-card-img {
        height: 200px;
    }

    .recommend-card-img img {
        max-width: 100%;
        height: 100%;
        border-radius: 5px;
    }

    .cta .container {
        max-width: 1200px;
        margin: 0 auto 50px;
        padding: 0 24px;
    }

.cta .app-dl-android.only-pc {
    width: 115px;
    margin: 35px auto 0;
}
}

/* ===== ここから旧 page.css（重量計センサーページ） ===== */

/* 重量計センサーページ ------------------------------------------------------------------------------  */
/* --- ヒーローセクション --- */
.hero-sensor {
    height: 100vh;
    margin-top: 39px;
    /* padding-top: 62px; */
    background-image: url('https://senelief.com/wp-content/uploads/2026/08/mimalink-sensor-hero-mp.webp');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    overflow: hidden;
}

/*- こんな方におすすめセクション ------------------------------------------------------------------------------- */

.recommend {
    padding: 100px 0;
}

.recommend h2 {
    margin-bottom: 5rem;
}

/*- スマホモックアップセクション ------------------------------------------------------------------------------- */
/* アプリ画面の枠（余白をゼロにして画像をピッタリはめる） */
.cta p {
    /* color: #f2f2f2; */
    /* font-size: 1.025rem; */
    margin-bottom: 0rem;
}

.sensor-android-btn {
    margin-top: 2.5rem;
}

.app-screen {
    height: 100%;
    width: 100%;
    padding: 0;
    display: block;
}

/* 読み込んだキャプチャ画像の設定 */
.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 縦横比を保ちつつ、フレームいっぱいに広げる */
    display: block;
}

/* --- 実機案内セクション -------------------------------------------------------- */
.device-info {
    padding: 80px 0;
    background-color: #f0fdf4;
}

.device-info-inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    background-color: #f9fafb;
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
}

.device-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: var(--text-dark);
}

.device-image {
    width: 100%;
    max-width: 400px; /* 画像が大きくなりすぎないように制限 */
}

.device-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.device-text {
    width: 100%;
}

.device-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* 注意書きのボックス（オレンジのハイライト） */
.notice-box {
    background-color: #fff7ed;
    border-left: 4px solid var(--primary-orange);
    padding: 1.25rem;
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
}

.notice-box p {
    margin-bottom: 0;
}

.notice-subtext {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 0.75rem;
    line-height: 1.6;
}

/* ボタンの幅調整 */
.btn-contact {
    width: 100%; /* スマホでは画面幅いっぱいのボタンに */
    text-align: center;
}

/* --- レスポンシブ対応 (PC用) --- */
@media (min-width: 768px) {
    .hero-sensor {
        background-image: url('https://senelief.com/wp-content/uploads/2026/08/mimalink-sensor-hero-3.webp');
    }

    .device-info-inner {
        flex-direction: row;
        padding: 4rem;
        gap: 4rem;
    }
    
    .device-image {
        flex: 1;
        max-width: 45%;
    }
    
    .device-text {
        flex: 1;
    }

.device-title {
    font-size: 1.8rem;
}
    
    .btn-contact {
        width: auto; /* PCでは文字数に合わせた幅に */
    }
	
.recommend-grid {
    grid-template-columns: repeat(3, 1fr);
}
}

@media (min-width: 1024px) {
img.app-qr {
    width: 175px;
    margin-top: 0;
    margin-left: 50px;
}
}