/* =====================
   Reset & Base Styles
===================== */
/* Reset CSS (Eric 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;
}
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;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #262626;
    overflow-x: hidden;
}

/* =====================
   Utility Classes
===================== */
.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================
   Header & Navigation
===================== */
.header {
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    margin: 0 auto;
    padding: 0 27px;
    border: none;
    max-width: 1920px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-img {
    height: 52px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #0E62C5;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 15px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    background: none;
    transform: none !important;
}

/* Contact Button */
.contact-btn {
    background: #D1003F;
    color: white !important;
    border: 2px solid #D1003F;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: white;
    color: #D1003F !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(209, 0, 63, 0.3);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
    margin-left: 20px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #0E62C5;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -6px);
}

/* =====================
   Hero Section (index.html)
===================== */
.hero {
    margin-top: 80px;
    padding-bottom: 36px;
    border: none;
    background: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 510px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background-image: url('/images/hero-bg-239457.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(0, 79, 158, 0.9) 0%, rgba(0, 106, 213, 0.8) 40.38461446762085%, rgba(0, 106, 213, 0.2) 100%);
}

.hero-content {
    margin: 0 auto;
    padding: 0 10px;
    border: none;
    background: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1180px;
    flex: 1;
}

.hero-text {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    color: white;
    text-align: center;
    word-break: keep-all;
    flex: 1 1 0;
    min-width: 0;
    max-width: 454px;
    animation: fadeInUp 1s ease-out;
}

.hero-image {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    max-width: 700px;
    animation: fadeInRight 1s ease-out 1.2s both;
}

.hero-devices-img {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 10px;
}

.hero-logo {
    margin-bottom: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    animation: fadeInDown 1s ease-out 0.3s both;
}

.hero-logo-img {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    width: 100%;
    max-width: 80%;
    height: auto;
}

.hero-title {
    margin-bottom: 20px;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    font-size: clamp(22px, 5vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.6s both;
    word-break: break-word;
    max-width: 100%;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: clamp(16px, 3vw, 24px);
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    margin-top: -16px;
    margin-bottom: 10px;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Hero Navigation */
.hero-nav {
    background: rgba(0, 64, 128, 0.8);
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.hero-nav-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 14px 370px;
}

.hero-nav-list {
    display: flex;
    justify-content: center;
    gap: 95px;
    list-style: none;
}

.hero-nav-list a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.hero-nav-list a:hover {
    color: #66B2FF;
    transform: translateY(-2px);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: white;
    color: #D1003F;
    text-decoration: none;
    font-weight: 600;
    font-size: 26px;
    padding: 14px 34px;
    border: 6px solid #D1003F;
    border-radius: 11px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1;
}

.cta-button:hover {
    background: #D1003F;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-cta {
    font-size: clamp(16px, 2.5vw, 26px);
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* =====================
   Merit Section (index.html)
===================== */
.merit {
    margin: 0;
    padding: 64px 0 80px;
    border: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 68%);
    box-shadow: none;
    display: block;
    position: relative;
}

.merit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: url('/images/merit-bg.png') center/cover;
}

.merit-container {
    margin: 0 auto;
    padding: 0 20px;
    border: none;
    background: none;
    box-shadow: none;
    max-width: 1180px;
}

.merit-header {
    margin-bottom: 140px;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    text-align: left;
    animation: fadeInUp 1s ease-out;
}

.merit-title {
    margin-bottom: 22px;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    font-size: 48px;
    font-weight: 700;
    color: #004080;
    line-height: 1.2;
}

.merit-subtitle {
    margin-bottom: 22px;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    font-size: 32px;
    font-weight: 700;
    color: #004080;
}

.merit-description {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    font-size: 24px;
    font-weight: 700;
    color: #004080;
    line-height: 1.6;
    max-width: 1080px;
}

.merit-cards {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: center;
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .merit-cards {
        flex-direction: column;
        gap: 32px;
        align-items: center;
        flex-wrap: wrap;
    }
}

.merit-card {
    margin: 0;
    padding: 130px 24px 33px;
    border: none;
    background: white;
    box-shadow: 0 0 20px rgba(85, 170, 255, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    width: 350px;
    min-height: 200px;
    border-radius: 24px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .merit-card {
        padding: 40px 16px 32px;
        min-height: 346px;
        width: 100%;
        max-width: 400px;
    }
}

.merit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(85, 170, 255, 0.3);
}

.card-icon {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    position: absolute;
    top: -114px;
    left: 50%;
    transform: translateX(-50%);
    width: 213px;
    height: 221px;
    display: flex;
}

.merit-card:nth-child(1) .card-icon-img {
    transform: scaleX(-1);
}

.merit-card:nth-child(2) .card-icon {
    top: -85px;
    width: 224px;
    height: 178px;
}

.merit-card:nth-child(3) .card-icon {
    top: -118px;
    width: 271px;
    height: 235px;
}

.card-icon-img {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-title {
    margin: 0 0 12px 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    font-size: 22px;
    font-weight: 700;
    color: #004080;
    line-height: 1.2;
}

.card-description {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    font-size: 16px;
    color: #004080;
    line-height: 1.6;
}

/* =====================
   Ask Section (index.html)
===================== */
.ask {
    position: relative;
    height: 399px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ask::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-image: url('/images/ask-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.ask::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 64, 128, 0.6) 0%, rgba(0, 64, 128, 1) 100%);
    z-index: -1;
}
.ask-content {
    text-align: center;
    color: white;
    max-width: 1180px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}
.ask-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 13px;
    line-height: 1.2;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
}
.ask-description {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 48px;
    line-height: 1.5;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
}
.ask-cta {
    font-size: 32px;
    padding: 24px 60px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

@media (max-width: 768px) {
  .ask-cta {
    font-size: clamp(10px, 4vw, 18px); /* 下限をさらに下げる */
    white-space: nowrap;
    overflow: hidden;
    /* text-overflow: ellipsis; を削除 */
    padding: 12px 8px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
}

/* =====================
   Footer
===================== */
.footer {
    position: relative;
    height: 210px;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-image: url('/images/footer-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.footer-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 100%);
    z-index: -1;
}

.footer-content {
    max-width: 1258px;
    margin: 0 auto;
    padding: 19px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    height: 100%;
}

.footer-info {
    color: white;
    text-align: left;
}

@media (max-width: 1000px) {
    .footer-info {
        color: #262626;
    }
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 0;
}

.footer-company,
.footer-address,
.footer-website {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 61px;
    justify-content: center;
}

.footer-link {
    color: #262626;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #66B2FF;
}

/* =====================
   Privacy Policy Page (privacy.html)
===================== */
.privacy-section {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 50px;
    padding-right: 50px;
    padding-top: 200px;
    padding-bottom: 100px;
    background: rgba(255,255,255,0.8);
    border-radius: 16px;
}

.privacy-main {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 68%);
    position: relative;
}
.privacy-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/merit-bg.png') center/cover;
    z-index: -1;
}

/* =====================
   ERROR Page (error.html)
===================== */
.error-section {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 50px;
    padding-right: 50px;
    padding-top: 200px;
    padding-bottom: 100px;
    background: rgba(255,255,255,0.8);
    border-radius: 16px;
}

.error-main {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 68%);
    position: relative;
    /* 404ページ専用：画面の高さからフッターの高さを引いた高さを設定 */
    min-height: calc(100vh - 210px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.error-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/merit-bg.png') center/cover;
    z-index: -1;
}
.error-body p {
  margin-bottom: 1.2em;
  text-align: center;
  font-size: 18px;
  color: #004080;
  font-weight: 500;
}


/* hタグのベース指定は最小限に */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.7em;
}
h1 { font-size: 2.2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.2em; }

/* カスタムタイトルはクラスで上書き */
.hero-title, .merit-title, .privacy-title, .error-title {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
}

/* 404ページ専用タイトルスタイル */
.error-title {
  font-size: 80px;
  font-weight: 900;
  color: #004080;
  text-align: center;
  margin-bottom: 16px;
}

/* プライバシーポリシー内のリスト・段落の余白を調整 */
.privacy-body ul, .privacy-body ol {
  margin-bottom: 1.2em;
  padding-left: 1.5em;
}
.privacy-body ul {
  list-style: disc inside;
}
.privacy-body ol {
  list-style: decimal inside;
}
.privacy-body li {
  margin-bottom: 0;
}
.privacy-body p {
  margin-bottom: 1.2em;
}
.privacy-body > ol {
  padding-left: 0;
}
.privacy-body ol li {
  text-indent: -1em;
  padding-left: 1em;
}
.privacy-body ol > li > ol {
  padding-left: 0;
}

/* セクションやmainの余白は必要に応じて調整 */
section, main {
  margin-bottom: 0;
}

@media (max-width: 1200px) {
  .privacy-main {
    padding-left: 0;
    padding-right: 0;
  }
  .error-main {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .cta-button {
    width: 100%;
    box-sizing: border-box;
  }
  .nav-list {
    display: none;
    gap: 0;
  }
  .nav-list.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1001;
    padding: 0;
  }
  .nav-list.active .nav-link:not(.contact-btn) {
    background: #fff;
    border-radius: 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin: 0;
    padding: 16px 0;
    color: #0E62C5;
    font-size: 18px;
    text-align: center;
    width: 100%;
    display: block;
    box-sizing: border-box;
    transition: background 0.2s;
  }
  .nav-list.active .nav-link:not(.contact-btn):hover {
    background: rgba(14, 98, 197, 0.05);
  }
  .nav-list.active .nav-item:not(:last-child) {
    margin: 0;
    padding: 0;
  }
  .contact-btn {
    font-size: 16px;
    padding: 16px 24px;
    border-radius: 0;
    border-width: 6px;
  }
}

@media (max-width: 1200px) {
  .privacy-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .error-section {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* =====================
   Animations
===================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* AOS Animation Classes */
[data-aos] {
    opacity: 0;
    transition: all 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

/* =====================
   Responsive Design
===================== */
@media (max-width: 1200px) {
  .header-container,
  .hero-content,
  .footer-content,
  .ask-content,
  .merit-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-nav-container {
    padding: 14px 20px;
  }
}

@media (max-width: 768px) {
  /* ヘッダー */
  .header-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .nav-list {
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1001;
    padding: 0;
    transform: translateY(-60px);
    opacity: 0;
    pointer-events: none;
    transition: transform 1s cubic-bezier(.4,0,.2,1), opacity 1s cubic-bezier(.4,0,.2,1);
  }
  .nav-list.active {
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .hamburger {
    display: flex;
  }
  .nav-link {
    color: #0E62C5;
    font-size: 18px;
    padding: 14px 24px;
    text-align: left;
  }
  .contact-btn {
    font-size: 16px;
    padding: 16px 24px;
  }

  /* Heroセクション */
  .hero {
    height: auto;
    min-height: 100vh;
    margin-top: 60px;
    padding-bottom: 0;
  }
  .hero-content {
    flex-direction: column;
    padding: 40px 16px 24px;
    max-width: 100%;
  }
  .hero-text {
    max-width: 100%;
    margin-bottom: 32px;
  }
  .hero-image {
    order: -1;
    margin-bottom: 24px;
    max-width: 100%;
  }
  .hero-devices-img {
    max-width: 100%;
    width: 100%;
    height: auto;
  }
  .hero-title {
    font-size: clamp(16px, 7vw, 28px);
    margin-bottom: 16px;
    white-space: nowrap;
  }
  .hero-subtitle {
    font-size: clamp(14px, 5vw, 18px);
    margin-bottom: 8px;
  }
  .hero-cta {
    font-size: clamp(14px, 5vw, 18px);
    padding: 12px 20px;
  }

  /* Heroナビ */
  .hero-nav-container {
    padding: 10px 16px;
  }
  .hero-nav-list {
    gap: 24px;
  }
  .hero-nav-list a {
    font-size: 16px;
  }
  .hero-nav {
    display: none;
  }

  /* Meritセクション */
  .merit-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .merit-cards {
    flex-direction: column;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
  }
  .merit-card {
    padding: 40px 12px 24px;
    min-height: 320px;
    width: 100%;
    max-width: 400px;
  }
  .card-title {
    font-size: 18px;
  }
  .card-description {
    font-size: 15px;
    max-width: 100%;
    text-align: left;
  }
  .card-icon {
    width: 120px;
    height: 120px;
    top: -60px;
  }
  .card-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Askセクション */
  .ask-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ask-title {
    font-size: 22px;
  }
  .ask-description {
    font-size: 15px;
  }
  .ask-cta {
    font-size: clamp(12px, 5vw, 18px); /* 下限を14px→12pxに微調整 */
    padding: 12px 20px;
  }

  /* Errorページ（404）専用モバイル対応 */
  .error-main {
    min-height: calc(100vh - 60px - 210px); /* モバイルヘッダー高さ60px、フッター210px */
    padding: 20px 16px;
  }
  .error-section {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 100px;
    padding-bottom: 50px;
  }
  .error-title {
    font-size: clamp(40px, 15vw, 80px);
    margin-bottom: 12px;
  }
  .error-body p {
    font-size: 16px;
  }

  /* フッター */
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding-left: 16px;
    padding-right: 16px;
  }
  .footer-info {
    font-size: 14px;
  }
  .footer-links {
    gap: 20px;
  }
  .footer-link {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .hero-text {
    width: 100%;
    max-width: 100%;
  }
  .hero-title {
    font-size: clamp(26px, 9vw, 36px);
  }
  .hero-subtitle {
    font-size: clamp(20px, 7vw, 28px);
  }
  .hero-cta {
    font-size: clamp(18px, 6vw, 24px);
    padding: 16px 24px;
  }
  .hero-image {
    margin-bottom: 0;
  }
  .merit-title {
    font-size: clamp(22px, 7vw, 26px);
  }
  .merit-subtitle {
    font-size: clamp(18px, 6vw, 22px);
  }
  .merit-description {
    font-size: clamp(15px, 5vw, 18px);
  }
  .merit-card {
    max-width: 100%;
    min-height: 200px;
    margin-bottom: 120px;
  }
  .merit-card:nth-child(3) {
    margin-bottom: 0;
  }
  .card-title {
    font-size: clamp(17px, 5vw, 20px);
  }
  .card-description {
    font-size: clamp(14px, 4vw, 16px);
  }
  .card-icon,
  .merit-card:nth-child(2) .card-icon,
  .merit-card:nth-child(3) .card-icon {
    width: 80%;
    height: 80%;
    top: -140px;
  }
  .header .logo-img {
    width: 40vw;
    height: auto;
    max-width: none;
  }
  .ask-content {
    width: 100%;
    max-width: 100%;
  }
  .ask-title {
    font-size: clamp(22px, 7vw, 32px);
  }
  .ask-description {
    font-size: clamp(17px, 6vw, 22px);
  }
  .ask-cta {
    font-size: clamp(18px, 6vw, 24px);
    padding: 16px 24px;
  }
}

@media (max-width: 768px) {
  .hero-devices-img {
    animation: fadeInUp 1s ease-out 0.1s both;
  }
  .hero-logo {
    animation-delay: 0.4s !important;
  }
  .hero-subtitle {
    animation-delay: 0.7s !important;
  }
  .hero-title {
    animation-delay: 1.0s !important;
  }
  .hero-cta {
    animation-delay: 1.3s !important;
  }
}

.nav-list.active .nav-item {
    width: 100%;
}
.nav-list.active .nav-link {
    width: 100%;
    display: block;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
} 