/* 基本フォントサイズの設定 */
:root {
    /* 最小4px、最大16px、その間は画面幅に応じてスムーズに変化 */
    font-size: clamp(4px, calc(4px + (16 - 4) * ((100vw - 320px) / (1440 - 320))), 16px);
}

.common__vertical-text {
    display: flex;
    justify-content: center;
    align-items: center;
    writing-mode: vertical-rl;
    text-orientation: upright;
    line-height: 1.75;
    letter-spacing: 0.4em;
    margin: 0;
}


body {
    --original-body--width: 1680;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    font-family: "T BU DMin Std", serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
    overflow-x: hidden;
}


/* Header Block */
.header {
    --original-header--height: 1145;
    --original-menu--height: 143;
    --original-menu--right: 50;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin: 0 auto;
    width: 100%;
    aspect-ratio: calc(var(--original-body--width) / var(--original-header--height));
    position: relative;
}

/* Header Elements */
.header__menu {
    position: absolute;
    top: 0;
    right: calc( var(--original-menu--right) / var(--original-body--width) * 100%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    aspect-ratio: calc(var(--original-body--width) / var(--original-menu--height));
}

.header__menu ul {
    display: flex;
    gap: 0.625rem;
    list-style: none;
    padding: 0;
}

.header__menu li a {
    text-decoration: none;
    font-size: 1rem;
    color: #333;
    padding: 0.3125rem 0.625rem;
    transition: all 0.3s ease;
}

.header__menu li a:hover {
    border: 0.0625rem solid #007bff;
    border-radius: 0.25rem;
    background-color: #e6f7ff;
    color: #007bff;
}


.header__sector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #ffffff;
    height: 100%;
}

.header__sector--left {
    --original-header-sector-left--width: 565;
    flex: 0 0 calc(var(--original-header-sector-left--width) / var(--original-body--width) * 100%);
}

.header__sector--center {
    --original-header-sector-center--width: 520;
    flex: 0 0 calc(var(--original-header-sector-center--width) / var(--original-body--width) * 100%);
}

.header__sector--right {
    --original-header-sector-right--width: 595;
    flex: 0 0 calc(var(--original-header-sector-right--width) / var(--original-body--width) * 100%);
}

.header__image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.header__menu-spacer {
    width: 100%;
    aspect-ratio: calc(var(--original-header-sector-right--width) / var(--original-menu--height)) ;
    flex-shrink: 0;
}

.header__tista-logo {
    --original-tista-logo--width: 153;
    --original-tista-logo--margin-top: 315;
    --original-tista-logo--margin-bottom: 30;

    width: calc(var(--original-tista-logo--width) / var(--original-header-sector-center--width)  * 100%);
    margin-top: calc(var(--original-tista-logo--margin-top) / var(--original-header-sector-center--width)  * 100%);
    margin-bottom: calc(var(--original-tista-logo--margin-bottom) / var(--original-header-sector-center--width)  * 100%);
}

.header__tista-logo-under-line {
    --original-tista-logo-under-line--width: 265;
    --original-tista-logo-under-line--margin-bottom: 40;
    width: calc(var(--original-tista-logo-under-line--width) / var(--original-header-sector-center--width) * 100%);
    margin-bottom: calc(var(--original-tista-logo-under-line--margin-bottom) / var(--original-header-sector-center--width) * 100%);
}

.header__catch-copy {
    font-size: 1.67rem;
}


/* About Concept Block */
.about-concept {
    --original-about-concept--height: 740;
    display: flex;
    width: 100%;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #f1edec;
    aspect-ratio: calc(var(--original-body--width)/var(--original-about-concept--height));
}

.about-concept__title {
    --original-about-concept-title--margin-top: 120;
    --original-about-concept-title--margin-bottom: 95;
    font-size: 2.2rem;
    letter-spacing: 0.2rem;
    line-height: 2.3rem;
    text-align: center;
    margin-top: calc(var(--original-about-concept-title--margin-top) / var(--original-body--width) * 100%);
    margin-bottom: calc(var(--original-about-concept-title--margin-bottom) / var(--original-body--width) * 100%);
}

.about-concept p {
    font-size: 1.1rem;
    letter-spacing: 0.2rem;
    line-height: 2.9rem;
    text-align: center;
    margin: 0;
}

/* Concept Block */
.concept {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    justify-content: flex-start;
    background-color: transparent;
    height: auto;
    padding-bottom: 3.125rem;
}

.concept__summary {
    display: flex;
    width: 100%;
    align-items: flex-start;
}

.concept__summary--row {
    flex-direction: row;
}

.concept__summary--column {
    flex-direction: column;
    width: 100%;
}

.concept__people,
.concept__soil,
.concept__culture {
    width: 100%;
    aspect-ratio: 1680/2160;
    display: flex;
    flex-direction: column;
    padding-bottom: 5.3%;
}

.concept__people {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

.concept__people-left {
    --original-people-left--width: 980;
    flex-shrink: 0;
    width: calc(var(--original-people-left--width) / var(--original-body--width) * 100%);
}

.concept__people-left-image {
    --original-people-left-image--width: 531;
    --original-people-left-image--margin-top: 65;
    --original-people-left-image--margin-bottom: 240;
    --original-people-left-image--margin-left: 200;
    width: calc(var(--original-people-left-image--width) / var(--original-people-left--width) * 100%);
    height: auto;
    object-fit: cover;
    margin-top: calc(var(--original-people-left-image--margin-top) / var(--original-people-left--width) * 100%);
    margin-bottom: calc(var(--original-people-left-image--margin-bottom) / var(--original-people-left--width) * 100%);
    margin-left: calc(var(--original-people-left-image--margin-left) / var(--original-people-left--width) * 100%);
}

.concept__people-left p {
    --original-people-left-p--margin-left: 330;
    margin: 0;
    margin-left: calc(var(--original-people-left-p--margin-left) / var(--original-people-left--width) * 100%);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    line-height: 3rem;
    text-align: left;
}

.concept__people-right {
    --original-people-right--width: 700;
    flex-shrink: 0;
    width: calc(var(--original-people-right--width) / var(--original-body--width) * 100%);
}

.concept__people-right-image {
    --original-people-right-image--margin-bottom: 80;
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: calc(var(--original-people-right-image--margin-bottom) / var(--original-people-right--width) * 100%);
}

.concept__people-logo {
    --original-people-right-image--width: 330;
    width: calc(var(--original-people-right-image--width) / var(--original-people-right--width) * 100%);
    height: auto;
    transform: translateY(-0.3125rem);
    margin-left: auto;
    object-fit: contain;
    display: block;
}

.concept__people-catch-copy {
    font-size: 2.2rem;
}

.concept__soil {
    background-color: #f1e3e3;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.concept__culture {
    background-color: #ffffff;
    display: flex;
    width: 100%;
}

.concept__soil-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.concept__soil-logo {
    --original-soil-logo--width: 465;
    width: calc(var(--original-soil-logo--width) / var(--original-body--width) * 100%);
    height: auto;
    align-self: flex-start;
    object-fit: contain;
    margin-top: 0;
}

.concept__soil-catch-copy {
    --original-soil-catch-copy--margin-top: 200;
    --original-soil-catch-copy--margin-left: 85;
    --original-soil-catch-copy--margin-top-percent: calc(var(--original-soil-catch-copy--margin-top) / var(--original-body--width) * 100%);
    --original-soil-catch-copy--margin-left-percent: calc(var(--original-soil-catch-copy--margin-left) / var(--original-body--width) * 100%);
    display: flex;
    justify-content: center;
    font-size: 2.2rem;
    margin: var(--original-soil-catch-copy--margin-top-percent) var(--original-soil-catch-copy--margin-left-percent);
}

.concept__soil-top-image {
    --original-soil-top-image--width: 605;
    --original-soil-top-image--margin-top: 120;
    --original-soil-top-image--margin-right: 80;
    --original-soil-top-image--margin-top-percent: calc(var(--original-soil-top-image--margin-top) / var(--original-body--width) * 100%);
    --original-soil-top-image--margin-right-percent: calc(var(--original-soil-top-image--margin-right) / var(--original-body--width) * 100%);
    width: calc(var(--original-soil-top-image--width) / var(--original-body--width) * 100%);
    height: auto;
    object-fit: contain;
    align-self: flex-start;
    margin: var(--original-soil-top-image--margin-top-percent) var(--original-soil-top-image--margin-right-percent);
}

.concept__soil-bottom {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
}

.concept__soil-bottom-image {
    --original-soil-bottom-image--width: 953;
    --original-soil-bottom-image--margin-bottom: 130;
    width: calc(var(--original-soil-bottom-image--width) / var(--original-body--width) * 100%);
    height: auto;
    align-self: flex-start;
    object-fit: contain;
    margin-bottom: calc(var(--original-soil-bottom-image--margin-bottom) / var(--original-body--width) * 100%);
}

.concept__soil-bottom p {
    --original-soil-bottom-p--margin-left: 125;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    line-height: 3rem;
    margin-left: calc(var(--original-soil-bottom-p--margin-left) / var(--original-body--width) * 100%);
}

.concept__culture-left {
    --original-culture-left--width: 820;
    --original-culture-left--padding-left: 190;
    box-sizing: border-box;
    padding-left: calc(var(--original-culture-left--padding-left) / var(--original-body--width) * 100%);
    width: calc(var(--original-culture-left--width) / var(--original-body--width) * 100%);
    text-align: left;
}

.concept__culture-left p {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    line-height: 3em;
    margin: 0;
}

.concept__culture-left-image {
    --original-culture-left-image--width: 450;
    --original-culture-left-image--margin-top: 120;
    width: calc(var(--original-culture-left-image--width) / var(--original-culture-left--width) * 100%);
    margin: calc(var(--original-culture-left-image--margin-top) / var(--original-culture-left--width) * 100%) 0;
    object-fit: contain;
}

.concept__culture-right {
    --original-culture-right--width: 860;
    width: calc(var(--original-culture-right--width) / var(--original-body--width) * 100%);
}

.concept__culture-right-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.concept__culture-logo {
    --original-culture-logo--width: 511;
    width: calc(var(--original-culture-logo--width) / var(--original-culture-right--width) * 100%);
    height: auto;
    transform: translateY(-3%);
    margin-left: auto;
    object-fit: contain;
}

.concept__culture-catch-copy {
    margin-left: 8.1%;
    font-size: 2.2rem;
}

.concept__culture-right-image {
    --original-culture-right-image--width: 772;
    --original-culture-right-image--margin-top: 90;
    width: calc(var(--original-culture-right-image--width) / var(--original-culture-right--width) * 100%);
    height: auto;
    margin: calc(var(--original-culture-right-image--margin-top) / var(--original-culture-right--width) * 100%) auto;
    object-fit: contain;
}

.concept__product-grid {
    --original-product-card--width: 430;
    --original-product-grid--gap: 65;
    display: grid;
    grid-template-columns: repeat(3, calc(var(--original-product-card--width) / var(--original-body--width) * 100%));
    gap: calc(var(--original-product-grid--gap) / var(--original-body--width) * 100%);
    justify-content: center;
    width: 100%;
}

.concept__product-card {
    --original-product-card--padding: 30;
    --original-product-card--padding-percent: calc(var(--original-product-card--padding) / var(--original-product-card--width) * 100%);
    background: #fff;
    border: 0.09375rem solid #e0e0e0;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.04);
    padding: var(--original-product-card--padding-percent);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.2s;
    width: auto;
}

/* リンクで囲まれた場合のスタイル */
.concept__product-grid a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.concept__product-card:hover {
    box-shadow: 0 0.75rem 3rem rgba(0, 0, 0, 0.2);
}

.concept__product-card img {
    width: 100%;
    aspect-ratio: 380/240;
    object-fit: cover;
    margin-bottom: 0.9375rem;
}

.concept__product-card h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1.125rem;
    color: #222;
    text-align: left;
}

.concept__product-card p {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    text-align: left ;
}

/* Contact Block */
.contact {
    padding: 3.125rem 0;  /* 50px相当 */
    background-color: #f5f5f5;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact h2 {
    margin-bottom: 1.875rem;  /* 30px相当 */
    font-size: 1.5rem;  /* 24px相当 */
    color: #333;
    scroll-margin-top: 6.25rem;  /* 100px相当 */
}

.contact__notice {
    max-width: 50rem;  /* 800px相当 */
    margin: 0 auto 1.875rem;  /* 30px相当 */
    padding: 0 1.25rem;  /* 20px相当 */
    text-align: left;
}

.contact__notice p {
    margin-bottom: 0.9375rem;  /* 15px相当 */
    line-height: 1.6;
}

.contact__notice--time {
    font-size: 0.875rem;  /* 14px相当 */
    color: #666;
}

.contact__button {
    display: inline-block;
    padding: 0.9375rem 2.5rem;  /* 15px 40px相当 */
    background-color: #000000;
    color: white;
    text-decoration: none;
    border-radius: 0.3125rem;  /* 5px相当 */
    font-size: 1rem;  /* 16px相当 */
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contact__button:hover {
    background-color: #333333;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #555;
    transform: translateY(-3px);
}

/* 会社概要 */
.company-profile {
    --original-company-profile--padding-top: 40;
    width: 100%;
    padding: calc(var(--original-company-profile--padding-top) / var(--original-body--width) * 100%) 0;
    background-color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.company-profile__table {
    --original-company-profile-table--padding-top: 40;
    width: 50%;
    border-collapse: collapse;
    margin: calc(var(--original-company-profile-table--padding-top) / var(--original-body--width) * 100%) auto;
}

.company-profile__table th,
.company-profile__table td {
    --original-company-profile-table-th-td--padding: 15;
    padding: calc(var(--original-company-profile-table-th-td--padding) / (var(--original-body--width ) * 0.5) * 100%);
    border: 1px solid #ddd;
    text-align: left;
}

.company-profile__table th {
    width: 20%;
    background-color: #f5f5f5;
    font-weight: bold;
}

.company-profile__table td {
    color: #666;
    line-height: 1.6;
}

.privacy-policy {
    --original-privacy-policy--height: 400;
    --original-privacy-policy--padding: 40;
    width: 100%;
    aspect-ratio: calc(var(--original-body--width)/var(--original-privacy-policy--height));
    background-color: #f5f5f5;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: calc(var(--original-privacy-policy--padding) / var(--original-body--width) * 100%) 0;
}

.privacy-policy__content {
    --original-privacy-policy-content--width: 1200;
    --original-privacy-policy-content--padding: 40;
    width: calc(var(--original-privacy-policy-content--width) / var(--original-body--width) * 100%);
    padding: calc(var(--original-privacy-policy-content--padding) / var(--original-body--width) * 100%);
    height: 50%;
    overflow-y: auto;
    background-color: #ffffff;
}

.privacy-policy__content h3 {
    --original-privacy-policy-content-h3--margin-top: 30;
    --original-privacy-policy-content-h3--margin-bottom: 15;
    margin: calc(var(--original-privacy-policy-content-h3--margin-top) / var(--original-body--width) * 100%) 0 calc(var(--original-privacy-policy-content-h3--margin-bottom) / 1440 * 100%);
    font-size: 1.2em;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.privacy-policy__content p {
    --original-privacy-policy-content-p--margin-bottom: 20;
    margin: 0 0 calc(var(--original-privacy-policy-content-p--margin-bottom) / var(--original-body--width) * 100%);
    text-align: left;
    line-height: 1.6;
}

/* プライバシーポリシー内のul, liをa) b) c)...で表示 */
.privacy-policy__content ul {
    list-style: none;
    padding-left: 2em;
    margin-bottom: 1.5em;
    text-align: left;
}

.privacy-policy__content ul li {
    position: relative;
    padding-left: 2em;
    margin-bottom: 0.5em;
    text-indent: 0;
    text-align: left;
}

.privacy-policy__content ul li::before {
    content: counter(policy-list, lower-alpha) ") ";
    counter-increment: policy-list;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    color: #333;
}

.privacy-policy__content ul {
    counter-reset: policy-list;
}

/* スクロールバーのカスタマイズ */
.privacy-policy__content::-webkit-scrollbar {
    width: 8px;
}

.privacy-policy__content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.privacy-policy__content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.privacy-policy__content::-webkit-scrollbar-thumb:hover {
    background: #555;
}


