/* company.css */
.sec-greeting {
    background-color: var(--color-bg);
    position: relative;
    overflow: hidden;
}

/* ウォーターマーク（右下端揃え・右にはみ出し）
   1440px未満：非表示 / 1440～1599px：-15% / 1600px以上：-10% */
.sec-greeting::before {
    content: '';
    position: absolute;
    display: none;
    right: -15%;
    bottom: 0;
    height: 90%;
    aspect-ratio: 3 / 4;
    background-image: url('../images/tree-watermark-about--reverse.png');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    mix-blend-mode: multiply;
    opacity: 0.035;
    pointer-events: none;
    z-index: 0;
}

/* ウォーターマーク（左下端揃え・左にはみ出し）
   1440px未満：非表示 / 1440～1599px：-15% / 1600px以上：-10% */
.sec-greeting::after {
    content: '';
    position: absolute;
    display: none;
    left: -15%;
    bottom: 0;
    height: 90%;
    aspect-ratio: 3 / 4;
    background-image: url('../images/tree-watermark-about.png');
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: contain;
    mix-blend-mode: multiply;
    opacity: 0.035;
    pointer-events: none;
    z-index: 0;
}

/* 1440px以上：ウォーターマーク表示（-15%） */
@media (min-width: 1440px) {
    .sec-greeting::before,
    .sec-greeting::after {
        display: block;
    }
}

/* 1600px以上：はみ出しを -10% に */
@media (min-width: 1600px) {
    .sec-greeting::before {
        right: -10%;
    }
    .sec-greeting::after {
        left: -10%;
    }
}

.sec-greeting > * {
    position: relative;
    z-index: 1;
}

.sec-greeting__inner {
    /* 最大幅は .section-inner で管理 */
}

.sec-greeting__body {
    max-width: 880px;
    margin: 0 auto;
    background-color: #fff;
    border: 2px solid var(--color-brown-mid);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
}

@media (min-width: 576px) {
    .sec-greeting__body {
        padding: 2.5rem 2rem;
    }
}

@media (min-width: 1024px) {
    .sec-greeting__body {
        padding: 3rem 2rem;
    }
}

.sec-greeting__text {
    font-size: 0.925rem;
    line-height: 36px;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    position: relative;
}

/* 各行下に薄めの緑の破線罫線を敷く。
   疑似要素をテキスト背面に重ね、maskで「行下端（縦）×破線（横）」の交わりだけ残す。
   疑似要素なのでテキスト本体には影響しない。行ピッチは line-height に一致させる。 */
.sec-greeting__text::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-color: rgba(76, 133, 81, 0.4);
    /* 縦：行ピッチ36pxのうち下端1.5pxのみ、横：4pxごとの破線 */
    -webkit-mask-image:
        linear-gradient(to bottom, transparent calc(36px - 1.5px), #000 0),
        repeating-linear-gradient(to right, #000 0 4px, transparent 4px 8px);
    mask-image:
        linear-gradient(to bottom, transparent calc(36px - 1.5px), #000 0),
        repeating-linear-gradient(to right, #000 0 4px, transparent 4px 8px);
    -webkit-mask-size: 100% 36px, 100% 100%;
    mask-size: 100% 36px, 100% 100%;
    -webkit-mask-repeat: repeat, repeat;
    mask-repeat: repeat, repeat;
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

@media (min-width: 768px) {
    .sec-greeting__text {
        font-size: 0.95rem;
        line-height: 40px;
    }
    .sec-greeting__text::after {
        -webkit-mask-image:
            linear-gradient(to bottom, transparent calc(40px - 1.5px), #000 0),
            repeating-linear-gradient(to right, #000 0 4px, transparent 4px 8px);
        mask-image:
            linear-gradient(to bottom, transparent calc(40px - 1.5px), #000 0),
            repeating-linear-gradient(to right, #000 0 4px, transparent 4px 8px);
        -webkit-mask-size: 100% 40px, 100% 100%;
        mask-size: 100% 40px, 100% 100%;
    }
}

@media (min-width: 1200px) {
    .sec-greeting__text {
        font-size: 1rem;
    }
}

/* 本文中のキーワード強調（color-primary＋太字） */
.keyword-primary {
    color: var(--color-primary);
    font-weight: 700;
}

/* 本文中のキーワード強調（ロープアクセス系：logo-blue＋太字） */
.keyword-blue {
    color: var(--color-logo-blue);
    font-weight: 700;
}

.sec-greeting__sign {
    clear: both;
    text-align: right;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-brown);
    margin-top: var(--spacing-md);
    margin-bottom: 0;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-border);
}

/* 氏名は一塊で折り返す */
.sec-greeting__sign-name {
    white-space: nowrap;
    display: block;
}

@media (min-width: 475px) {
    .sec-greeting__sign-name {
        display: inline;
        margin-left: 1em;
    }
}

/* 代表挨拶 コンテンツ（body内に画像を包含しfloat回り込み） */
.sec-greeting__content {
    /* body 1つだけを内包。レイアウトは body 内の float で処理 */
}

/* float解除（画像がテキストより長い場合にカードが潰れないよう） */
.sec-greeting__body::after {
    content: '';
    display: block;
    clear: both;
}

/* 代表画像：テキストに回り込ませる（罫線より前面） */
.sec-greeting__image {
    float: right;
    width: 40%;
    max-width: 220px;
    margin: 0 0 1rem 1.25rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .sec-greeting__image {
        width: 240px;
        max-width: 240px;
        margin: 0 0 1.25rem 1.75rem;
    }
}

.sec-greeting__image-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: 35% center;
    border-radius: var(--radius-md);
    display: block;
}

/* 代表挨拶 キャッチコピー（body内・左寄せ大見出し） */
.sec-greeting__catch {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
    color: var(--color-brown);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    text-indent: -0.5em;
}

.sec-greeting__catch-accent {
    color: var(--color-primary);
}

@media (min-width: 576px) {
    .sec-greeting__catch {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .sec-greeting__catch {
        font-size: 2.5rem;
    }
}

/* 会社概要テーブル */
.sec-company-info {
    background-color: var(--color-bg-light);
    position: relative;
    overflow: hidden;
}

/* ウォーターマーク（左下端揃え・左にはみ出し）
   1440px未満：非表示 / 1440～1599px：-15% / 1600px以上：-10% */
.sec-company-info::before {
    content: '';
    position: absolute;
    display: none;
    left: -15%;
    bottom: 0;
    height: 90%;
    aspect-ratio: 3 / 4;
    background-image: url('../images/tree-watermark-company.png');
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: contain;
    mix-blend-mode: multiply;
    opacity: 0.035;
    pointer-events: none;
    z-index: 0;
}

/* ウォーターマーク（右下端揃え・右にはみ出し）
   1440px未満：非表示 / 1440～1599px：-15% / 1600px以上：-10% */
.sec-company-info::after {
    content: '';
    position: absolute;
    display: none;
    right: -15%;
    bottom: 0;
    height: 90%;
    aspect-ratio: 3 / 4;
    background-image: url('../images/tree-watermark-company.png');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    mix-blend-mode: multiply;
    opacity: 0.035;
    pointer-events: none;
    z-index: 0;
}

/* 1440px以上：ウォーターマーク表示（-15%） */
@media (min-width: 1440px) {
    .sec-company-info::before,
    .sec-company-info::after {
        display: block;
    }
}

/* 1600px以上：はみ出しを -10% に */
@media (min-width: 1600px) {
    .sec-company-info::before {
        left: -10%;
    }
    .sec-company-info::after {
        right: -10%;
    }
}

.sec-company-info > * {
    position: relative;
    z-index: 1;
}

.sec-company-info__inner {
    max-width: 880px;
    margin: 0 auto;
}

/* 見出しを .section-inner と同じ段階的最大幅で左端揃え */
.sec-company-info > .sec-heading {
    max-width: var(--section-width-sm);
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .sec-company-info > .sec-heading {
        max-width: var(--section-width-md);
    }
}

@media (min-width: 1024px) {
    .sec-company-info > .sec-heading {
        max-width: var(--section-width-xl);
    }
}

/* 会社情報テーブル（ツートンカラー＋角丸＋外枠太線） */
.company-info__list {
    max-width: var(--section-width-md);
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--color-border);
}

@media (min-width: 1024px) {
    .company-info__list {
        max-width: 880px;
    }
}

/* 行 */
.company-info__row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-bottom: 1px solid var(--color-border);
}

.company-info__row:last-child {
    border-bottom: none;
}

/* ラベル列（dt）：濃いめベージュ */
.company-info__label {
    flex: 0 0 36%;
    display: flex;
    align-items: center;
    padding: 1rem 0.875rem;
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--color-title);
    letter-spacing: 0.05em;
    line-height: 1.5;
    background-color: var(--color-bg-warm);
    border-right: 1px solid var(--color-border);
}

@media (min-width: 576px) {
    .company-info__label {
        padding: 1.125rem 1rem;
    }
}

@media (min-width: 768px) {
    .company-info__label {
        flex: 0 0 220px;
        padding: 1.25rem;
        font-size: 0.95rem;
        letter-spacing: 0.06em;
    }
}

@media (min-width: 1024px) {
    .company-info__label {
        padding: 1.5rem;
    }
}

/* 値列（dd）：アイボリー */
.company-info__value {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 1rem 0.875rem;
    font-size: 0.925rem;
    color: var(--color-text);
    line-height: 1.7;
    letter-spacing: 0.04em;
    background-color: var(--color-bg);
}

@media (min-width: 576px) {
    .company-info__value {
        padding: 1.125rem 1rem;
    }
}

@media (min-width: 768px) {
    .company-info__value {
        padding: 1.25rem;
        font-size: 0.95rem;
    }
}

@media (min-width: 1024px) {
    .company-info__value {
        padding: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .company-info__label,
    .company-info__value {
        font-size: 1rem;
    }
}

.company-info__zip {
    display: inline-block;
    margin-right: 0.5rem;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: 0.04em;
}

.company-info__tel {
    color: var(--color-primary-dark);
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.company-info__tel:hover {
    color: var(--color-primary);
}

/* ========================================
   アクセスMAP
======================================== */
.sec-access {
    background-color: var(--color-primary-dark);
}

.sec-access__inner {
    /* 最大幅は .section-inner で管理 */
}

/* 左右レイアウト */
.access__inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 880px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .access__inner {
        flex-direction: row;
        align-items: stretch;
        gap: 3rem;
    }
}

/* 左：住所・交通手段 */
.access__info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .access__info {
        flex: 1;
    }
}

/* 住所 */
.access__address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    letter-spacing: 0.04em;
}

.access__address__zip {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.access__address i {
    color: var(--color-accent);
    flex-shrink: 0;
    line-height: 1;
    transform: translateX(0.1px);
}

/* 交通手段リスト */
.access__transport {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.access__transport-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.access__transport-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    flex-shrink: 0;
    border-radius: 50%;
}

.access__transport-icon i {
    line-height: 1;
    transform: translateX(0.1px);
}

.access__transport-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.125rem;
}

.access__transport-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--color-accent);
    line-height: 1;
}

.access__transport-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    letter-spacing: 0.04em;
}

/* 右：マップ */
.access__map-outer {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .access__map-outer {
        flex: 1;
        min-width: 0;
    }
}

.access__map-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.access__map-wrap:hover {
    border-color: var(--color-accent);
}

@media (min-width: 768px) {
    .access__map-wrap {
        aspect-ratio: unset;
        flex: 1;
        min-height: 0;
    }
}

.access__map-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
