/* =====================================================
   カラーパレット
===================================================== */
:root {
    --white      : #ffffff;
    --bg-light   : #f4f7fb; /* セクション背景 */
    --bg-card    : #eaf1f8; /* カード背景 */
    --navy       : #1a2f4a; /* メインテキスト・濃紺 */
    --blue       : #2e6da4; /* アクセントブルー */
    --blue-light : #5fa8d3; /* ライトブルー */
    --text-muted : #5a7388; /* サブテキスト（AA確保のため一段濃く） */
    --border     : #d4e3ef;
    --accent-warm: #d94f4f; /* 限定価格などの差し色（トーンを壊さない朱） */
}

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

a {
    text-decoration: none;
}

html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--navy);
}

.big-container {
    display: grid;
    grid-template-columns:
        [full-start] minmax(1rem, 1fr)
        [content-start] min(1180px, 100% - 2rem)
        [content-end] minmax(1rem, 1fr)
        [full-end];
}

.container {
    grid-column: content;
}

/* =====================================================
   Header
===================================================== */
header {
    background-color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.06em;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 20px;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--navy);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.header-container nav ul li a {
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

/* =====================================================
   Main
===================================================== */
main {
    margin-top: 80px;
}

.main-container {
    display: contents;
    grid-template-columns: subgrid;
}

/* =====================================================
   Section Title
===================================================== */
.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--blue);
    grid-column: content;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.section-title::before,
.section-title::after {
    content: "";
    display: inline-block;
    width: 32px;
    height: 1px;
    background-color: #b0cbde;
    vertical-align: middle;
    margin: 0 12px;
}

/* =====================================================
   Marquee
===================================================== */
.marquee-wrap {
    grid-column: full;
    overflow: hidden;
    background-color: var(--navy);
    padding: 13px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 28s linear infinite;
}

.marquee-wrap--reverse .marquee-track {
    animation-direction: reverse;
}

.marquee-content {
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    padding-right: 0;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =====================================================
   Section Title Char Animation
===================================================== */
.section-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: calc(var(--i) * 0.05s);
}

.section-title.title-in-view .char {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   Page Load Reveal
===================================================== */
#page-loader {
    position: fixed;
    inset: 0;
    background-color: var(--navy);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(0);
    transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

#page-loader.slide-out {
    transform: translateY(-100%);
}

#loader-logo {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: 0.12em;
    opacity: 0;
    animation: loader-logo-in 0.6s ease forwards 0.2s;
}

@keyframes loader-logo-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   Scroll animation
===================================================== */
.movable {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.movable.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   ABOUT
===================================================== */
.about {
    padding: 80px 0 0;
    grid-column: full;
    display: grid;
    grid-template-columns: subgrid;
}

.about > .hero-wrapper {
    background-color: var(--bg-light);
    display: grid;
    grid-column: full;
    grid-template-columns: subgrid;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.hero-wrapper > .hero-container {
    padding: 60px 0;
    display: flex;
    flex-wrap: wrap;
    grid-column: content;
    justify-content: space-between;
    gap: 24px;
}

.main-img {
    height: 480px;
    width: 48%;
}

.main-img-object {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: relative;
}

.main-img-info {
    position: absolute;
    bottom: 28px;
    left: 28px;
    color: var(--white);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

.main-img-info p:first-child {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
}

.main-img-info p:not(:first-child) {
    display: none;
}

.main-img-info::after {
    content: "Web制作 / 横浜 / 経営学部生";
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.12em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.main-message {
    height: 480px;
    width: 48%;
    padding: 48px;
    background-color: var(--white);
    font-family: 'Noto Sans JP', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    border: 1px solid var(--border);
}

.main-message-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.6;
    min-height: 1.6em;
}

.main-message-title br {
    display: none;
}

.main-message-title::before {
    content: "";
    width: 3px;
    height: 26px;
    background-color: var(--blue);
    margin-right: 22px;
    flex-shrink: 0;
}

.main-message-sub {
    width: 100%;
    font-size: 17px;
    font-weight: 400;
    color: #3d5a73;
    line-height: 2;
}

.marker {
    color: var(--blue);
    font-weight: 700;
    background: none;
}

.main-card {
    position: relative;
}

.main-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    z-index: 10;
}

/* =====================================================
   WORKS
===================================================== */
.works {
    padding: 80px 0 60px;
    grid-column: content;
    border-bottom: 1px solid var(--border);
}

/* =====================================================
   WORKS carousel
===================================================== */
.works-carousel-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.works-carousel-container::-webkit-scrollbar {
    display: none;
}

.works-list {
    display: flex;
    gap: 24px;
    padding: 10px 4px 20px;
    list-style: none;
    align-items: stretch;
}

.work-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
}

/* card */
.work-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(26, 47, 74, 0.07);
    transition: box-shadow 0.3s ease;
}

.work-card:hover {
    box-shadow: 0 8px 32px rgba(46, 109, 164, 0.14);
}

.work-card-preview {
    background-color: var(--bg-card);
    padding: 36px 40px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.work-card-preview--empty {
    background-color: #f0f3f7;
}

.work-card-info {
    padding: 24px 32px 28px;
    border-top: 1px solid var(--border);
    text-align: left;
}

.work-card--coming .work-card-info {
    text-align: center;
}

/* device mockup */
.work-devices {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.device-desktop {
    width: 68%;
    border-radius: 8px 8px 4px 4px;
    border: 2px solid #c8d8e8;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(26, 47, 74, 0.1);
    background: var(--bg-light);
}

.device-desktop--empty .device-desktop-screen {
    aspect-ratio: 16 / 9;
    background: #e0eaf3;
}

.device-desktop-bar {
    height: 22px;
    background-color: #e4edf5;
    display: flex;
    align-items: center;
    padding-left: 10px;
    gap: 5px;
    border-bottom: 1px solid #c8d8e8;
}

.device-desktop-bar span {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #c8d8e8;
}

.device-desktop-screen img {
    width: 100%;
    height: auto;
    display: block;
}

.device-mobile {
    width: 18%;
    border-radius: 16px;
    border: 2px solid #c8d8e8;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(26, 47, 74, 0.1);
    background: var(--bg-light);
    position: relative;
    padding-top: 18px;
}

.device-mobile--empty .device-mobile-screen {
    aspect-ratio: 9 / 16;
    background: #e0eaf3;
}

.device-mobile-notch {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 6px;
    background-color: #c8d8e8;
    border-radius: 3px;
}

.device-mobile-screen img {
    width: 100%;
    height: auto;
    display: block;
}

/* work info */
.work-title {
    display: inline-block;
    margin-bottom: 8px;
}

.work-title-link {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    transition: color 0.25s ease;
}

.work-title-link:hover {
    color: var(--blue);
}

.work-title-link--coming {
    color: var(--text-muted);
    cursor: default;
}

.work-desc {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* =====================================================
   SERVICES
===================================================== */
.services {
    padding: 80px 0 60px;
    grid-column: content;
    border-bottom: 1px solid var(--border);
    background-color: var(--white);
}

.services-lead {
    margin-bottom: 48px;
    text-align: center;
}

.services-lead-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    color: #3d5a73;
    line-height: 1.9;
    margin-bottom: 32px;
}

.services-lead-text strong {
    color: var(--navy);
    font-weight: 700;
}

.services-meta {
    display: flex;
    justify-content: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    max-width: 640px;
    margin: 0 auto;
}

.services-meta-item {
    flex: 1;
    padding: 16px 20px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.services-meta-item:last-child {
    border-right: none;
}

.services-meta-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.services-meta-value {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
}
.price-limited {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-warm);
    line-height: 1.6;
}
.price-regular {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #8a9bb0;
    text-decoration: line-through;
    margin-top: 2px;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.service-content-wrapper {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-top: 2px solid var(--blue);
    width: calc(50% - 12px);
    border-radius: 4px;
    font-family: 'Noto Sans JP', sans-serif;
    text-align: left;
    padding: 32px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-content-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(46, 109, 164, 0.12);
}

.service-icon {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.service-title {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.04em;
}

.service-desc {
    line-height: 1.9;
    font-size: 13px;
    color: var(--text-muted);
}

/* =====================================================
   CONTACT
===================================================== */
.contact {
    padding: 80px 0;
    grid-column: content;
}

.contact-container {
    display: flex;
    flex-direction: column;
    margin: 0 160px;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label, .sns-area p {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    color: #3d5a73;
    letter-spacing: 0.04em;
}

input,
textarea {
    width: 100%;
    border: 1px solid #c8dcea;
    border-radius: 4px;
    padding: 13px 16px;
    background-color: #f8fafd;
    color: var(--navy);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(46, 109, 164, 0.1);
    background-color: var(--white);
}

textarea {
    height: 160px;
    max-height: 190px;
    resize: vertical;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.sns-icons {
    margin-left: 4px;
    margin-top: 8px;
    display: flex;
    gap: 14px;
}

.sns-icons img {
    width: 28px;
    height: 28px;
    opacity: 0.45;
    transition: opacity 0.25s ease;
    filter: none;
}

.sns-icons img:hover {
    opacity: 0.85;
}

.submit-button {
    background-color: var(--blue);
    color: var(--white);
    border: none;
    padding: 11px 44px;
    border-radius: 4px;
    font-size: 13px;
    letter-spacing: 0.08em;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.submit-button:hover {
    background-color: #1a5a8f;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(46, 109, 164, 0.3);
}

/* =====================================================
   Footer
===================================================== */
footer {
    background-color: var(--navy);
    width: 100%;
}

.footer-container {
    display: flex;
    padding: 40px 0;
}

.footer-left {
    width: 30%;
}

.footer-logo {
    margin: 0 0 8px;
    color: var(--white);
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.06em;
}

.footer-left p {
    font-weight: 400;
    color: #5a7a99;
    font-size: 12px;
}

.footer-main {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-main nav ul li a {
    font-family: 'Inter', sans-serif;
    color: #5a7a99;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
    padding-bottom: 2px;
}

.footer-main nav ul li a:hover {
    color: var(--white);
    border-color: var(--blue-light);
}

.footer-right {
    width: 30%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.footer-right img {
    filter: brightness(0) invert(1);
    opacity: 0.35;
    width: 20px;
    height: 20px;
    transition: opacity 0.25s ease;
}

.footer-right img:hover {
    opacity: 0.8;
}

/* =====================================================
   CTA ボタン
===================================================== */
.cta-button {
    display: inline-block;
    margin: 36px auto 0;
    padding: 16px 36px;
    background-color: var(--blue);
    color: var(--white);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(46, 109, 164, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.cta-button:hover {
    background-color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(26, 47, 74, 0.32);
}

/* ヘッダー固定CTA */
.nav-cta {
    display: inline-block;
    padding: 8px 18px !important;
    background-color: var(--blue);
    color: var(--white) !important;
    border-radius: 999px;
    border-bottom: none !important;
    text-transform: none !important;
    font-weight: 700;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.nav-cta:hover {
    background-color: var(--navy);
    transform: translateY(-1px);
}

/* =====================================================
   Honeypot（bot対策・人間には非表示）
===================================================== */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =====================================================
   アニメーション抑制設定への配慮
===================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .movable {
        opacity: 1 !important;
        transform: none !important;
    }
    .section-title .char {
        opacity: 1 !important;
        transform: none !important;
    }
}
