/* =====================================================
   カラーパレット
   --white      : #ffffff
   --bg-light   : #f4f7fb  セクション背景
   --bg-card    : #eaf1f8  カード背景
   --navy       : #1a2f4a  メインテキスト・濃紺
   --blue       : #2e6da4  アクセントブルー
   --blue-light : #5fa8d3  ライトブルー
   --text-muted : #6b8299  サブテキスト
   --border     : #d4e3ef
===================================================== */

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

a {
    text-decoration: none;
}

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

body {
    background-color: #ffffff;
    color: #1a2f4a;
}

.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 #d4e3ef;
    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: #1a2f4a;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.06em;
}

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

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1a2f4a;
    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: #6b8299;
    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: #2e6da4;
    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;
}

/* =====================================================
   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: #f4f7fb;
    display: grid;
    grid-column: full;
    grid-template-columns: subgrid;
    border-top: 1px solid #d4e3ef;
    border-bottom: 1px solid #d4e3ef;
}

.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: #ffffff;
    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: #ffffff;
    font-family: 'Noto Sans JP', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    border: 1px solid #d4e3ef;
}

.main-message-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    color: #1a2f4a;
    line-height: 1.6;
}

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

.main-message-title::before {
    content: "";
    width: 3px;
    height: 26px;
    background-color: #2e6da4;
    margin-right: 22px;
    flex-shrink: 0;
}

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

.marker {
    color: #2e6da4;
    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, #2e6da4, transparent);
    z-index: 10;
}

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

/* =====================================================
   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 #d4e3ef;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    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: #eaf1f8;
    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 #d4e3ef;
    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: #f4f7fb;
}

.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%;
    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: #f4f7fb;
    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%;
    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: #1a2f4a;
    transition: color 0.25s ease;
}

.work-title-link:hover {
    color: #2e6da4;
}

.work-title-link--coming {
    color: #6b8299;
    cursor: default;
}

.work-desc {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    color: #6b8299;
    line-height: 1.8;
}

/* =====================================================
   SERVICES
===================================================== */
.services {
    padding: 80px 0 60px;
    grid-column: content;
    border-bottom: 1px solid #d4e3ef;
    background-color: #ffffff;
}

.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: #1a2f4a;
    font-weight: 700;
}

.services-meta {
    display: flex;
    justify-content: center;
    gap: 0;
    border: 1px solid #d4e3ef;
    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 #d4e3ef;
}

.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: #2e6da4;
    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: #1a2f4a;
}

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

.service-content-wrapper {
    display: flex;
    flex-direction: column;
    background-color: #f4f7fb;
    border: 1px solid #d4e3ef;
    border-top: 2px solid #2e6da4;
    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: #2e6da4;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.service-title {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #1a2f4a;
    letter-spacing: 0.04em;
}

.service-desc {
    line-height: 1.9;
    font-size: 13px;
    color: #6b8299;
}

/* =====================================================
   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: #1a2f4a;
    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: #2e6da4;
    box-shadow: 0 0 0 3px rgba(46, 109, 164, 0.1);
    background-color: #ffffff;
}

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: #2e6da4;
    color: #ffffff;
    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: #1a2f4a;
    width: 100%;
}

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

.footer-left {
    width: 30%;
}

.footer-logo {
    margin: 0 0 8px;
    color: #ffffff;
    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: #ffffff;
    border-color: #5fa8d3;
}

.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;
}
