/* ========== 共通 ========== */
:root {
    --primary-color: #000;
    --primary-blue: #0d6fb8;
    --secondary-color: #333;
    --light-gray: #f8f9fa;
    --border-gray: #e0e0e0;
    --accent-navy: #1a237e;
    --white: #fff;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    padding-top: 48px;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "ヒラギノ角ゴ ProN W3", Arial, メイリオ, Meiryo, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--secondary-color);
    min-width: 320px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    body {
        min-width: 100%;
        padding-top: 10px;
    }
    
    .container {
        padding: 0 20px;
        width: 100%;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    body {
        padding-top: 0px;
    }
}

section {
    padding: 80px 20px;
}

section h2 {
    font-size: clamp(24px, 5vw, 38px);
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

@media (max-width: 768px) {
    section h2 {
        margin-bottom: 30px;
    }
}

.sp-br,
.tablet-br {
    display: none;
}

@media (max-width: 768px) {
    .sp-br {
        display: inline;
    }
    .tablet-br,
    .pc-br {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .tablet-br {
        display: inline;
    }
    .sp-br,
    .pc-br {
        display: none;
    }
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 80px;
}

@media (max-width: 1024px) {
    section[id] {
        scroll-margin-top: 60px;
    }
}

/* ========== ボタン ========== */
.more-btn, .contact-btn, .submit-btn, .header-contact-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.more-btn {
    display: block;
    width: 40%;
    padding: 10px;
    background: var(--white);
    color: #343434;
    border: 2px solid #343434;
    border-radius: 25px;
    font-size: 14px;
}

.more-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.header-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover {
    background: #0a57a1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* ========== ヘッダー ========== */
header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-width: 320px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 200px;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .logo img {
        width: 140px;
        margin: 0;
        padding: 0;
    }
}

@media (min-width: 769px) {
    header {
        transition: all 0.3s ease; 
    }

    .header-inner {
        transition: all 0.3s ease; 
    }

    .logo {
        transition: all 0.3s ease; 
    }

    header.scrolled .header-inner {
        padding: 10px 40px;
    }

    header.scrolled .logo {
        transform: scale(0.9);
    }
}

@media (max-width: 1200px) {
    .header-inner {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        height: 60px;
        padding: 10px 15px;
        position: relative;
    }

    .logo {
        order: 1;
        margin-right: auto;
    }

    .header-nav {
        order: 2;
        opacity: 0;
        visibility: hidden;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--primary-blue);
        z-index: 9999;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        display: flex;
        justify-content: center;
    }

    .header-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        min-height: calc(100vh - 60px);
        min-height: calc(100dvh - 60px);
        align-items: flex-start;
    }

    .header-nav ul {
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 320px;
    }

    .header-nav li {
        width: 100%;
        border-bottom: solid 1px rgba(255,255,255,0.1);
    }

    .header-nav li a {
        padding: 20px;
        display: block;
        color: #fff;
        text-decoration: none;
        text-align: center;
        line-height: 1.5;
        -webkit-tap-highlight-color: transparent;
    }
    
    .header-nav li a:active {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
    }

    .hamburger-menu {
        order: 4;
        width: 44px;
        height: 50px;
        position: relative;
        border: none;
        background: transparent;
        appearance: none;
        padding: 0;
        cursor: pointer;
        display: block;
        flex-shrink: 0;
    }

    .hamburger-menu__bar {
        display: inline-block;
        width: 44%;
        height: 2px;
        background: #1a1a1a;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        transition: .5s;
    }

    .hamburger-menu__bar:first-child {
        top: 16px;
    }

    .hamburger-menu__bar:nth-child(2) {
        top: 24px;
    }

    .hamburger-menu__bar:last-child {
        top: 32px;
    }

    .hamburger-menu--open .hamburger-menu__bar {
        top: 50%;
    }

    .hamburger-menu--open .hamburger-menu__bar:first-child {
        transform: translateX(-50%) translateY(-50%) rotate(45deg);
    }

    .hamburger-menu--open .hamburger-menu__bar:last-child {
        transform: translateX(-50%) translateY(-50%) rotate(-45deg);
    }

    .hamburger-menu--open .hamburger-menu__bar:nth-child(2) {
        display: none;
    }

    .header-contact-btn {
        order: 2;
        padding: 6px 36px;
        font-size: 13px;
        min-width: 140px;
    }
}

@media (min-width: 1201px) {
    .hamburger-menu {
        display: none;
    }

    .header-inner {
        flex-wrap: nowrap;
        gap: 16px;
        padding: 20px clamp(20px, 2.5vw, 40px);
    }

    .logo {
        flex-shrink: 0;
    }

    .header-nav {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
    }

    .header-nav ul {
        flex-wrap: nowrap;
        justify-content: center;
        gap: clamp(14px, 1.6vw, 28px);
    }

    .header-nav li {
        flex-shrink: 0;
    }

    .header-nav a {
        white-space: nowrap;
    }

    .header-contact-btn {
        flex-shrink: 0;
    }
}

@media (max-width: 1320px) and (min-width: 1201px) {
    .header-contact-btn {
        padding: 10px 36px 10px 16px;
        font-size: 14px;
        min-width: 140px;
    }
}

.header-contact-btn {
    background: var(--primary-blue);
    color: #fff;
    font-weight: bold;
    padding: 12px 44px 12px 20px;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
    position: relative;
    text-align: left;
    min-width: 160px;
}

.header-contact-btn::after {
    content: '→';
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 18px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.header-contact-btn:hover::after {
    transform: translateY(-50%) scale(1.2);
}

.header-nav {
    display: flex;
    align-items: center;
}

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

.header-nav a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
    opacity: 0.8;
}

.header-nav a:hover {
    opacity: 0.9;
}

.header-nav a:hover::after {
    width: 100%;
}

.header-nav a:active {
    color: #1a1a1a;
    opacity: 0.9;
}

.header-nav a:active::after {
    width: 100%;
}

@media (max-width: 768px) {
    .header-nav a {
        font-size: 18px;
        padding: 12px 0;
        white-space: normal;
    }
}

@media (max-width: 1200px) {
    .header-contact-btn {
        padding: 6px 36px 6px 16px;
        min-width: 140px;
    }
}

/* ========== Hero ========== */
.hero {
    padding: 40px 20px 80px;
    background: var(--white);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    min-width: 0;
    overflow: visible;
}

@media (min-width: 769px) {
    .hero-content {
        gap: 34px;
    }
}

.hero-text {
    flex: 0 0 41%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: auto;
    padding: 36px 30px 0;
    background: none;
    position: relative;
    z-index: 5;
    overflow: visible;
    contain-intrinsic-size: auto;
}

.hero-text::before {
    content: none;
}
.hero-headline-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.hero-headline-link:hover,
.hero-headline-link:focus-visible {
    color: inherit;
    text-decoration: none;
}

.hero p.hero-kicker {
    margin: 0 0 30px;
    padding: 0;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #212121;
    text-align: left;
    background: none;
}

.hero h1 {
    margin-top: 0;
    margin-left: -0.45em;
    padding-left: 0.45em;
    color: #212121;
    font-size: 42px;
    font-weight: bold;
    line-height: 1.34;
    text-align: left;
    letter-spacing: 0.01em;
    text-indent: -0.45em;
    width: max-content;
    min-width: 0;
    position: relative;
    z-index: 6;
}

.hero h1 em {
    font-style: normal;
    color: inherit;
    font-weight: 900;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "游明朝", "MS PMincho", serif;
    font-size: 1.5em;
    letter-spacing: 0.03em;
    position: relative;
    display: inline-block;
    margin-right: -0.40em;
    color: var(--primary-blue);
}

.hero h1 em::after {
    height: 8px;
    bottom: -6px;
}

.hero p.hero-lead {
    margin-top: 40px;
    padding: 0;
    font-size: 16px;
    line-height: 1.7;
    text-align: left;
    background: none;
}

.hero-punct-tight {
    display: inline-block;
    margin-right: -0.2em;
}

.hero-comma-tablet {
    display: none;
}

.hero-kern-tight {
    letter-spacing: -0.05em;
}

.hero-quote-open {
    display: inline-block;
    margin-left: -0.06em;
    margin-right: 0;
}
.hero-cta {
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 280px;
    max-width: 100%;
}

.hero-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    font-size: 20px;
    line-height: 1;
    padding: 12px 18px 12px 24px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-btn::after {
    content: "→";
    font-size: 1.1em;
}

.hero-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.hero-btn--primary {
    background: var(--primary-blue);
    color: #fff;
    border: 2px solid var(--primary-blue);
    font-size: 18px;
}

.hero-btn--secondary {
    background: #fff;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}
.hero-viewer-container {
    flex: 0 0 56%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding-top: 30px;
}

.hero-viewer {
    animation: slideUp 0.7s ease-out 0.4s both;
}

.hero-viewer.hero-main-slider {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2.1;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: none;
}

.hero-main-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-main-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.hero-main-slider .swiper-wrapper,
.hero-main-slider .swiper-slide,
.hero-main-slider .swiper-slide img {
    position: relative;
    z-index: 1;
}

.hero-main-slider .hero-slider-controls {
    margin-top: 0;
    position: absolute !important;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.hero-swiper-button-prev,
.hero-swiper-button-next,
.hero-swiper-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid #d2dce8;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    color: #595959;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-swiper-button-prev span,
.hero-swiper-button-next span,
.hero-swiper-toggle span {
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    color: #595959;
}

.hero-swiper-toggle span {
    font-size: 16px;
}
.hero-text .hero-kicker {
    animation: fadeIn 0.55s ease-out 0.05s both;
}

.hero-text h1 {
    animation: slideIn 0.75s ease-out 0.2s both;
}

.hero-text .hero-lead {
    animation: fadeIn 0.65s ease-out 0.45s both;
}

.hero-text .hero-cta {
    animation: fadeIn 0.65s ease-out 0.65s both;
}
@media (max-width: 1140px) {
    .hero-content {
        --hero-text-inset: 20px;
        --hero-hanging-indent: 0.45em;
        --hero-slider-inset: 12px;
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 10px;
        padding: 20px 0 0;
        overflow: hidden;
    }

    .hero-text {
        display: contents;
        flex: none;
        width: 100%;
    }

    .hero p.hero-kicker {
        order: 1;
        margin: 0 0 16px;
        font-size: clamp(16px, 2.2vw, 20px);
        text-align: left;
        padding-left: var(--hero-text-inset);
        box-sizing: border-box;
    }

    .hero h1 {
        order: 2;
        font-size: clamp(28px, 4.8vw, 40px);
        text-align: left;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        padding-left: var(--hero-text-inset);
        text-indent: calc(-1 * var(--hero-hanging-indent));
    }

    .hero-viewer-container {
        order: 3;
        flex: none;
        width: 100%;
        height: auto;
        margin: 0 0 18px;
        padding-left: var(--hero-slider-inset);
        padding-right: var(--hero-slider-inset);
        box-sizing: border-box;
    }

    .hero p.hero-lead {
        order: 4;
        margin-top: 0;
        font-size: clamp(14px, 1.8vw, 16px);
        text-align: left;
        padding-left: var(--hero-text-inset);
        padding-right: var(--hero-text-inset);
        box-sizing: border-box;
    }

    .hero-cta {
        order: 5;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btn {
        font-size: clamp(14px, 2vw, 18px);
    }

    .hero-viewer.hero-main-slider {
        margin: 0;
    }

    .hero-main-slider .swiper-slide,
    .hero-main-slider .swiper-slide img {
        height: 100%;
    }

    .hero-main-slider .hero-slider-controls {
        bottom: 16px;
        gap: 12px;
    }

    .hero-swiper-button-prev,
    .hero-swiper-button-next,
    .hero-swiper-toggle {
        width: 38px;
        height: 38px;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.16);
    }

    .hero-swiper-button-prev span,
    .hero-swiper-button-next span {
        font-size: 20px;
    }

    .hero-swiper-toggle span {
        font-size: 14px;
    }
}
@media (max-width: 768px) {
    .hero {
        padding: 20px 0 50px;
        overflow: hidden;
    }

    .hero-content {
        --hero-text-inset: 20px;
        --hero-hanging-indent: 0.45em;
        padding-top: 18px;
    }

    .hero h1 {
        font-size: clamp(26px, 4.4vw, 36px);
        text-align: left;
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        padding-left: var(--hero-text-inset);
        text-indent: calc(-1 * var(--hero-hanging-indent));
    }

    .hero p.hero-lead {
        text-align: left;
    }

    .hero-cta {
        margin-top: 24px;
    }

    .hero h1 em::after {
        height: 5px;
        bottom: -4px;
    }

    .hero-main-slider .hero-slider-controls {
        bottom: 8px;
        gap: 10px;
    }

    .hero-swiper-button-prev,
    .hero-swiper-button-next,
    .hero-swiper-toggle {
        width: 34px;
        height: 34px;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
    }

    .hero-swiper-button-prev span,
    .hero-swiper-button-next span {
        font-size: 18px;
    }

    .hero-swiper-toggle span {
        font-size: 13px;
    }
}
@media (min-width: 769px) and (max-width: 1140px) {
    .hero {
        padding-bottom: 60px;
    }

    .hero p.hero-lead {
        text-align: center;
        font-size: 18px;
    }

    .hero p.hero-lead .hero-comma-tablet {
        display: inline;
    }
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ========== 特徴 ========== */
.features {
    background: #f3f7ff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-box {
    text-align: center;
    padding: 20px;
    border-radius: 50%;
    width: 380px;
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box img {
    width: 300px;
    height: auto;
}

.feature-box p {
    text-align: center;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #212121;
    line-height: 1.5;
    letter-spacing: 0.05em;
}

.features-message {
    text-align: center;
    margin: 20px auto;
    max-width: 1000px;
    padding: 0 20px;
}

.features-message h3 {
    font-size: 36px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.features-message p {
    font-size: 22px;
    line-height: 2;
    color: var(--secondary-color);
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

.features-message h3 em {
    font-style: normal;
    font-weight: 700;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "游明朝", "MS PMincho", serif;
    letter-spacing: 0.03em;
    font-size: 1.45em;
    display: inline-block;
    margin-left: -0.22em;
    margin-right: -0.28em;
}

.features-message h3 .features-q-open {
    display: inline-block;
    margin-left: -0.06em;
    margin-right: -0.06em;
}

.features-message h3 .features-q-close {
    display: inline-block;
    margin-left: -0.08em;
    margin-right: -0.06em;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
        justify-items: center;
    }

    .features-grid .feature-box:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
        margin-top: -60px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        display: flex;
        flex-direction: column;
        align-items: center; 
        gap: 30px;
    }

    .feature-box {
        width: 320px;
        height: 320px;
        margin: 0 auto; 
    }

    .feature-box img {
        width: 220px;
        height: auto;
    }
    
    .features-message h3 {
        font-size: 24px;
    }
    
    .features-message p {
        font-size: 16px;
    }
    
    .feature-box p {
        font-size: 16px;
    }
}

/* ========== 制作実績 ========== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.works-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 3px solid var(--border-gray);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.works-card h3 {
    font-size: 16px;
    margin-bottom: 0px;
    line-height: 1.3;
    min-height: 42px;
    display: flex;
    align-items: center;
}

.works-card h4 br + * {
    line-height: 1.1;
}

.work-image {
    position: relative;
    text-align: center;
    width: 100%;
}

.work-image img {
    width: auto;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 20px;
    margin-bottom: 15px;
}

.work-icons {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: left;
    justify-content: left;
    gap: 10px;
}

.work-icon,
.work-icon-catalog,
.work-icon-web,
.work-icon-panel,
.work-icon-kinenshi,
.work-icon-leaflet {
        display: inline-block;
    padding: 2px 10px;
    border-radius: 5px;
    color: var(--white);
    font-size: 12px;
}

.work-icon {
    background: #bba36a;
}

.work-icon-catalog {
    background: #6eb5df;
}

.work-icon-kinenshi {
    background: #89dabe;
}

.work-icon-web {
    background: #343434;
}

.work-icon-panel {
    background: #777777;
}

.work-icon-leaflet {
    background: #da879a;
}

.work-icons a[class^="work-icon"] {
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.12s ease;
    position: relative;
}

.work-icons a[class^="work-icon"]:hover {
    opacity: 0.85;
}

body.page-works .work-icons .work-icon--filterable {
    cursor: pointer;
    transition: opacity 0.12s ease;
}

body.page-works .work-icons .work-icon--filterable:hover {
    opacity: 0.85;
}

.work-icons a[class^="work-icon"][data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    padding: 6px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.08s ease, transform 0.08s ease;
    z-index: 20;
}

.work-icons a[class^="work-icon"][data-tooltip]:hover::after,
.work-icons a[class^="work-icon"][data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.works-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 1200px;
    margin: 24px auto 32px;
    padding: 0 20px;
}

.works-filter__btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.works-filter__btn.is-active {
    color: #fff;
}

.works-filter__btn--all.is-active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.works-filter__btn.work-icon.is-active {
    background: #bba36a;
    border-color: #bba36a;
}

.works-filter__btn.work-icon-catalog.is-active {
    background: #6eb5df;
    border-color: #6eb5df;
}

.works-filter__btn.work-icon-kinenshi.is-active {
    background: #89dabe;
    border-color: #89dabe;
}

.works-filter__btn.work-icon-web.is-active {
    background: #343434;
    border-color: #343434;
}

.works-filter__btn.work-icon-panel.is-active {
    background: #9e9e9e;
    border-color: #9e9e9e;
}

.works-filter__btn.work-icon-leaflet.is-active {
    background: #da879a;
    border-color: #da879a;
}

.works-filter-empty {
    text-align: center;
    margin: 0 auto 32px;
    padding: 0 20px;
    font-size: 16px;
    color: var(--secondary-color);
}

.works-card.is-filtered-out {
    display: none;
}

.pms-icon {
    text-align: center;
    margin-bottom: 20px;
}

.pms-icon img {
    width: 60px;
    height: auto;
}

@media (max-width: 1024px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
}
.achievement {
    position: relative;
    padding: 0 20px 80px 20px;
    text-align: center;
    margin-bottom: 0;
}

.achievement-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.achievement-image {
    position: relative;
    z-index: 2;
    margin: 40px auto 40px;
    text-align: center;
    max-width: 1000px;
}

/* services内のSVG上下だけ余白 */
.services .achievement-image {
    padding-top: 28px;
    padding-bottom: 10px;
}

.achievement-image img,
.achievement-image .services-map-svg {
    width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.works-card p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--secondary-color);
    margin-bottom: 3px;
    min-height: 29px;
    display: flex;
    align-items: center;
}

.achievement h2 {
    font-size: 32px;
    position: relative;
    z-index: 1;
    padding: 10px 20px;
    letter-spacing: 0.05em;
}

.achievement h2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 400px solid transparent;
    border-right: 400px solid transparent;
    border-top: 180px solid #f3f7ff;
    z-index: -1;
}

.works-disclaimer {
    text-align: center;
    margin: 48px auto 0;
    max-width: 1200px;
    padding: 0 20px;
    font-size: 14px;
    color: var(--secondary-color);
    line-height: 1.6;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .works-disclaimer {
        font-size: 15px;
    }
}

.works .button-center {
    margin-top: 28px;
}

body:not(.page-works) .works .button-center {
    margin-top: 56px;
}

/* ========== 4つのポイント導線 ========== */
.points-nav {
    background: #f8f9fa;
}

.points-nav-lead {
    text-align: center;
    font-size: 22px;
    line-height: 2;
    color: var(--secondary-color);
    margin: 0 auto 40px;
    max-width: 900px;
    padding: 0 20px;
    letter-spacing: 0.05em;
}

.points-nav .button-center {
    margin-top: 60px;
}

.points-nav .contact-btn {
    background: #ff6b6b;
    border-color: #ff6b6b;
}

.points-nav .contact-btn:hover {
    background: #fff;
    color: #ff6b6b;
}

.point-card-sub {
    list-style: none;
    padding: 0 20px 0 40px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 2px solid #ddd;
    margin-left: 20px;
    min-height: 0;
    position: relative;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding-top 0.3s ease, padding-bottom 0.3s ease;
}

.point-card-sub.is-open {
    opacity: 1;
    padding-top: 12px;
    padding-bottom: 20px;
}

.point-card-sub li {
    min-width: 0;
}

.point-card-sub a {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    padding: 8px 12px;
    margin-bottom: 4px;
    color: #555;
    background: transparent;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
    text-decoration: none;
}

.point-card-sub a:hover {
    background: #eee;
    color: #ff6b6b;
    font-weight: 700;
}

.point-sub-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35em;
    height: 1.35em;
    flex-shrink: 0;
    font-size: 1em;
    font-weight: 700;
    line-height: 1;
    border: 1px solid #888;
    color: #555;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.point-card-sub a:hover .point-sub-num {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .points-nav-lead {
        font-size: 17px;
        margin-bottom: 40px;
    }

    .point-card-sub {
        padding: 0 18px 0 36px;
        margin-left: 18px;
    }

    .point-card-sub.is-open {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .point-card-sub a {
        font-size: 17px;
        padding: 7px 10px;
    }
}

@media (max-width: 768px) {
    .points-nav-lead {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 12px;
        text-align: left;
        line-height: 2;
        letter-spacing: 0.05em;
    }

    .point-card-sub {
        padding: 0 12px;
        margin-left: 0;
        border-left: none;
    }

    .point-card-sub.is-open {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .point-card-sub a {
        font-size: 16px;
        padding: 6px 8px;
    }
}

/* ========== サービス ========== */
.services-slider {
    position: relative;
    max-width: 980px;
    padding: 0 30px;
    margin-top: 60px;
}

.services-slider .swiper-slide.service-box {
    padding: 0 10px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-box img {
    width: 100%;
    height: auto;
}

.service-box h3 {
    font-size: 16px;
    color: var(--secondary-color);
}

.service-box p {
    font-size: 13px;
    color: #666;
}

@media (max-width: 768px) {
    .services-slider {
        margin-top: 10px;
    }
    .service-box img {
        width: 80%;
        height: auto;
    }
}
.services-slider .swiper-button-next,
.services-slider .swiper-button-prev {
    width: 32px;
    height: 32px;
    background: #0d6fb8;
    border-radius: 50%;
}

.services-slider .swiper-button-next:after,
.services-slider .swiper-button-prev:after {
    font-size: 16px;
    color: #fff;
}

.button-container {
    display: flex;
    text-align: center;
    gap: 10px;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
}

.button-container .more-btn {
    width: 45%;
    text-align: center;
}

.button-container:has(.more-btn:only-child) .more-btn {
    width: 90%;
}

.services .achievement-image img:first-child,
.services .achievement-image .services-map-svg {
    width: 76%;
    height: auto;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .services .achievement-image img:first-child,
    .services .achievement-image .services-map-svg {
        width: 100%;
        height: auto;
        margin-bottom: 0;
    }
}

/* ========== エディトリアルサポート導線 ========== */
.publisher-collab {
    padding-top: 48px;
    padding-bottom: 128px;
}

.publisher-collab-card {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 56px 64px 60px;
    background: var(--white);
    border: 1px dashed rgba(26, 26, 26, 0.35);
}

.publisher-collab-spine {
    position: absolute;
    top: 50%;
    z-index: 2;
    margin: 0;
    padding: 18px 6px;
    background: var(--white);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    line-height: 1;
    color: #1a1a1a;
    white-space: nowrap;
    pointer-events: none;
}

.publisher-collab-spine--left {
    left: 0;
    transform: translate(-50%, -50%);
}

.publisher-collab-spine--right {
    right: 0;
    transform: translate(50%, -50%);
}

.publisher-collab-badge {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 14px;
    background: #1a1a1a;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.4;
}

.publisher-collab-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.75fr);
    align-items: center;
    gap: 32px;
}

.publisher-collab h2 {
    text-align: left;
    margin-bottom: 24px;
}

.publisher-collab-lead {
    margin: 0 0 32px;
    font-size: 18px;
    line-height: 2;
    letter-spacing: 0.05em;
}

.publisher-collab-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 12px 20px 12px 22px;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
    transition: background 0.25s ease, color 0.25s ease;
}

.publisher-collab-link__arrow {
    display: block;
    width: 32px;
    height: 1px;
    background: currentColor;
    position: relative;
    transition: transform 0.25s ease;
}

.publisher-collab-link__arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-top: 1px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}

.publisher-collab-link:hover,
.publisher-collab-link:focus-visible {
    background: #1a1a1a;
    color: #fff;
}

.publisher-collab-link:hover .publisher-collab-link__arrow,
.publisher-collab-link:focus-visible .publisher-collab-link__arrow {
    transform: translateX(4px);
}

.publisher-collab-visual {
    margin: 0;
}

.publisher-collab-visual img {
    display: block;
    width: 100%;
    height: auto;
    filter: url(#publisher-collab-ink);
}

.publisher-collab-svgfilter {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .publisher-collab-card {
        padding: 44px 48px 48px;
    }
}

@media (max-width: 768px) {
    .publisher-collab {
        padding-top: 24px;
        padding-bottom: 72px;
    }

    .publisher-collab-card {
        padding: 32px 28px 36px;
    }

    .publisher-collab-spine {
        font-size: 10px;
        letter-spacing: 0.22em;
        padding: 12px 4px;
    }

    .publisher-collab-badge {
        font-size: 11px;
        letter-spacing: 0.12em;
    }

    .publisher-collab-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .publisher-collab h2 {
        margin-bottom: 16px;
    }

    .publisher-collab-lead {
        font-size: 16px;
        margin-bottom: 24px;
    }
}

/* ========== 制作の流れ ========== */
.flow {
    position: relative;
    overflow: hidden;
}
.flow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 160px;
    width: 100%;
    height: 100%;
    background: #f3f7ff;
    z-index: -1;
    border-top-left-radius: 200px;
    border-bottom-left-radius: 200px;
}
.flow::before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: calc(35% - 280px); 
    transform: translateY(-50%);
    width: 350px;
    height: 350px;
    background: url('../img/flow_navigator.png') no-repeat;
    background-size: contain;
    z-index: 0;
    transition: opacity 0.2s ease;
}

.flow.navigator-change::before {
    background: url('../img/flow_navigator2.png') no-repeat;
    background-size: contain;
}
@media (max-width: 1024px) {
    .flow::before,
    .flow.navigator-change::before {
        display: none;
    }
}

.flow-steps {
    display: flex;
    gap: 20px;
    position: relative;
    padding: 0px 20px 40px 20px;
    min-height: 300px;
    width: 980px;
    margin: 0 0 0 35%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 1;
}

.flow-steps::-webkit-scrollbar {
    display: none;
}

.flow-step {
    flex: 0 0 300px;
    padding: 30px 20px 20px 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    position: relative;
    scroll-snap-align: start;
    z-index: 1;
    transition: all 0.4s ease;
    transform-origin: center;
}

.step-header {
    position: relative;
    padding-top: 30px;
    text-align: center;
    margin: 10px 0 10px;
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-weight: bold;
}

.flow-step p {
    margin: 0;
    padding: 10px;
    line-height: 1.8;
}

.flow-step p + p {
    margin-top: 10px;
}

.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(180, 167, 214, 0.15);
}
@media (min-width: 769px) {
    .flow-step.active {
        transform: scale(1.08);
    }
}
@media (max-width: 768px) {
    .flow-step.active {
        transform: scale(1.02);
    }
}
.flow-step:not(.active) {
    transform: scale(0.95);
}
.flow-step.active .step-number {
    background: var(--primary-blue);
    transform: translateX(-50%) scale(1.15);
    transition: all 0.4s ease;
}
.flow-carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 10px auto 40px;
    max-width: 400px;
    padding: 0 20px;
    position: relative;
}

.carousel-dot {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.carousel-dot:hover {
    background: #bdbdbd;
}

.carousel-dot.active {
    background: var(--primary-blue);
    height: 8px;
}
.contact-button-container.active .contact-btn {
    transform: scale(1.08);
}

.contact-button-container:not(.active) .contact-btn {
    opacity: 0.7;
    transform: scale(0.95);
}
.contact-button-container {
    flex: 0 0 300px;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

.return-icon {
    width: 40px;
    height: 40px;
    margin-left: 60px;
    align-self: flex-start;
}

@media (max-width: 1024px) {
    .flow {
        padding: 40px 20px;
    }

    .flow::after {
        border-radius: 0;
        left: 0;
    }
    
    .flow-step:first-child::after {
        display: none;
    }

    .flow h2 {
        font-size: clamp(24px, 5vw, 38px);
        line-height: 1.6;
        margin-bottom: 30px;
    }

    .flow-steps {
        width: 100%;
        padding: 0 calc(50% - 140px);
        margin: 26px 0;
        scroll-snap-type: x mandatory;
        display: flex;
        overflow-x: auto;
        padding-bottom: 20px;
    }
    
    .flow-step {
        flex: 0 0 240px;
        scroll-snap-align: center;
        margin-bottom: 10px;
    }

    .step-header {
        margin-bottom: 15px;
        gap: 10px;
    }

    .step-number {
        font-size: 18px;
        width: 30px;
        height: 30px;
        line-height: 30px;
    }

    .step-icon {
        width: 150px;
        height: auto;
        margin: 0 10px;
    }

    .step-header h4 {
        font-size: 18px;
    }

    .flow-step p {
        font-size: 15px;
        line-height: 1.8;
        padding: 0 10px;
    }

    .flow-carousel-nav {
        margin-top: 20px;
        max-width: 320px;
        margin: 0 auto 30px;
        gap: 8px;
    }

    .carousel-dot {
        width: 10px;
        height: 4px;
        margin: 0 5px;
        border-radius: 2px;
    }

    .carousel-dot.active {
        height: 4px;
    }

    .contact-button-container .return-icon {
        display: none;
    }
}

/* ========== FAQ ========== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

details[open] {
    margin-bottom: 20px;
}

summary {
    position: relative;
    cursor: pointer;
    padding: 10px 40px;
    font-weight: bold;
    list-style: none;
    display: flex;
    align-items: center;
    letter-spacing: 0.05em;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: 'Q';
    position: absolute;
    left: 0;
    width: 30px;
    height: 30px;
    background: #ff6b6b;
    color: var(--white);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

summary::after {
    content: '▶';
    position: absolute;
    right: 0;
    color: #ff6b6b;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(90deg);
}

details p {
    position: relative;
    margin-top: 15px;
    padding: 15px 0 0 40px;
    border-top: 1px solid #eee;
    letter-spacing: 0.05em;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 0;
}

details p::before {
    content: 'A';
    position: absolute;
    left: 0;
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    color: var(--white);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .faq-list {
        padding: 0 15px;
    }
    
    details {
        padding: 15px;
    }
    
    summary {
        padding: 8px 35px;
        font-size: 15px;
        line-height: 1.5;
    }
    
    summary::before {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    
    details p::before {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    
    details p {
        padding: 12px 0 0 35px;
        font-size: 14px;
    }
}

/* ========== お問い合わせ ========== */
.contact-section {
    background: #f5f5f5;
    padding: 60px 20px 120px;
    margin-bottom: -80px;
}

.contact-intro {
    position: relative;
    text-align: center;
    padding: 40px 0;
    width: 100%;
}

.contact-intro-image {
    max-width: 200px;
    height: auto;
    margin-bottom: 16px;
}

.contact-form {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #969696;
    box-shadow: 0 0 2px rgba(13, 111, 184, 0.2);
}

.form-row {
    margin-bottom: 20px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-row textarea {
    min-height: 150px;
    padding: 15px;
    resize: vertical;
}

.privacy-check {
    text-align: center;
    margin: 10px 0px 30px 0px;
}

.privacy-check label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    pointer-events: none;
}

.privacy-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--secondary-color);
    pointer-events: auto;
}

#privacy-policy-link {
    color: var(--secondary-color);
    text-decoration: underline;
}

#privacy-policy-link:hover {
    opacity: 0.7;
}

.privacy-check span {
    font-size: 14px;
}

.privacy-check .checkbox-text {
    pointer-events: auto;
}

.privacy-check a {
    pointer-events: auto;
}

.submit-btn {
    display: block;
    width: 200px;
    margin: 0 auto;
    padding: 15px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.submit-btn:hover {
    opacity: 0.8;
}

.contact-btn {
    display: inline-block;
    padding: 20px 40px;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 18px;
    border: 2px solid var(--primary-blue);
}

.contact-btn:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.contact-intro p {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
    line-height: 2;
}

.button-center {
    text-align: center;
    margin-top: 40px;
}

.contact-form::after {
    content: '';
    position: absolute;
    top: 70%;
    right: -200px;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    background: url('../img/send.png') no-repeat center/contain;
}

@media (max-width: 1024px) {
    .contact-form::after,
    .contact-button-container {
        display: none;
    }
}

/* ========== フッター ========== */
.footer {
    position: relative;
    background: var(--secondary-color);
    padding-top: 200px;
    color: var(--white);
    padding: 60px 0 0;
    margin-top: 80px;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    gap: 80px;
}

.footer-left {
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    width: 200px;
    height: auto;
}

.footer-address,
.footer-address p,
.footer-links a,
.footer-links span {
    color: var(--white);
}

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

.footer-links a {
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links span {
    font-size: 12px;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-copyright {
    background: var(--secondary-color);
    padding: 15px 0;
    border-top: 1px solid #5b5b5b;
}

.footer-copyright p {
    text-align: center;
    font-size: 12px;
    color: var(--white);
    margin: 0;
    letter-spacing: 0.02em;
}

.logo a, 
.footer-logo a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover,
.footer-logo a:hover {
    opacity: 0.8;
}

/* ========== ユーティリティ（アニメーション・レスポンシブ） ========== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    section {
        padding: 40px 20px;
    }

    .more-btn, .contact-btn, .submit-btn, .header-contact-btn {
        padding: 6px 15px;
        font-size: 13px;
    }

    .more-btn {
        width: 80%;
    }

    .work-image img {
        width: auto;
        max-width: 80%;
        max-height: 360px;
        height: auto;
        object-fit: contain;
        margin-top: 12px;
        margin-bottom: 8px;
    }

    .achievement {
        margin-top: -20px;
        padding: 50px 15px;
    }

    .flow-step:first-child::after {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
    }

}

/* ========== ページトップ ========== */
.page-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 15px;
    text-decoration: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
}

.page-top .arrow,
.page-top .text {
    width: 100%;
    text-align: center;
}

.page-top .arrow {
    font-size: 20px;
    line-height: 1;
    margin-bottom: 2px;
}

.page-top .text {
    font-size: 10px;
    line-height: 1;
}

.page-top:hover {
    background: #0a57a1;
    transform: translateY(-5px);
}

.page-top.is-visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .page-top {
        right: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
        padding: 12px;
    }
    
    .page-top .arrow {
        font-size: 18px;
    }
    
    .page-top .text {
        font-size: 8px;
    }
}

/* ========== モーダル（個人情報） ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1001;
    opacity: 0;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.modal.show {
    display: block;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: var(--white);
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 700px;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

.modal-body {
    line-height: 1.8;
    max-height: 50vh;
    overflow-y: auto;
    padding: 0 20px;
}

.modal-body p {
    margin-bottom: 16px;
}

.modal-body ol {
    list-style-type: decimal;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 20px;
    padding-left: 10px;
    font-size: 16px;
}

.modal-body strong {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
    color: #212121;
}

.modal h3 {
    margin-bottom: 30px;
    font-size: 22px;
    text-align: center;
    color: var(--secondary-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-blue);
}

@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        padding: 20px;
        width: 90%;
        max-width: 400px;
        max-height: 80vh;
    }

    .modal h3 {
        font-size: 18px;
        margin-bottom: 20px;
        padding-bottom: 8px;
    }

    .modal-body {
        font-size: 14px;
        line-height: 1.8;
        max-height: 60vh;
        padding: 0 15px;
    }

    .modal-body strong {
        display: block;
        margin-bottom: 8px;
        font-size: 15px;
        color: #212121;
    }

    .modal-body li {
        margin-bottom: 16px;
        padding-left: 5px;
        font-size: 14px;
        line-height: 1.6;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 20px 80px;
    }

    .contact-intro {
        padding: 20px 0;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .form-row {
        margin-bottom: 15px;
    }

    .form-row input,
    .form-row textarea {
        padding: 10px;
        font-size: 16px;
    }

    .form-row textarea {
        min-height: 120px;
    }

    .privacy-check {
        margin: 8px 0px 25px;
    }

    .privacy-check span {
        font-size: 13px;
    }

    .submit-btn {
        width: 180px;
        padding: 12px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .contact-btn {
        padding: 12px 25px;
        font-size: 14px;
        min-width: 180px;
    }

    .features-message .contact-btn {
        padding: 12px 25px;
        font-size: 14px;
        min-width: 180px;
    }

    .contact-button-container .contact-btn {
        padding: 15px 30px;
        font-size: 15px;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .contact-intro {
        padding: 20px 0;
    }

    .contact-intro p {
        font-size: 16px;
        line-height: 1.8;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .achievement h2 {
        font-size: clamp(24px, 5vw, 38px);
        line-height: 1.6;
        margin-bottom: 30px;
        margin-top: 0;
        position: relative;
        z-index: 1;
        padding: 10px 20px;
        transform: translateY(-20px);
    }

    .achievement h2::before {
        content: '';
        position: absolute;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 0;
        height: 0;
        border-left: 200px solid transparent;
        border-right: 200px solid transparent;
        border-top: 140px solid #f3f7ff;
        z-index: -1;
    }

    .achievement-image {
        margin: 24px auto;
        width: 100%;
    }

    .features-message {
        margin: 20px auto;
        padding: 0 10px;
    }

    .features-message h3 {
        font-size: 24px;
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .features-message p {
        font-size: 16px;
        line-height: 1.8;
        text-align: left;
    }

    .achievement-image img,
    .achievement-image .services-map-svg {
        width: 100%;
        height: auto;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .works-card {
        min-width: initial;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .works-card h3 {
        align-self: flex-start;
        min-height: 28px;
    }

    .works-card p {
        font-size: 14px;
    }

    .works-card .more-btn {
        margin: 0 auto;
        display: block;
        width: 80%;
    }
}

@media (max-width: 768px) {
    .achievement-img {
        content: url('../img/features_sp.png'); 
    }
}

.company-name {
    font-size: 20px;
    font-weight: 500;
    margin: 15px 0;
}

@media (min-width: 769px) {
    .footer-content {
        position: relative;
        max-width: 900px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .footer-left {
        max-width: 450px;
    }

    .footer-links {
        position: absolute;
        right: 20px;
        top: 60px;
        width: 330px;
        margin: 0;
    }
}

/* ========== ビューアーモーダル ========== */
.viewer-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(66, 66, 66, 0);
    transition: background-color 0.5s ease;
}

.viewer-modal.show {
    background-color: rgba(66, 66, 66, 0.8);
}
.viewer-modal-content {
    position: relative;
    width: 65%;
    height: 85%;
    margin: 5% auto;
    opacity: 0;
    transition: opacity 0.7s ease; 
    border-radius: 8px;
}

@media (max-width: 768px) {
    .viewer-modal-content {
        width: 90%;
        height: 70%;
        margin: 30% auto;
    }
}

.viewer-modal-content[data-size="web"] {
    width: 92%;
    height: 90%;
    padding: 30px 8vw 60px;
    position: relative;
}

@media (max-width: 768px) {
    .viewer-modal-content[data-size="web"] {
        width: 100%;
        padding: 0px 5vw 100px;
        position: relative;
    }
}

.viewer-modal.show .viewer-modal-content {
    opacity: 1;
}
.viewer-modal-content iframe {
    border-radius: 8px;
    width: 100%;
    height: 100%;
}

.close-viewer {
    position: absolute;
    right: 15px;
    top: -0px;
    color: #ccc;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .close-viewer {
        font-size: 26px;
        right: 12px;
        top: -0px;
        }
}

.viewer-modal-content[data-size="web"] .close-viewer {
    position: absolute;
    right: 6%;
    top: -10px;
}

@media (max-width: 768px) {
    .viewer-modal-content[data-size="web"] .close-viewer {
        position: absolute;
        right: 4%;
        top: -40px;
    }
}

.viewer-modal.show .close-viewer {
    opacity: 1;
}

.close-viewer:hover {
    color: #ccc;
}

