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

/* ============================================================
   Page Title（About 私について）
   共通パーツはcommon.cssの.page-titleを使用。ここでは
   .page-title__innerと横幅を揃えたい .profile__inner / .craft__inner
   の指定のみ行う
   ============================================================ */

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

@media (max-width: 48em) {
    .profile__inner,
    .craft__inner {
        width: 92.5%;
        max-width: 500px;
    }
}

@media (max-width: 499px) {
    .profile__inner,
    .craft__inner {
        width: 92.5%;
    }
}

/* Aboutラベルがposition:absoluteで箱の右外側にはみ出す分の余白を確保し、
   画面端での見切れを防ぐ */
@media (max-width: 48em) {
    .page-title__box {
        margin-right: 0.8em;
    }
}

/* ============================================================
   Profile（プロフィール文）
   ============================================================ */

.profile__text {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

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

/* ============================================================
   Info Table（好きなこと・好きなもの）
   ============================================================ */
.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);
}

/* ============================================================
   Section Title（得意・苦手なデザイン／経歴／事業者概要）
   ============================================================ */
.design-type__title,
.craft__title,
.history__title,
.company__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: clamp(2rem, 1.6rem + 1.5vw, 4rem);
    position: relative;
}

/* 見出しの一文字目だけ赤に。::first-letterは見出しのブロックレベル::before
   （ドットライン装飾）に先頭行を奪われ効かないため、対象の文字をemで囲んで指定する */
.title-accent {
    font-style: normal;
    color: var(--color-primary);
}

@media (max-width: 499px) {
    .design-type__title,
    .craft__title,
    .history__title,
    .company__title {
        font-size: 6.6vw;
    }
}

@media (min-width: 500px) and (max-width: 48em) {
    .design-type__title,
    .craft__title,
    .history__title,
    .company__title {
        font-size: 3.5rem;
    }
}

.design-type__title::before,
.craft__title::before,
.history__title::before,
.company__title::before,
.design-type__title::after,
.craft__title::after,
.history__title::after,
.company__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;
}

.design-type__title::before,
.craft__title::before,
.history__title::before,
.company__title::before {
    margin-bottom: 0.5em;
}

.design-type__title::after,
.craft__title::after,
.history__title::after,
.company__title::after {
    margin-top: 0.5em;
}

/* ============================================================
   Design Type（得意なデザイン・苦手なデザイン）
   ============================================================ */
.design-type__list {
    margin-top: clamp(2.4rem, 2rem + 1.5vw, 4rem);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.6rem, 1rem + 2vw, 4rem);
}

/* TOPの.flow__noteと同じ「枠線＋タイトルタブ」デザイン */
.design-type__item {
    position: relative;
    padding: 0 1em 0.6em;
    border: 1px solid var(--color-text);
    background-color: rgba(255, 255, 255, 0.2);
}

.design-type__item-title {
    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;
}

/* 苦手なデザインのみ、タブの色をゴールドからグレーに */
.design-type__item--bad .design-type__item-title {
    background-color: #727272;
}

.design-type__item-list {
    padding: 0 0.6em;
    display: flex;
    flex-wrap: wrap;
}

.design-type__item-listItem {
    position: relative;
    padding-left: 1.2em;
}

.design-type__item-listItem::before {
    content: "・";
    position: absolute;
    left: 0;
}

@media (max-width: 48em) {
    .design-type__list {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Craft（和裁士時代に培った職人気質）
   ============================================================ */

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

/* ============================================================
   History（経歴）
   ============================================================ */
.history__list {
    padding-left: 2em;
    display: flex;
    flex-direction: column;
}

.history__item {
    position: relative;
    padding: 0 1em 2em 1.5em;
}

.history__item::before {
    content: "";
    position: absolute;
    top: 0.7em;
    left: 0;
    z-index: 1;
    width: .8em;
    height: .8em;
    border-radius: 50%;
    background-color: var(--color-primary);
    box-shadow: 0 0 2px 3px rgba(255,255,255,0.4);
}

.history__item::after {
    content: "";
    position: absolute;
    top: 1.6rem;
    left: .35em;
    width: 0;
    height: 100%;
    border-left: 2px dotted var(--color-text);
}

.history__item:last-child::after {
    height: 70%;
}

.history__item-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 1.6rem + 0.5vw, 2.2rem);
    font-weight: 500;
    margin-bottom: 0.5em;
}

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

/* ============================================================
   Company（事業者概要）
   ============================================================ */
.company__table {
    margin-top: clamp(2.4rem, 2rem + 1.5vw, 4rem);
    border-top: 1px solid var(--color-line);
}

.company__row {
    padding: 0 5%;
    display: flex;
    align-items: center;
    line-height: 1.8;
}
.company__row:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.6);
}

.company__label {
    flex-shrink: 0;
    width: 30%;
    min-width: 5em;
    padding: .5em 0;
    font-weight: 500;
}

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

.main section + .cta {
    margin-top: -3em;
}

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

