/* ============================================================
   familign. service.css
   - Serviceページ（/service/）固有のスタイル
   - common.css（フォント・変数・リセット・背景・ヘッダー・
     ドロワー・フッター等）を先に読み込んでからこのファイルを読み込む
   ============================================================ */

/* ============================================================
   Info Table（制作費用のめやす）
   about.css の .info-table / .info-table--note と同じデザイン
   ============================================================ */
.info-table {
    margin-top: clamp(2.4rem, 2rem + 1.5vw, 4rem);
    border-top: 1px solid var(--color-line);
}

.info-table__row {
    display: flex;
    align-items: center;
}

.info-table__label {
    flex-shrink: 0;
    width: 30%;
    min-width: 5em;
    padding: .5em 1.5em;
    font-weight: 700;
}

.info-table__value {
    padding: 1em 1.5em;
    color: var(--color-text-sub);
}

@media (max-width: 48em) {
    .info-table__row {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .info-table__label {
        width: auto;
        padding: 0.8em 1em 0.4em;
    }
    .info-table__value {
        padding: 0 1em 0.8em;
    }
}

/* 制作費用のめやす：TOPの.flow__noteと同じ「枠線＋タイトルタブ」デザイン */
.info-table--note {
    margin-top: clamp(3.6rem, 3rem + 2.25vw, 6rem);
    padding: 0 1em 0.6em;
    border: 1px solid var(--color-text);
    background-color: rgba(255, 255, 255, 0.2);
}

.info-table--note .info-table__row {
    display: block;
    border-bottom: none;
}

.info-table--note .info-table__label {
    display: table;
    margin: -0.7em auto 0.7rem;
    padding: 0.2em 3em;
    width: auto;
    background-color: #b29872;
    color: var(--color-white);
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    text-shadow: none;
}

.info-table--note .info-table__value {
    padding: 0;
    text-align: center;
    font-size: clamp(1.6rem, 1.5rem + 0.2vw, 1.84rem);
}

/* 見出しの一文字目だけ赤に */
.title-accent {
    font-style: normal;
    color: var(--color-primary);
}

/* ============================================================
   Service Intro（リード文・サービス一覧）
   ============================================================ */
/* .service-intro__inner は js-reveal 等のクラスが付与されており、
   common.cssの`[class$="__inner"]`（クラス属性が"__inner"で終わる要素に
   コンテンツ幅を当てる共通ルール）が末尾一致しなくなりマッチしない
   （about.cssの.profile__inner等と同じ理由）。そのため個別に指定する */
.service-intro__inner {
    width: min(var(--container-width), 92%);
    margin-inline: auto;
}

@media (max-width: 48em) {
    .service-intro__inner {
        width: 92.5%;
        max-width: 500px;
    }
}

@media (max-width: 499px) {
    .service-intro__inner {
        width: 92.5%;
    }
}

.service-intro__lead {
    color: var(--color-text-sub);
}

/* サービス一覧：info-table--note / flow__noteと同じ「枠線＋タイトルタブ」デザイン */
.service-toc {
    margin-top: clamp(2.4rem, 2rem + 1.5vw, 4rem);
    padding: 0 1em 1em;
    border: 1px solid var(--color-text);
    background-color: rgba(255, 255, 255, 0.2);
}

.service-toc__label {
    display: table;
    margin: -0.7em auto 0.7rem;
    padding: 0.2em 3em;
    background-color: #b29872;
    color: var(--color-white);
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    text-shadow: none;
}

.service-toc__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .3em clamp(1.6rem, 1rem + 2vw, 4rem);
}

.service-toc__item {
    position: relative;
    padding-left: 1.2em;
}

.service-toc__item::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 0.57em;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: var(--color-primary);
}

.service-toc__link {
    text-decoration: underline;
}

.service-toc__link:hover {
    text-decoration: none;
    opacity: 1;
}

@media (max-width: 48em) {
    .service-toc__list {
        grid-template-columns: 1fr;
        gap: .4em;
    }
}

/* ============================================================
   Service Block（Webサイト制作／Webバナー・SNS画像制作／
   チラシ・パンフレット・名刺制作／運用・保守・アクセス解析　共通）
   ============================================================ */
.service-block__title {
    font-family: var(--font-serif);
    font-size: clamp(2.63rem, -0.62rem + 3.61vw, 4.6rem);
    font-weight: 500;
    text-align: center;
    margin-bottom: 0;
    position: relative;
}

@media (max-width: 499px) {
    .service-block__title {
        font-size: 6.6vw;
    }
}

@media (min-width: 500px) and (max-width: 48em) {
    .service-block__title {
        font-size: 3.5rem;
    }
}

.service-block__title::before,
.service-block__title::after {
    content: "";
    display: block;
    width: clamp(6rem, 5rem + 4vw, 10rem);
    height: 0.3rem;
    margin: 0 auto;
    background-image: radial-gradient(circle, var(--color-primary) 32%, rgba(0, 0, 0, 0) 33%);
    background-size: 0.7rem 0.7rem;
    background-position: center;
    background-repeat: repeat-x;
}

.service-block__title::before {
    margin-bottom: 0.5em;
}

.service-block__title::after {
    margin-top: 0.5em;
}

.service-block__body {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 1vw, 4rem);
}

.service-block__image {
    width: 33%;
    flex-shrink: 0;
    overflow: hidden;
}

.service-block__text {
    width: 66%;
    color: var(--color-text-sub);
}

@media (max-width: 48em) {
    .service-block__body {
        flex-direction: column;
    }
    .service-block__image,
    .service-block__text {
        width: 100%;
    }
}

/* 制作実績 */
.service-block__works {
    margin-top: clamp(3.6rem, 3rem + 2.25vw, 6rem);
}

.service-block__works-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.2rem, 0.8rem + 1.5vw, 2.4rem);
}

.service-block__works-link {
    display: block;
}

.service-block__works-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    filter:drop-shadow(0 0.2rem .5rem rgba(0, 0, 0, 0.17));
}

.service-block__works-image-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-block__works-caption {
    margin-top: 0.6em;
    text-align: center;
    font-size: .95em;
    line-height: 1.5;
    color: var(--color-text-sub);
}

.service-block__works-more {
    text-align: center;
    margin-top: clamp(2.4rem, 2rem + 1.5vw, 4rem);
}

/* ゴールドボタン（common.cssの各種もっとみるボタンと同系デザイン）。
   4種類すべて同じクラスを使うことで、幅・見た目を統一する */
.service-block__works-more-link {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 600px;
    padding: .9em 2.4em .9em 1.6em;
    background-color: var(--color-accent);
    font-weight: 700;
    color: var(--color-white);
    text-align: center;
    line-height: 1.5;
    box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, opacity 0.3s ease;
    text-shadow: none;
}

.service-block__works-more-link:hover {
    background-color: var(--color-accent-dark);
    opacity: 1;
}

.service-block__works-more-link::before {
    content: "";
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 1.2rem 1.2rem;
    border-color: rgba(0,0,0,0) rgba(0,0,0,0) #fff rgba(0,0,0,0);
}

@media (max-width: 48em) {
    .service-block__works-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    .service-block__works-caption {
        font-size: 1em;
    }
}

@media (max-width: 36em) {
    .service-block__works-list {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-inline: auto;
        gap: 1.6rem;
    }
}

/* CTA直前セクションの余白調整（about.css / qa.cssと同じ考え方） */
.main section + .cta {
    margin-top: -3em;
}

@media (max-width: 48em) {
    .main section + .cta {
        margin-top: -8em;
    }
}
