/* Reset CSS - based on Meyer’s Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote::before, blockquote::after,
q::before, q::after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
*::after {
    content: none !important;
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", "Helvetica", "YuGothic", "Yu Gothic", "Noto Sans", "Noto Sans JP", "Segoe UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif !important;
}

body {
    background-color: #fff;
    color: #000;
    overflow-x: hidden;
    --wp--preset--font-family--system-font: "Helvetica Neue", "Helvetica", "YuGothic", "Yu Gothic", "Noto Sans", "Noto Sans JP", "Segoe UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.4px;
}

.container {
    width: 100%;
    max-width: none;
    padding:0;
    margin: 0 auto;
}
.input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: none;
    background: transparent;
    outline: none;
}

.input-textarea {
    width: 100%;
    height: 200px;
    padding: 12px;
    font-size: 16px;
    border: none;
    background: transparent;
    resize: vertical;
    outline: none;
}

.checkbox-input {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    accent-color: #28b002; /* 見た目調整（対応ブラウザのみ） */
}

/* Hero Section */
.hero {
    width: 100%;
    height: 100vh;
    padding: 10% 100px;
    background-image: url('../images/main-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hero-content {
    width: 100%;
    max-width: 1400px;
    /* padding: 20% 78px; */
}

.hero-title {
    font-size: 128px;
    font-weight: bold;
    color: #000;
    line-height: 1;
    margin-bottom: 56px;
}

.hero-subtitle {
    font-size: 32px;
    font-weight: bold;
    color: #000;
}

.news-banner {
    width: 100%;
    max-width: 773.7px;
    height: 77.5px;
    background-color: #fff;
    border-radius: 17.7px;
    padding: 3.3px 17.7px;
    display: flex;
    align-items: center;
    gap: 19.9px;
    margin-left: auto;
    box-shadow: 0 1.1px 3.3px rgba(0, 0, 0, 0.3), 0 4.4px 8.9px 3.3px rgba(0, 0, 0, 0.15);
}
.news-banner {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.news-banner:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.news-tag {
    font-size: 12.2px;
    font-weight: bold;
    color: #28b002;
}

.news-date {
    font-size: 12.2px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.4);
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8.9px;
}

.news-title {
    font-size: 15.5px;
    font-weight: bold;
    color: #000;
}

.news-description {
    font-size: 11.1px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
}

.news-arrow {
    color: #28b002;
}

/* Mission Section */
.mission-section {
    padding: 150px 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mission-container {
    max-width: 949px;
    display: flex;
    flex-direction: column;
    gap: 72px;
}

.mission-header {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.section-tag {
    font-size: 24px;
    font-weight: bold;
    color: #1c8200;
    margin-bottom: 1em;
    display: block;
}

.section-title {
    font-size: 48px;
    font-weight: bold;
    color: #000;
}

.mission-body {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.5;
}

/* Solution Section */
.solution-section {
    padding: 0 40px;
    margin-bottom: 40px;
}

.solution-container {
    background: linear-gradient(28deg, rgba(156, 239, 84, 0.2), rgba(84, 239, 239, 0.2));
    border-radius: 40px;
    padding: 80px;
}

.solution-content {
    display: flex;
    gap: 48px;
}

.solution-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.solution-header {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.solution-description {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.5;
}

.product-cards {
    flex: 1;
    display: flex;
    gap: 24px;
}

.product-card {
    background-color: #fff;
    border-radius: 24px;
    padding: 24px;
    width: 392px;
    height: 700px;
    display: flex;
    flex-direction: column;
}

.product-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px); /* ← 上にスライド */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-card:hover .product-title,
.product-card:hover .product-description,
.product-card:hover .product-link-text {
    color: #28b002;
}

.product-title,
.product-description,
.product-link-text {
    transition: color 0.3s ease;
}

.product-image {
    width: 344px;
    height: 344px;
    background-color: #333;
    margin-bottom: 24px;
    border-radius: 8px;
}

.product-image1{
    background-image: url('../images/solution1.png');
    background-size: cover;
    background-position: center;
}

.product-image2{
    background-image: url('../images/solution2.png');
    background-size: cover;
    background-position: center;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    gap: 12px;
}

.product-title {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.5;
}

.product-description {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
}

.product-link {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.product-link-text {
    font-size: 16px;
    font-weight: bold;
    color: #28b002;
}

/* News Section */
.news-section {
    padding: 150px 300px;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 25px;
}

.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: flex;
    padding: 24px 32px;
    border-bottom: 1px solid #a0a0a0;
    gap: 32px;
    align-items: center;
}

.news-item-date {
    font-size: 16px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.4);
    
}

.news-item {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 32px;
    border-bottom: 1px solid #a0a0a0;
    text-decoration: none;
    color: inherit; /* リンクカラーを継承 */
    transition: background-color 0.2s;
}

.news-item:hover {
    background-color: #f8f8f8;
}

.news-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-item-title {
    font-size: 20px;
    font-weight: bold;
}

.news-item-description {
    font-size: 16px;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background-color: #eef2eb;
    padding: 100px 300px 72px;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-form.textarea {
    height: 244px;
}

.input-form.checkbox-group {
    padding: 24px 32px;
    flex-direction: column;
    gap: 16px;
    height: auto;
    align-items: flex-start;
}

.input-label {
    font-size: 20px;
    font-weight: bold;
    color: #8e8e93;
}

.checkbox-row {
    display: flex;
    gap: 24px;
}

.checkbox-group {
    display: flex;
    align-items: centers;
    gap: 8px;
}

.checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d1d1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox.checked {
    background-color: #28b002;
    border-color: #28b002;
}

.checkbox-label {
    font-size: 16px;
    font-weight: bold;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #eef2eb;
    padding: 72px 40px;
}

.input-form {
    background-color: #fff;
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-label {
    font-size: 16px;
    font-weight: bold;
    color: #8e8e93;
}

.input,
.input-textarea {
    font-size: 16px;
    padding: 8px 0;
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
}

.input-textarea {
    resize: vertical;
    min-height: 180px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 10px;
}

.checkbox-input {
    width: 24px;
    height: 24px;
    appearance: none;
    border: 2px solid #d1d1d1;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.checkbox-input:checked {
    background-color: #28b002;
    border-color: #28b002;
}

.checkbox-input:checked::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.checkbox-label {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
}

.copyright {
    font-size: 13px;
    font-weight: bold;
    color: #a0a0a0;
    text-align: center;
    grid-column: 1 / -1;
}

/* Contact Form 7 全体フォームレイアウト */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #eef2eb;
    padding: 72px 40px;
  }
  
  /* form > p をフォームブロックとして使用 */
  .wpcf7-form > p {
    background-color: #fff;
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
  }
  
  /* ラベル */
  .wpcf7-form label {
    font-size: 16px;
    font-weight: bold;
    color: #8e8e93;
  }
  
  /* 共通の入力フィールド */
  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form input[type="tel"],
  .wpcf7-form input[type="url"],
  .wpcf7-form textarea {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    border: none;
    background: transparent;
    outline: none;
    box-sizing: border-box;
  }
  
  /* テキストエリア個別調整 */
  .wpcf7-form textarea {
    resize: vertical;
    min-height: 180px;
  }
  
  /* チェックボックス全体の並び */
  .wpcf7-form .wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
  }
  
  /* チェックボックス項目構成 */
  .wpcf7-form .wpcf7-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  /* チェックボックスの見た目 */
  .wpcf7-form input[type="checkbox"] {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #d1d1d1;
    border-radius: 8px;
    background-color: #fff;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* チェックマーク表示 */
  .wpcf7-form input[type="checkbox"]:checked {
    background-color: #28b002;
    border-color: #28b002;
  }
  
  .wpcf7-form input[type="checkbox"]:checked::after {
    content: '✔';
    color: #fff;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  /* チェックボックスのラベル */
  .wpcf7-form .wpcf7-list-item-label {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
  }
  
  /* 送信ボタン */
  .wpcf7-form input[type="submit"] {
    background-color: #28b002;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .wpcf7-form input[type="submit"]:hover {
    background-color: #1c8200;
  }
  .wpcf7-form .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 8px; /* チェックボックスとテキストの間隔 */
    cursor: pointer;
  }  

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 96px;
    }

    .mission-section, .news-section, .contact-section {
        padding: 100px 100px;
    }

    .solution-content {
        flex-direction: column;
    }

    .product-cards {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .hero {
        /* padding: 100px 40px; */
        height: auto;
    }

    .hero-title {
        font-size: 64px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .news-banner {
        width: 100%;
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 10px;
        align-items: flex-start;
    }

    .mission-section, .news-section, .contact-section {
        padding: 80px 40px;
    }

    .mission-body {
        font-size: 18px;
    }

    .news-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .solution-container {
        padding: 40px 20px;
    }

    .product-card {
        width: 100%;
    }

    .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
}