@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700;800&display=swap');

/* 基本設定 */
:root {
    /* --primary-color: #e04500; */
    --primary-color: #F57C00;
    --secondary-color: #8BC34A;
    /* 明るい緑 */
    --accent-color: #03A9F4;
    /* 明るい青 */
    --text-dark: #37474F;
    /* 濃いグレー */
    --text-light: #546E7A;
    /* やや薄いグレー */
    --background-light: #FFF3E0;
    /* さらに薄いオレンジ */
    --white: #fff;
    --border-color: #E0E0E0;
}

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--white);
    margin: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    /* filter: var(--primary-color); */
    /* HACK: 2025-09-18 foujita --primary-colorを指定したかったが、読み込まなかったので断念。このサイトでHEXからfilterコード生成（https://angel-rs.github.io/css-color-filter-generator/） */
    filter: invert(51%) sepia(22%) saturate(7418%) hue-rotate(10deg) brightness(105%) contrast(104%);
}

header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

header nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    transition: color 0.3s;
    padding: 5px 10px;
}

header nav a:hover {
    color: var(--primary-color);
}

.header-buttons {
    display: flex;
    gap: 15px;
}

/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-dark);
    transition: all 0.3s ease-in-out;
}

/* ボタン */
.cta-button {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cta-button.primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.menu-right {
    display: flex;
    align-items: end;
    gap: 15px;
}

/* ヒーローセクション */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('pic/tori.jpeg');
    background-size: cover;
    background-position: center 60%;
    color: var(--white-color-v2);
    text-align: start;
    padding: 25vh 0;

}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
    margin-top: 10px;
}

.hero p {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 40px;
}

/* .hero-subtitle {
    font-size: 17px !important;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--white);
    margin-bottom: 0px !important;
} */

.hero-subtitle {
    display: inline-block;
    background: linear-gradient(90deg, #4caf50 0%, #2196f3 100%);
    color: #fff;
    font-size: 1.1rem !important;
    font-weight: bold;
    letter-spacing: 0.08em;
    padding: 0.5em 1.5em;
    border-radius: 2em;
    box-shadow: 0 2px 12px rgba(33, 150, 243, 0.08);
    margin-bottom: 1.5em;
    text-align: center;
    animation: heroSubtitleFadeIn 1.2s ease;
    margin-bottom: 0px !important;
}

.hero-subtitle img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(45deg) brightness(106%) contrast(104%);
}

@media (max-width: 600px) {
    .hero-subtitle {
        font-size: 0.9rem !important;
        padding: 0.4em 1em;
    }
}

@keyframes heroSubtitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .cta-button {
    padding: 15px 40px;
    font-size: 18px;
}

.app-stores {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.app-stores img {
    height: 40px;
    transition: transform 0.3s;
}

.app-stores a:hover img {
    transform: scale(1.05);
}

/* セクション共通 */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--white);
}

section:nth-child(odd):not(.hero) {
    background-color: #fffaf0;
}


h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 60px;
}

/* 課題セクション */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.problem-item {
    text-align: center;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.problem-item i {
    font-size: 70px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* .problem-item img {
    height: 70px;
    margin-bottom: 20px;
} */

.problem-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* 機能セクション */
.feature {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.feature.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-text ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.feature-text ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-text ul li i {
    color: var(--secondary-color);
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.feature-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* 導入事例セクション */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.case-study-card {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.case-study-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-study-text {
    padding: 25px;
}

.case-study-category {
    background-color: var(--secondary-color);
    color: var(--white);
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}

.case-study-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.case-study-farm {
    color: var(--text-light);
}

/* 料金セクション */
.price-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    font-weight: 700;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.price-card {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
}

.price-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.price-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.price-description {
    color: var(--text-light);
    margin-bottom: 20px;
}

.price {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.price span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
}

.price-features {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    text-align: left;
}

.price-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features li i {
    color: var(--secondary-color);
}

/* サポートセクション */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
    text-align: center;
}

.support-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.support-item h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* 登録セクション */
.register-section {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.register-section h2 {
    color: var(--primary-color);
    font-weight: 800;
}

.register-section p {
    font-size: 18px;
    margin-bottom: 30px;
}

.register-section .cta-button {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.contact-link {
    margin-top: 20px;
}

.contact-link a {
    color: var(--white);
    text-decoration: underline;
}

/* 信頼性・開発秘話セクション */
.trust-section {
    background-color: var(--background-light);
}

.trust-content {
    display: flex;
    gap: 30px;
}

.trust-item {
    flex: 1;
    background-color: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.trust-item h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.trust-item p {
    color: var(--text-dark);
}

.vision-content {
    margin-bottom: 50px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.vision-section {
    background: linear-gradient(135deg, #F57C00, #FF9800);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.vision-section::before,
.vision-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.vision-section::before {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
}

.vision-section::after {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -100px;
}

.vision-section .container {
    position: relative;
    z-index: 1;
}

.vision-section h2 {
    color: var(--white);
}

.mission-statement {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.7;
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.core-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.core-value-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
}

.core-value-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.core-value-item p {
    color: rgba(255, 255, 255, 0.9);
}

/* フッター */
footer {
    background-color: #424242;
    color: #f2f2f2;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 20px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 24px;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-links h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 20px;
    font-size: 14px;
    color: #aaa;
}

@media (max-width: 890px) {

    /* ヘッダー */
    .hamburger-menu {
        display: block;
    }

    header nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        display: none;
        /* 初期状態では非表示 */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    header nav.active {
        display: flex;
    }

    header nav ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 10vh 0;
    }

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

    /* 機能セクション */
    .feature,
    .feature.reverse {
        flex-direction: column;
        gap: 30px;
    }

    /* 開発秘話セクション */
    .trust-content {
        flex-direction: column;
    }

    .intro-features {
        flex-direction: column;
        gap: 15px;
    }

    ul {
        padding-inline-start: 0px;
    }

    .problem-item i {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 1.7rem;
    }

}

@media (max-width: 519px) {
    .cta-pc {
        display: none !important;
    }

    .cta-sp {
        display: inline-block !important;
    }

    .display-only-pc {
        display: none !important;
    }
}

@media (min-width: 520px) {
    .cta-pc {
        display: inline-block !important;
    }

    .cta-sp {
        display: none !important;
    }

    .display-only-sp {
        display: none !important;
    }
}

@media (max-width: 415px) {
    .header-buttons {
        font-size: 0.7em !important;
    }
}

.intro-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    flex-wrap: wrap;
}

.intro-features li {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.intro-features i {
    color: var(--primary-color);
    font-size: 20px;
}

.trust-item img {
    width: 100%;
    height: 220px;
    /* 任意の高さに統一 */
    object-fit: cover;
    display: block;
}

.vision-paramagraph {
    margin-bottom: 80px;
}

.vision-paramagraph b {
    font-size: 1.3rem;
}

.core-values b {
    font-size: 1.3rem;
}