@charset "UTF-8";

/* ==========================================================================
   Base & Reset
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* ==========================================================================
   Common Components
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section {
    padding: 130px 0;
    position: relative;
}

.section-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-navy);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-navy), var(--color-gold));
    margin: 0px auto 0;
}

/* Buttons */
.btn,
.header-btn {
    display: inline-block;
    border: 1px solid var(--color-navy);
    background: transparent;
    color: var(--color-navy);
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn {
    padding: 16px 50px;
    letter-spacing: 0.1em;
}

.header-btn {
    padding: 10px 25px;
    font-size: 0.85rem;
    background-color: var(--color-navy);
    color: #ffffff;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--color-navy);
    transition: 0.4s;
    z-index: -1;
}

.btn:hover {
    color: #fff;
    border-color: var(--color-navy);
}

.btn:hover::before {
    width: 100%;
}

.header-btn:hover {
    background-color: #fff;
    color: var(--color-navy);
}

.arrow-link {
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    color: var(--color-navy);
    margin-top: auto;
}

.arrow-link::after {
    content: '→';
    margin-left: 10px;
    transition: transform 0.3s;
    color: var(--color-gold);
}

.arrow-link:hover {
    opacity: 0.7;
}

.arrow-link:hover::after {
    transform: translateX(6px);
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-lavender);
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.logo img {
    height: 80px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-item a {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

.nav-item a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-gold);
    transition: 0.3s;
}

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

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-navy);
    position: absolute;
    transition: all 0.3s;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

@media (max-width: 1100px) {
    .nav-list {
        gap: 15px;
    }

    .nav-item a {
        font-size: 0.85rem;
    }
}

@media (max-width: 960px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 40px;
    }

    .nav-item a {
        font-size: 1.1rem;
    }

    .hamburger {
        display: block;
    }
}


/* ==========================================================================
   Scroll Animation (Fade Up)
   ========================================================================== */

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;

}

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

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}


/* ==========================================================================
   Sub Page Hero
   ========================================================================== */
.sub-hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f4f6f9 100%);
    text-align: center;
}

.sub-hero-text {
    position: relative;
    z-index: 2;
}

.sub-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.sub-desc {
    font-size: 1rem;
    color: var(--color-gold);
    font-weight: 600;
    letter-spacing: 0.1em;
    display: inline-block;
    background: #fff;
    padding: 8px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.sub-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.geo-item {
    position: absolute;
    border: 1px solid rgba(46, 58, 89, 0.15);
    animation: floatGeo 10s infinite ease-in-out alternate;
}

@keyframes floatGeo {
    0% {
        transform: translateY(0) rotate(var(--r, 0deg));
    }

    100% {
        transform: translateY(-20px) rotate(calc(var(--r, 0deg) + 5deg));
    }
}

@media (max-width: 768px) {
    .sub-hero {
        padding: 120px 0 60px;
    }

    .sub-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .sub-desc {
        font-size: 0.9rem;
        padding: 6px 20px;
    }

    .geo-item {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

/* ==========================================================================
   Top Page Hero
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 50px;
    position: relative;
    z-index: 2;
    pointer-events: none;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 0 60px 40px rgba(255, 255, 255, 0.5);
}

.hero-content>* {
    pointer-events: auto;
}

.hero-title {
    font-size: 4.2rem;
    margin-bottom: 30px;
    line-height: 1.2;
    font-weight: 500;
    color: var(--color-navy);
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.text-gradient {
    background: linear-gradient(120deg, var(--color-navy) 0%, var(--color-lavender) 50%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: textShine 5s linear infinite alternate;
}

@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 50px;
    max-width: 600px;
    line-height: 2;
    font-weight: 500;
}

.hero-graphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

canvas {
    display: block;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-content {
        padding: 30px;
        box-shadow: 0 0 30px 20px rgba(255, 255, 255, 0.5);
    }
}

/* ==========================================================================
   Services Section (Top Page)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.services-grid > div, 
.services-grid > .fade-up {
    height: 100%;
}

.service-card {
    position: relative;
    background: #fff;
    padding: 40px;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    
    height: 100%;

    /* 【追加】リンク化に伴うリセットスタイル */
    text-decoration: none; /* 下線を消す */
    color: inherit;        /* 文字色を継承 */
    cursor: pointer;       /* 手のひらカーソル */
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(46, 58, 89, 0.1);
    border-color: transparent;
}

.service-card.web:hover {
    border-top: 3px solid var(--color-navy);
}

.service-card.reuse:hover {
    border-top: 3px solid var(--color-gold);
}

.service-card.pet:hover {
    border-top: 3px solid var(--color-lavender);
}

.service-img-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 25%;
    z-index: 0;
    -webkit-mask-image: linear-gradient(230deg, black 10%, transparent 80%);
    mask-image: linear-gradient(270deg, black 10%, transparent 80%);
    pointer-events: none;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.05);
    opacity: 1;
}

.service-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

.service-header {
    margin-bottom: 20px;
}

.service-num {
    font-size: 3.5rem;
    font-family: var(--font-serif);
    font-style: italic;
    color: #e6e9f0;
    line-height: 1;
    margin-bottom: 10px;
    transition: color 0.3s;
    position: relative;
    z-index: 2;
}

.service-card.web:hover .service-num {
    color: rgba(46, 58, 89, 0.3);
}

.service-card.reuse:hover .service-num {
    color: rgba(212, 180, 131, 0.4);
}

.service-card.pet:hover .service-num {
    color: rgba(186, 167, 204, 0.4);
}

.service-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 20px;
    max-width: 80%;
}

.service-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 20px;
    position: relative;
    max-width: 80%;
    
    min-height: 2.8em; 
    display: flex;     
    align-items: center; 
    line-height: 1.4;
}

.service-card .arrow-link { margin-top: auto; }

.service-card:hover .arrow-link::after {
    transform: translateX(6px);
}

@media (max-width: 768px) {
    .service-title {
        min-height: auto;
        font-size: 1.4rem;
    }
}

.service-card .arrow-link {
    margin-top: auto;
}

/* ==========================================================================
   News Section
   ========================================================================== */
.news-section {
    background-color: var(--color-bg-sub);
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid var(--color-border);
}

.news-item {
    border-bottom: 1px solid var(--color-border);
}

.news-link {
    display: flex;
    align-items: center;
    padding: 25px 10px;
    transition: 0.3s;
}

.news-link:hover {
    background-color: #fff;
    padding-left: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.news-date {
    font-size: 0.9rem;
    color: var(--color-gold);
    width: 130px;
    font-weight: bold;
    flex-shrink: 0;
}

.news-title {
    color: var(--color-navy);
    font-weight: 500;
}

/* ==========================================================================
   SDGs Section (ここを追加しました)
   ========================================================================== */
.sdgs-banner {
    text-align: center;
    margin-bottom: 60px;
}

.sdgs-banner img {
    max-width: 800px;
    width: 100%;
    height: auto;
}

.sdgs-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.sdgs-image {
    flex: 1;
    position: relative;
}

.sdgs-image img {
    width: 100%;
    height: auto;
    box-shadow: 20px 20px 0 var(--color-bg-sub);
}

.sdgs-image::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100px;
    height: 100px;
    border-top: 2px solid var(--color-gold);
    border-left: 2px solid var(--color-gold);
    z-index: 0;
}

.sdgs-text {
    flex: 1;
}

@media (max-width: 1024px) {
    .sdgs-content {
        flex-direction: column;
        gap: 50px;
    }

    .sdgs-image,
    .sdgs-text {
        flex: none;
        width: 100%;
    }

    .sdgs-image::after {
        display: none;
    }
}

/* ==========================================================================
   Message Page Specifics
   ========================================================================== */
.message-container {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.message-image {
    flex: 0 0 350px;
    position: relative;
}

.message-image img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 20px 20px 0 var(--color-bg-sub);
}

.message-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-gold);
    z-index: -1;
}

.message-body {
    flex: 1;
}

.message-heading {
    font-size: 1.8rem;
    margin-bottom: 40px;
    line-height: 1.5;
    color: var(--color-navy);
}

.message-text p {
    margin-bottom: 30px;
    text-align: justify;
}

.message-sign {
    margin-top: 60px;
    text-align: right;
    font-family: var(--font-serif);
}

.sign-company {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 5px;
}

.sign-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--color-navy);
}

/* レスポンシブ修正: 写真を下にする */
@media (max-width: 900px) {
    .message-container {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .message-image {
        flex: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .message-heading {
        font-size: 1.5rem;
    }

    .message-image::before {
        display: none;
    }
}

/* ==========================================================================
   Company Page Specifics
   ========================================================================== */
.company-info {
    border-top: 1px solid var(--color-border);
}

.info-row {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    padding: 30px 0;
}

.info-term {
    width: 250px;
    font-weight: 700;
    color: var(--color-navy);
    flex-shrink: 0;
    padding-right: 20px;
}

.info-desc {
    flex: 1;
    color: var(--color-text);
}

.note {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 10px;
    line-height: 1.6;
}

.note-link {
    color: var(--color-navy);
    text-decoration: underline;
}

.service-list {
    padding-left: 20px;
    list-style: disc;
}

.service-list li {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
        padding: 25px 0;
    }

    .info-term {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ==========================================================================
   Contact Page Specifics
   ========================================================================== */
.contact-lead {
    text-align: center;
    margin-bottom: 60px;
    font-size: 0.95rem;
}

.contact-note {
    background-color: var(--color-bg-sub);
    padding: 20px;
    display: inline-block;
    text-align: left;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.contact-form {
    border-top: 1px solid var(--color-border);
}

.form-row {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    padding: 30px 0;
    align-items: flex-start;
}

.form-label {
    width: 250px;
    flex-shrink: 0;
    padding-right: 20px;
    padding-top: 10px;
    font-weight: 700;
    color: var(--color-navy);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.7rem;
    border-radius: 2px;
    margin-left: 8px;
    vertical-align: middle;
}

.badge-required {
    background-color: var(--color-navy);
    color: #fff;
}

.badge-optional {
    background-color: var(--color-border);
    color: #666;
}

.form-input {
    flex: 1;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    background-color: #fff;
    border-radius: 2px;
    font-size: 1rem;
    color: var(--color-text);
    font-family: inherit;
    transition: all 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 2px rgba(46, 58, 89, 0.1);
}

textarea {
    height: 200px;
    resize: vertical;
}

.privacy-check {
    text-align: center;
    margin: 60px 0 40px;
}

.privacy-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.privacy-label input {
    margin-right: 10px;
    transform: scale(1.2);
}

.submit-area {
    text-align: center;
    margin-top: 20px;
}

.submit-btn {
    background-color: var(--color-navy);
    color: #fff;
    border: 1px solid var(--color-navy);
    padding: 18px 80px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.4s;
    border-radius: 2px;
}

.submit-btn:hover {
    background-color: #fff;
    color: var(--color-navy);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        padding: 25px 0;
    }

    .form-label {
        width: 100%;
        margin-bottom: 10px;
        padding-top: 0;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-navy);
    color: #fff;
    padding: 80px 0 30px;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 800;
    color: #fff;
}

.footer-logo span {
    color: var(--color-lavender);
}

.footer-address {
    font-size: 0.9rem;
    color: #aab2c0;
    line-height: 1.8;
}

.footer-nav ul {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    color: #fff;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--color-gold);
}

.copyright {
    text-align: center;
    font-size: 0.75rem;
    color: #7b869b;
}

@media (max-width: 768px) {
    .footer-nav ul {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==========================================================================
   Mobile Adjustments (Responsive)
   ========================================================================== */
@media (max-width: 768px) {

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-sub {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .sub-hero {
        padding: 100px 0 50px;
    }

    .sub-title {
        font-size: 2rem;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .container {
        padding: 0 25px;
    }
}