@charset "utf-8";

/* header */
header {
    width: min(100% - 40px, 1200px);
    margin: 0 auto;
    background-color: azure;
}
.header {
    width: 100%;
    max-width: none;
    margin: 0;
    background-color: #fffdf8;
}
.header nav{
    width: 100%;
    background-color: #fffdf8;
}

.header nav ul {
    display: flex;
    justify-content: center;
    gap: clamp(25px, 6vw, 80px);
    width: min(calc(100% - 40px), 1200px);
    margin: 0 auto;
    padding: 24px 20px;
    list-style: none;
}

/* heroエリア */
.hero {
    position: relative;
    display: flex;
    align-items: center;

    width: 100%;
    min-height: clamp(560px, 70vh, 720px);
    overflow: hidden;
}

/* 背景画像 */
.hero > img {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* 左側けで明るくする */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        90deg,
            rgba(255, 253, 248, 0.92) 0%,
            rgba(255, 253, 248, 0.82) 28%,
            rgba(255, 253, 248, 0.58) 45%,
            rgba(255, 253, 248, 0.18) 62%,
            rgba(255, 253, 248, 0) 76%,
        );
    pointer-events: none;    
}
/* 文字部分 */
.hero-text {
    position: relative;
    z-index: 2;

    width: min(90%, 1200px);
    margin: 0 auto;
    padding: 60px 0;

    color: #493b35;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    box-sizing: border-box;
}

/* 英語の小見出し */
.hero-label {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

/* メイン見出し */
.hero-text h1 {
    width: 100%;
    max-width: 900px;
    margin: 0 0 25px;

    color: #ffffff;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.02em;

    /* 明るい場所でも読めるようにする */
    text-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.75),
        0 5px 18px rgba(0, 0, 0, 0.4);
}

/* 1行ごとに表示 */
.hero-text h1 span {
    display: block;
    white-space: nowrap;
}

/* 説明文 */
.hero-description {
    width: min(48%, 560px);
    margin: 0 0 35px;
    padding: 12px 18px;
    
    color:  #493b35;
    background-color: rgba(255, 253, 248, 0.9);

    border-left: 4px solid #668269;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(73, 59, 53, 0.15);

    line-height: 2;
    box-sizing: border-box;
    backdrop-filter: blur(3px);
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    padding: 15px 28px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    background-color: #668269;
    border-radius: 30px;
    transition: background-color 0.3s, transform 0.3s;
}
.hero-button:hover {
    background-color: #d98242;
    transform: translateY(-3px);
}


/* ==================================
   ABOUT
================================== */
.about {
    width: 100%;
    padding: clamp(80px, 10vw, 140px) 25px;
    color: #493b35;
    background-color: #fffdf8;
    box-sizing: border-box;
    /* 固定ナビから移動したときの一調整 */
    scroll-margin-top: 80px;
}
.about-inner {
    width: min(100%, 1100px);
    margin: 0 auto;
}

/* ABOUT見出し */
.about-heading {
    max-width: 760px;
    margin: 0 auto 80px;
    text-align: center;
}
.section-label {
    margin: 0 0 12px;
    color: #d98242;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}
.about-heading h2 {
    margin: 0 0 24px;
    color: #493b35;
    font-size: clamp(2rem, 4vw,3rem);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.05em;
}
.about-lead {
    margin: 0;
    color: #5f554f;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 2;
}

/* 制作でたいせつにしていること */

.about-values {
    text-align: center;
}

.values-label {
    margin: 0 0 8px;
    color: #668269;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}
.values-title {
    margin: 0 0 45px;
    color: #493b35;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
}

/* ３つのカード */
.value-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 35px);
}

/* 各カード */
.value-card {
    position: relative;
    min-height: 300px;
    padding: 42px 32px 38px;

    text-align: left;
    background-color: #ffffff;
    border: 1px solid #e5ded8;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(73, 59, 53, 0.08);
    box-sizing: border-box;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
/* カード上部の線 */
.value-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 32px;

    width: 55px;
    height: 4px;

    background-color: #668269;
    border-radius: 0 0 4px 4px;
}
.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 38px rgba(73, 59, 53, 0.14);
}

/* 番号 */
.value-number {
    margin: 0 0 24px;
    color: #d98242;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

/* カード見出し */

.value-card h3 {
    margin: 0 0 18px;
    color: #493b35;
    font-size: clamp(1.35rem,2vw,1.6rem);
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* カード説明 */
.value-card > p:last-child {
    margin: 0;
    color: #5f554f;
    font-size: 0.95rem;
    line-height: 1.9;
}

/* ==================================
   SERVICE
================================== */
.service-content {
    width: 100%;
    padding: clamp(80px, 10vw, 140px) 25px;

    color: #493b35;
    background-color: #eef4ec;

    box-sizing: border-box;
    scroll-margin-top: 80px;
}
.service-inner {
    width: min(100%, 1180px);
    margin: 0 auto;
}

/* 見出し */
.service-heading {
    max-width: 760px;
    margin: 0 auto 70px;
    text-align: center;
}
.service-heading .section-label {
    margin: 0 0 12px;
    color: #d98242;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}
.service-heading h2 {
    margin: 0 0 24px;
    color: #493b35;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.05em;
}
.service-lead {
    margin: 0;
    color: #5f554f;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 2;
}

/* カード一覧 */
.service-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 35px);
    align-items: stretch;
}

/* カード */
.service-card {
    display: flex;
    flex-direction: column;
    
    overflow: hidden;

    background-color: #ffffff;
    border: 1px solid #ded8d2;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(73, 59, 53, 0.08);

    transition: 
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 38px rgba(73, 59, 53, 0.14);
}

/* 画像枠 */
.service-image {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    aspect-ratio: 3 / 2;

    overflow: hidden;
    background-color: #f5f3ef;
}

/* 通常の写真 */
.service-image img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}
/* 本文 */
.service-card-body {
   padding: 25px 22px 30px;
    box-sizing: border-box;
}
/* バナー画像だけ全体表示 */
.service-card--banner .service-image {
    padding: 15px;
    box-sizing: border-box;
}

.service-card--banner .service-image img {
    object-fit: contain;
}

/* ==================================
   PLAN・料金プラン
================================== */
.plan {
    width: 100%;
    padding: clamp(70px, 9vw,120px) 20px;
    color: #493b35;
    background-color: #f4f7f1;
    box-sizing: border-box;
}
.plan .section-heading {
    width: min(100%, 1000px);
    margin: 0 auto;
}
/* PLAN見出し */
.plan .label {
    margin: 0 0 45px;
    color: #d98242;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-align: center;
}

/* スマホで表をスクロールさせる */
.plan-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(73, 59, 53, 0.1);
}

/* 料金表 */
.plan table {
    width: 100%;
    min-width: 680px;
    border-spacing: 0;
    border-collapse: separate;
    overflow: hidden;
    background-color: #ffffff;
}

/* 見出しセル */
.plan thead th {
    padding: 20px 18px;
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 1rem;
    text-align: left;
    background-color: #668269;
}

/* 通常セル */
.plan tbody td {
    padding: 22px 18px;
    line-height: 1.7;
    text-align: left;
    border-bottom: 1px solid #e4ddd7;
}

/* 最終行の線を消す */
.plan tbody tr:last-child {
    border-bottom: none;
}
/* 行にカーソルを置いたとき */
.plan tbody tr {
    transition: 
    background-color 0.3s ease,
    transform 0.3s ease;
}
.plan tbody:hover {
    background-color: #fff8f1;
}

/* プラン名 */
.plan tbody td:first-child {
    width: 24%;
    color: #493b35;
    font-size: 1.05rem;
    font-weight: 700;
}

/* 内容 */
.plan tbody td:nth-child(2) {
    width: 46%;
}

/* 料金 */
.plan tbody td:last-child {
    width: 30%;
    color: #d98242;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
}
.scroll-guide {
    display: none;
}


/* 注意事項 */
.plan-note {
    margin-top: 40px;
    padding: 28px 32px;
    background-color: #fffdf8;
    border-left: 5px solid #d98242;
    border-radius: 0 10px 10px 0;
}
.plan-note h2 {
    margin: 0 0 15px;
    color: #493b35;
    font-size: 1.2rem;
    font-weight: 600;
}
.plan-note p {
    margin: 0;
    color: #5f554f;
    font-size: 0.9rem;
    line-height: 2;
}
/* ==================================
   FLOW・制作の流れ
================================== */
.flow {
    width: 100%;
    padding: clamp(70px, 9vw, 120px) 20px;
    color: #493b35;
    background-color: #fffdf8;
    box-sizing: border-box;
}
.flow .section-heading {
    width: min(100%, 800px);
    margin: 0 auto 65px;
    text-align: center;
}
.flow .label {
    margin: 0 0 12px;
    color: #d98242;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}
.flow .section-heading h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
}
.flow .section-heading > p:last-child {
    margin: 0;
    line-height: 2;
}

/* フローカード全体 */
.flow-category {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 30px;

    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

/* 上段３枚 */
.flow-category-item {
    position: relative;
    grid-column: span 2;

    min-height: 210px;
    padding: 32px 28px;

    background-color: #ffffff;
    border: 1px solid #ded7d0;
    border-top: 5px solid #668269;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(73, 59, 53, 0.08);
    box-sizing: border-box;
}

/* 下段２枚を中央に配置 */
.flow-category-item:nth-child(4) {
    grid-column: 2 / span 2;
}
.flow-category-item:nth-child(5) {
    grid-column: 4 / span 2;
}

/* Flow番号 */
.flow-number {
    margin: 0 0 15px;
    color: #d98242;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

/* 各工程の見出し */
.flow-category-item h3 {
    margin: 0 0 15px;
    color: #493b35;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 600;
}
/* 説明文 */
.flow-description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.9;
}

/* 矢印 */
.flow-category-item:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: -24px;
    z-index: 2;
    color: #d98242;
    font-size: 1.4rem;
    transform: translateY(-50%);
}

/* ３枚目から４枚目への矢印は非表示 */
.flow-category-item:nth-child(3)::after {
    display: none;
}
/* お問い合わせ案内 */
.flow-contact {
    margin-top: 55px;
    text-align: center;
}
.flow-contact p {
    margin: 0 0 18px;
}
.flow-button {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 45px;

    width: min(100%, 350px);
    padding: 17px 25px;

    color: #ffffff;
    font-weight: 700;
    text-decoration: none;

    background-color: #668269;
    border-radius: 50px;
    box-sizing: border-box;
    transition: 
        background-color 0.3s ease,
        transform 0.3s ease;
}
.flow-button:hover {
    background-color: #d98242;
    transform: translateY(-3px);
}
/* ==================================
   CONTACT
================================== */

/* contact全体 */
.contact {
    width: 100%;
    margin: 0;
    padding: clamp(70px, 0vw, 110px) 20px;
    color: #493b35;
    background-color: #f7f3e8;
    box-sizing: border-box;
}

.contact-main {
  width: min(100%, 1100px);
  margin: 0 auto; 
}
/* contact見出し */
.contact-label {
    margin: 0 0 18px;
    color: #d98242;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-align: center;
}

/* メイン画像 */
.contact-image {
    display: block;
    width: min(100%, 1000px);
    height: auto;
    margin: 0 auto;
    object-fit: cover;
}
.contact-info {
    max-width: 700px;
    margin: 38px auto 45px;
    text-align: center;
}
/* お問い合わせ導入文 */
.contact-intro {
    width: min(100%, 760px);
    margin: 0 auto 45px;
    padding: 0;
    text-align: center;
}

/* 英語の小見出し */
.contact-subtitle {
    margin: 0 0 12px;
    color: #d98242;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.22em;
}
/* お問い合わせタイトル */
.contact-intro h2 {
    margin: 0 0 22px;
    color: #493b35;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    letter-spacing: 0.08em;
}
.contact-intro p {
    margin: 0;
}
.contact-note {
    display: inline-block;
    margin: 22px 0 0;
    padding: 9px 18px;
    color: #668269;
    font-size: 0.85rem;
    line-height: 1.7;
    background-color: #eef4ec;
    border-radius: 30px;
}

/* メインの案内文 */
.contact-lead {
    margin: 0;
    color: #493b35;
    font-size: 1rem;
    line-height: 2;
}

/* タイトル下の短い線 */
.contact-intro h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    margin: 20px auto 0;
    background-color: #d98242;
}
/* プラン */
.plan-select {
    margin: 0 0 28px;
    padding: 0;
    border: none;
}
.plan-select legend {
    margin-bottom: 8px;
    font-weight: 600;
}
.form-help {
    margin: 0 0 15px;
    color: #756a64;
    font-size: 0.85rem;
}
.plan-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.plan-options label {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0;
    padding: 13px 15px;

    background-color: #fffdf8;
    border: 1px solid #cfc6bf;

    cursor: pointer;
    transition: 
    border-color 0.3s ease,
    background-color 0.3s ease;

}
.plan-options label:hover {
    background-color: #eef4ec;
    border-color: #668269;
}
.plan-options input[type="radio"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #668269;
}
/* フォーム */
.contact-form {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: clamp(30px, 5vw, 60px);
    background-color: #ffffff;
    border: 1px solid #e7ded7;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(73, 59, 53, 0.08);
    box-sizing: border-box;
}
/* 横に２項目並べる */
.form-item {
    margin-bottom: 28px;
}

.form-item label {
    display: block;
    margin-bottom: 9px;
    font-weight: 600;
}

/* 必須・任意 */
.required, .optional {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    font-size: 0.7rem;
    border-radius: 3px;
}
.required {
    color: #ffffff;
    background-color: #d98242;
}
.optional {
    color: #668269;
    background-color: #eef4ec;
}

/* 入力欄 */
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 13px 15px;
    color: #333333;
    font: inherit;
    background-color: #fffdf8;
    border: 1px solid #cfc6bf;
    border-radius: 6px;
    box-sizing: border-box;
}
.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}
/* 電話番号・メールアドレスは横幅いっぱい */
.contact-form input[type="tel"],
.contact-form input[type="email"] {
    width: 100%;
}



/* 入力中 */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(102, 130, 105, 0.25);
    border-color: #668269;
}

/* メールアドレス入力欄 */
#mail {
    width: 100%;
}

/* 同意欄 */
.privacy-check {
    margin: 10px 0 35px;
    text-align: center;
}
.privacy-check input {
    margin-right: 7px;
}
/* プライバシーポリシーを横1列にする */
.privacy-check label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}
.privacy-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #668269;
}

.privacy-check a {
    color: #668269;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.privacy-check a:hover {
    color: #d98242;
}

/*送信ボタン */
.submit-area {
    text-align: center;
}

.submit-area button {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 45px;

    width: min(100%, 340px);
    padding: 16px 25px;

    color: #ffffff;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.06em;

    background-color: #668269;
    border: none;
    border-radius: 50px;

    cursor: pointer;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.submit-area button:hover {
    background-color: #d98242;
    transform: translateY(-2px);
}
/* お名前とフリガナだけ2列 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-row .form-item {
    min-width: 0;
}
/* footer */
footer {
    background-color: #668269;
    text-align: center;
    padding: 30px;
    color: #ddd3cb;
}
footer ul {
     display: flex;
    justify-content: space-around;
    list-style: none;
    }

    /* 各セクションの英語ラベルを統一 */
    .concept .label,
    .about .label,
    .service-content .label,
    .works .label,
    .news .label,
    .contact .contact-label {
        margin: 0 0 15px;
        color: #d98242;
        font-size: clamp(1.2rem, 2vw, 1.6rem);
        font-weight: bold;
        line-height: 1.2;
        letter-spacing: 0.15em;
    }
 /* ==================================
   ページ上部へ戻るボタン
================================== */

.page-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;

    display: grid;
    place-items: center;

    width: 58px;
    height: 58px;
    padding: 0;

    color: #ffffff;
    background-color: #668269;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(73, 59, 53, 0.25);

    cursor: pointer;

    /* 最初は非表示 */
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);

    transition: 
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background-color 0.3s ease;
}

/* 矢印 */
.page-top span {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

/* スクロール後に表示 */
.page-top.is-show {
    visibility: visible;
    opacity: 1;

    transform: translateY(0);

}

/* カーソルを置いた時 */
.page-top:hover {
    background-color: #d98242;
    transform: translateY(-4px);
}

.page-top:hover span {
    transform: translateY(-3px);
}

/* キー操作ド操作 */
.page-top:focus-visible {
    outline: 3px solid rgba(217, 130, 66, 0.4);
    outline-offset: 4px;
}

/* カフェ画像を切らずに全体表示 */
.service-list .service-card-cafe .service-image {
    display: grid;
    place-items: center;
    width: 100%;
    height: 250px;
    padding: 0;
    overflow: hidden;
    background-color: #f5f1dc;
}
.service-list .serrvice-card-cafe .service-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}

/* カフェ画像はマウスを置いても拡大しない */
.service-card-cafe:hover .service-image,
.service-card-cafe:hover .service-image img {
    transform: none !important;
}

/* ==================================
   WORKS
================================== */
.works {
    width: 100%;
    padding: clamp(70px, 9vw, 120px) 20px;
    color: #493b35;
    background-color: #f4f7f1;
}
.works .section-heading {
    width: min(100%, 800px);
    margin: 0 auto 65px;
    text-align: center;
}
.works .label {
    margin: 0 0 12px;
    color: #d98242;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}
.works .section-heading h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
}
.works .section-heading > p:last-child {
    margin: 0;
    line-height: 2;
}
/* カード一覧 */
.works-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(30px, 5vw, 55px);
    width: min(100%, 1100px);
    margin: 0 auto;
}
/* 各カード */
/* 各カード */
.work-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background-color: #ffffff;
    border: 1px solid #ded7d0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(73, 59, 53, 0.08);
}

/* ==================================
   WORKS 講座案内サイト画像
================================== */

.works .work-image.work-image--lesson {
    display: block;

    width: 100%;
    height: auto;

    /* 通常の16:10を解除 */
    aspect-ratio: auto;

    padding: 0;
    overflow: hidden;

    background-color: #f2f3ef;
}

.works .work-image.work-image--lesson img {
    display: block;

    width: 100%;
    height: auto;

    /* 固定サイズを解除 */
    max-width: 100%;
    max-height: none;

    object-fit: initial;
    object-position: initial;

    transform: none;
}

/* マウスを置いても拡大しない */
.works a.work-image--lesson:hover img {
    transform: none;
}

/* リンク画像にカーソルを置いたとき */
a.work-image:hover img {
    transform: scale(1.03);
}

/* カード本文 */
.work-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px 28px 30px;
    box-sizing: border-box;
}

.work-number {
    margin: 0 0 10px;
    color: #d98242;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.work-body h3 {
    margin: 0 0 14px;
    font-size: clamp(1.3rem, 2.5vw, 1.65rem);
    font-weight: 600;
    line-height: 1.5;
}

/* 使用技術 */
.work-skill {
    width: fit-content;
    margin: 0 0 20px;
    padding: 6px 12px;

    color: #668269;
    font-size: 0.8rem;
    font-weight: 700;

    background-color: #eef4ec;
    border-radius: 50px;
}

/* 説明文 */
.work-description {
    margin: 0 0 25px;
    line-height: 1.9;
}

/* サイトを見るボタン */
.work-button {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: auto;
    padding: 15px 20px;

    color: #ffffff;
    font-weight: 700;
    text-decoration: none;

    background-color: #668269;
    border-radius: 6px;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.work-button:hover {
    background-color: #d98242;
    transform: translateY(-2px);
}

/* リンクのない作品 */
.work-status {
    width: fit-content;
    margin: auto 0 0;
    padding: 8px 14px;

    color: #668269;
    font-size: 0.85rem;
    font-weight: 700;

    border: 1px solid #668269;
    border-radius: 50px;
}
/* ==================================
   WORKSの正方形画像
================================== */


/* 画像全体を切らずに枠内へ収める */
.works .work-image--contain img {
    display: block;

    width: auto;
    height: auto;
    max-width: 78%;
    max-height: 100%;

    object-fit: contain;
    object-position: center;
}
/* ねこ日和・正方形バナーを切らずに表示 */
.works .work-image.work-image--contain {
    display: grid;
    place-items: center;

    width: 100%;
    height: auto;
    min-height: 0;
    padding: 18px;
    overflow: visible;
    background-color: #f2f3ef;
    box-sizing: border-box;

}

/* 正方形画像を少し小さくして全体表示 */
.works .work-image.work-image--contain img {
    display: block;

    width: min(72%, 380px);
    height: auto;

    max-width: 100%;
    max-height: none;

    object-fit: contain;
    object-position: center;
}
.works .work-image--website {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f2f3ef;
}
.works .work-image--website img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
/* ==================================
   FAQ・よくある質問
================================== */

.faq {
    width: 100%;
    padding: clamp(70px, 9vw, 120px) 20px;
    color: #493b35;
    background-color: #fffdf8;
    box-sizing: border-box;
}

.faq .section-heading {
    width: min(100%, 800px);
    margin: 0 auto 60px;
    text-align: center;
}

.faq .label {
    margin: 0 0 12px;
    color: #d98242;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.faq .section-heading h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
}

.faq .section-heading > p:last-child {
    margin: 0;
    line-height: 2;
}

/* FAQ一覧 */
.faq-list {
    width: min(100%, 850px);
    margin: 0 auto;
}

/* 質問と回答の枠 */
.faq-item {
    margin-bottom: 18px;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #ded7d0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(73, 59, 53, 0.06);
}

/* 質問 */
.faq-question {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 23px 65px 23px 25px;

    font-size: 1rem;
    font-weight: 600;
    line-height: 1.7;

    cursor: pointer;
    list-style: none;
}

/* ブラウザ標準の三角を消す */
.faq-question::-webkit-details-marker {
    display: none;
}

/* 右側の＋マーク */
.faq-question::after {
    content: "＋";
    position: absolute;
    top: 50%;
    right: 25px;

    color: #668269;
    font-size: 1.5rem;
    font-weight: 400;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

/* 開いたときは×に近い形にする */
.faq-item[open] .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

/* Q・Aの丸い印 */
.faq-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;

    width: 38px;
    height: 38px;

    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;

    background-color: #668269;
    border-radius: 50%;
}

/* 回答 */
.faq-answer {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 25px;

    background-color: #f4f7f1;
    border-top: 1px solid #e3ddd7;
}

.faq-icon-answer {
    background-color: #d98242;
}

.faq-answer p {
    margin: 3px 0 0;
    line-height: 1.9;
}
/* ==================================
   メディアクエリ
================================== */
@media (max-width: 900px) { 
    .value-list {
        grid-template-columns: repeat(2,minmax(0, 1fr));
    }
    /* ３枚目を中央に配置 */
    .value-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 10px);
        justify-self: center;
    }
    .service-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .flow-category {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .flow-category-item,
    .flow-category-item:nth-child(4),
    .flow-category-item:nth-child(5) {
        grid-column: auto;
    }
    .flow-category-item:not(:last-child)::after {
        display: none;
    }
}
@media (max-width: 700px) {
    .works {
        padding: 60px 18px;
    }

    .works .section-heading {
        margin-bottom: 40px;
    }

    .works-list {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .work-card {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .work-body {
        padding: 24px 20px;
    }

    .work-image {
        aspect-ratio: 4 / 3;
    }
    .works .work-image.work-image--contain {
        height: auto;
        padding: 15px;
    }
     .works .work-image.work-image--contain img {
        width: min(85%, 340px);
        height: auto;
    }
    body {
    overflow-x: hidden;
    overflow-y: auto;
}
    html,
    body {
        width: 100%;
        margin: 0;
        padding: 0;
        
    }

    header,
    main,
    footer {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        box-sizing: border-box;
    }
    .hero,
    .about,
    .service-content,
    .plan,
    .flow,
    .works,
    .faq,
    .contact {
        width: 100%;
        max-width: none;
        margin-right: auto;
        margin-left: auto;
        box-sizing: border-box;
    }
}
@media (max-width: 768px) {
    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        
        gap: 10px 18px;
        margin: 0;
        padding: 15px 12px;

        list-style: none;
    }
    nav a {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    .hero {
        width: 100%;
        min-height: 620px;
        margin: 0;
        overflow: hidden;
    }
    .hero > img {
        width: 100%;
        height: 100%;
        object-fit: cover;

        /* 写真の中央付近を表示 */
        object-position: 55% center;
    }
    .hero-text {
        width: 100%;
        margin: 0;
        padding: 70px 20px 50px;
        box-sizing: border-box;
    }

    .hero-text h1 {
        width: 100%;
        max-width: 100%;
        margin: 0 0 25px;
        font-size: clamp(1.8rem, 7.5vw, 2.6rem);
        line-height: 1.5;
    }

    .hero-description {
        width: 100%;
        max-width: 100%;
        padding: 12px 15px;
        box-sizing: border-box;
    }
    .hero-description br {
        display: none;
    }
}
@media (max-width: 600px) {
    .about {
        padding: 70px 20px;
    }
    .about-heading {
        margin-bottom: 60px;
    }
    .about-lead br {
        display: none;
    }
    .value-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .value-card,
    .value-card:last-child {
        grid-column: auto;
        width: 100%;
        min-height: auto;
    }
    .value-card {
        padding: 35px 25px 30px;
    }
    .value-card::before {
        left: 25px;
    }
    .service-content {
        padding: 70px 20px;
    }
    .service-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .service-card {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
    .service-image {
        width: 100%;
        aspect-ratio: 3 / 2;
    }
    .service-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    /* バナー画像は切らずに表示 */
    .service-card--banner .service-image img {
        object-fit: contain;
        padding: 15px;
        box-sizing: border-box;
    }
    .service-card-body {
        padding: 25px 22px 30px;
    }
    .service-card h3 {
        font-size: 1.35rem;
    }
    .service-description {
        line-height: 1.9;
    }
    .plan {
        padding: 60px 15px;
    }
    .plan .label {
        margin-bottom: 30px;
    }
   
    .plan table {
        min-width: 620px;
    }
    .plan thead th,
    .plan tbody td {
        padding: 16px 14px;
    }
    .scroll-guide {
        display: block;
        margin: 10px 0 0;
        color: #668269;
        font-size: 0.8rem;
        text-align: center;
    }
    .plan-note {
        margin-top: 30px;
        padding: 22px 18px;
    }
    .plan-note p {
        font-size: 0.85rem;
    }
    .flow {
        padding: 60px 18px;
    }
    .flow .section-heading {
        margin-bottom: 40px;
    }
    .flow-category {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    .flow-category-item {
        width: 100%;
        min-height: auto;
        padding: 26px 22px;
    }
    /* スマホでは下向き矢印 */
    .flow-category-item:not(:last-child)::after {
        content: "↓";
        display: block;
        top: auto;
        right: 50%;
        bottom: -36px;
        transform: translateX(50%);
    }
    .flow-category-item:nth-child(3)::after {
        display: block;
    }
    .faq {
        padding: 60px 15px;
    }

    .faq .section-heading {
        margin-bottom: 40px;
    }

    .faq-question {
        gap: 12px;
        padding: 18px 50px 18px 15px;
        font-size: 0.9rem;
    }

    .faq-question::after {
        right: 15px;
    }

    .faq-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .faq-answer {
        gap: 12px;
        padding: 18px 15px;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }
    .contact {
        padding: 60px 15px;
    }
    .contact-form {
        padding: 30px 20px;
    }
    .plan-options {
        grid-template-columns: 1fr;
    }
    .privacy-check label {
        align-items: flex-start;
        white-space: normal;
        text-align: left;
        line-height: 1.7;
    }
    .privacy-check input[type="checkbox"] {
        margin-top: 4px;
    }
    /* =========================
   スマホ：SERVICE・PLAN位置修正
========================= */
.service-content,
.plan {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* SERVICE */
.service-content {
    padding-left: 16px;
    padding-right: 16px;
}

.service-content .section-heading,
.service-content .service-subtitle,
.service-content h2,
.service-content .service-lead {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.service-list {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.service-card {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* PLAN */
.plan {
    width: 100%;
    max-width: 100%;
    padding: 60px 15px;
    margin: 0 auto;
    box-sizing: border-box;
}
.plan .label {
    width: 100%;
    margin: 0 auto 30px;
    text-align: center;
}

.plan .section-heading,
.plan .label,
.plan h2 {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* 表だけ横スクロール可能にする */
.plan-table-wrap {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-sizing: border-box;
}
.plan table {
    width:100%;
    min-width: 0;
    table-layout: fixed;
}

/* 注意事項 */
.plan-note {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
 .plan th:first-child,
    .plan td:first-child {
        width: 42%;
    }

    .plan th:nth-child(2),
    .plan td:nth-child(2) {
        width: 58%;
    }

    .plan thead th,
    .plan tbody td {
        padding: 16px 14px;
        box-sizing: border-box;
    }

    .scroll-guide {
        display: none;
    }

    .plan-note {
        width: 100%;
        margin: 30px auto 0;
        padding: 22px 18px;
        box-sizing: border-box;
    }
}
@media (max-width: 480px) {
    .hero {
        min-height: 580px;
    }
    .hero-text {
        padding: 55px 18px 40px;
    }

    .hero-text h1 {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
        line-height: 1.45;
    }
    .hero-text h1 span {
        white-space: normal;
    }
    .hero-button {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}