@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ==============================
 * 基本設定 & カラーパレット
 * ============================== */
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333333; /* ダークグレー */
    background-color: #FFFFFF; /* ホワイト */
    line-height: 1.8;
}

.pc-only { display: block; }
.sp-only { display: none; }

@media screen and (max-width: 768px) {
    .pc-only { display: none; }
    .sp-only { display: block; }
}


/* ==============================
 * トップセクション
 * ============================== */
.top {
    position: relative;
    height: 80vh; /* 画面の高さの80% */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.top picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.top__mv {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ロゴを見やすくするためのオーバーレイ */
.top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255 255 255 / 20%);
    z-index: -1;
}

.top__logo-corner {
    position: absolute;
    top: 50px;
    left: 40px;
    width: 75px;
    height: auto;
    z-index: 1;
}

.top__logo-center {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 85%;
    height: auto;
    transform: translateY(20px);
}


/* トップセクションのレスポンシブ対応 */
@media screen and (max-width: 768px) {
    .top {
        min-height: 500px;
        height: 60vh;
    }
    .top__logo-corner {
        top: 30px;
        left: 20px;
        width: 50px;
    }
    .top__logo-center {
        width: 90%;
        max-width: 500px;
    }
}


/* ==============================
 * 共通セクションスタイル
 * ============================== */
.c-section {
    padding: 80px 20px;
}

.c-section--no-padding {
    padding: 0;
}

.c-section__inner {
    max-width: 1000px;
    margin: 0 auto;
}

.bg-cream {
    background-color: #F0F2F5; /* ライトグレー */
}

.c-section__title {
    text-align: center;
    margin-bottom: 50px;
}

.c-section__title-main {
    font-size: 2rem;
    font-weight: 500;
    display: block;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.c-section__title-sub {
    font-size: 1rem;
    color: #555;
    display: block;
}

/* ==============================
 * What's Carbowrite?
 * ============================== */
.about__description {
    text-align: center;
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto 60px;
}

.icon-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.icon-feature__image-container {
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.icon-feature__image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-feature__title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 10px;
}

.icon-feature__text {
    font-size: 0.9rem;
}


/* ==============================
 * Technology
 * ============================== */
.feature-block {
    display: flex;
    align-items: center;
    gap: 40px;
}

.feature-block--reverse {
    flex-direction: row-reverse;
}

.feature-block__text {
    flex: 1;
}
.feature-block__text p, .feature-block__text li {
    margin-bottom: 1em;
}

.feature-block__image {
    flex: 0 0 40%;
    max-width: 400px;
}
.feature-block__image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ==============================
 * Writing Experience
 * ============================== */
.quote-block {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #F0F2F5;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 50px;
}
.quote-block__image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}
.quote-block__text blockquote {
    margin: 0;
    font-size: 1.1rem;
    font-style: italic;
    border-left: 3px solid #2C3E50;
    padding-left: 20px;
}
.quote-block__text cite {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-weight: bold;
}

.writing-experience__description {
    text-align: center;
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto 50px;
}

.writing-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.writing-feature img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.writing-feature h4 {
    font-size: 1.2rem;
    font-weight: 500;
}

/* ==============================
 * 製品情報
 * ============================== */
.product-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-card {
    background-color: #FFFFFF;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.info-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.info-card__content {
    padding: 25px 30px;
}

.info-card h3 {
    margin-top: 0;
    border-bottom: 2px solid #2C3E50;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 1.4rem;
}

.info-card__detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.info-card__detail:last-child {
    margin-bottom: 0;
}

.info-card__icon {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #2C3E50;
}

.info-card__detail p {
    margin: 0;
    line-height: 1.6;
}

/* ==============================
 * 開発ストーリーリンク
 * ============================== */
.dev-story-link {
    display: flex;
    background-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s, transform 0.3s;
    border: 1px solid #E0E4E8;
}

.dev-story-link:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.dev-story-link__image {
    flex: 0 0 40%;
}

.dev-story-link__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dev-story-link__text {
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.dev-story-link__text h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: 500;
}

.dev-story-link__text p {
    margin: 0 0 20px 0;
    font-size: 1rem;
    flex-grow: 1;
}

.c-button--small {
    padding: 10px 25px;
    font-size: 0.9rem;
    align-self: flex-start;
}

/* ==============================
 * 全幅イメージ
 * ============================== */
.full-width-image {
    height: 50vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* パララックス効果 */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}
.full-width-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
}
.full-width-image__text {
    position: relative;
    z-index: 1;
    font-size: 1.8rem;
    font-weight: 500;
    max-width: 80%;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}


/* ==============================
 * イメージギャラリー
 * ============================== */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ==============================
 * その他の脱炭素に貢献する紙
 * ============================== */
.paper-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}
.paper-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #FFFFFF;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.paper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.paper-card__image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.paper-card__content {
    padding: 25px 30px;
}
.paper-card__title {
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0 0 10px 0;
}
.paper-card__description {
    font-size: 0.9rem;
    line-height: 1.7;
}


/* ==============================
 * トピックス (このページ専用)
 * ============================== */
.bottom-topics {
    background-color: #F0F2F5;
    padding: 80px 20px;
}
.page-color {
    color: #2C3E50; /* チャコールグレー */
}


/* ==============================
 * お問い合わせ
 * ============================== */
.contact-area {
    text-align: center;
}

.c-button {
    display: inline-block;
    background-color: #2C3E50; /* チャコールグレー */
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 30px;
    transition: background-color 0.3s, transform 0.3s;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.2);
}

.c-button:hover {
    background-color: #1a2531;
    transform: translateY(-2px);
}

/* ==============================
 * フッター
 * ============================== */
.footer_wrap,
footer {
    background-color: #333333; /* ダークグレー */
    color: #FFFFFF;
}

.footer_wrap a,
footer a,
.footer_wrap .copyright,
footer .copyright {
    color: #FFFFFF !important; /* テキストとリンクの色を白に上書き */
}

/* ==============================
 * レスポンシブ対応
 * ============================== */
@media screen and (max-width: 768px) {

    .feature-block, .feature-block--reverse {
        flex-direction: column;
    }

    .feature-block__image {
        margin-top: 30px;
        order: -1;
    }
    
    .product-info-grid,
    .paper-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .icon-feature-grid, .writing-feature-grid {
        grid-template-columns: 1fr;
    }

    .dev-story-link {
        flex-direction: column;
    }

    .dev-story-link__text {
        padding: 25px;
    }

    .dev-story-link__text h3 {
        font-size: 1.2rem;
    }
    
    .quote-block {
        flex-direction: column;
        text-align: center;
    }
    .quote-block__text blockquote {
        border: none;
        padding: 0;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }
}
