/* ==============================================
   インパックについて（02_*）
   ============================================== */


/* Philosophy Box（企業理念）
--------------------------------------------- */
.philosophy-box {
    display: grid;
    grid-template-columns: 340px minmax(0, 960px);
    gap: 60px 80px;
    margin-bottom: 80px;
}

.philosophy-box .section-header p {
    white-space: nowrap;
}

.philosophy-label {
    grid-column: 1 / -1;
}

.philosophy-label .section-en {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.philosophy-label h2 {
    font-size: clamp(1.5rem, calc(1.286rem + 0.857vw), 2rem);
    font-weight: 700;
    color: var(--color-primary);
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-secondary);
    display: inline-block;
}

.philosophy-items {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.philosophy-item {
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.philosophy-item:last-child {
    border-bottom: none;
}

.philosophy-item h3 {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--color-primary);
    padding-left: 20px;
    margin-bottom: 8px;
    border-left: 5px solid #B2C1DB;
}

.philosophy-mission {
    padding-left: 25px;
    font-size: clamp(1.25rem, calc(1.03rem + 0.939vw), 1.875rem); /* min:20px max:30px */
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.philosophy-item p:not(.philosophy-mission) {
    padding-left: 25px;
    font-size: 1.125rem;
    line-height: 1.8;
    font-weight: 500;
}

.philosophy-mission-body {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 25px;
}

.philosophy-mission-body img {
    width: 120px;
    flex-shrink: 0;
}

.philosophy-mission-body p {
    padding-left: 0;
}


/* Message Wrap（代表メッセージ）
--------------------------------------------- */
.message-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    padding: 60px;
    border: 5px solid var(--color-border-light);
    border-radius: 4px;
}

.message-image {
    width: 280px;
}

.message-image img {
    width: 100%;
    height: auto;
    display: block;
}

.message-image-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-color: #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.875rem;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.message-catch {
    font-size: clamp(1.25rem, calc(1.03rem + 0.939vw), 1.875rem); /* min:20px max:30px */
    font-weight: 800;
    color: var(--color-primary);
}

.message-body p {
    line-height: 2;
}

.message-body p + p {
    margin-top: 1.5em;
}

.message-sign {
    margin-top: 30px;
    padding-right: 20px;
    text-align: right;
    border-right: 5px solid var(--color-secondary);
}

.message-sign-date {
    color: #696969;
    margin-bottom: 4px;
}

.message-sign-company {
    font-size: 1.0625rem;
    font-weight: 900;
    margin-bottom: 2px;
}

.message-sign-name {
    font-size: 1.0625rem;
    font-weight: 500;
}


/* Blog Banner
--------------------------------------------- */
.president_blog-wrap {
    background-color: var(--color-bg-beige);
    margin-bottom: 0;
}

.page-slug-greeting .site-footer {
    margin-top: 0;
}

.page-slug-greeting .footer-banner-area {
    padding-top: 0;
}

.president_blog-inner {
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding: 60px var(--content-padding-inline);
    display: flex;
    align-items: center;
    gap: 80px;
}

.president_blog-inner .section-header {
    flex-shrink: 0;
    width: 260px;
}

.president_blog-inner .section-header h2 {
    margin-bottom: 0;
}

.president_blog-inner .section-header h2::after {
    margin-top: 20px;
}

.blog-banner {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    transition: opacity 0.2s;
}

.blog-banner:hover {
    opacity: 0.8;
}

.blog-banner-img {
    width: 380px;
    height: 145px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 5px;
}

.blog-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-banner-text {
    padding: 20px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.blog-banner-text h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.blog-banner-text h4::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('../images/footer_arrow_red.svg') no-repeat center / contain;
    flex-shrink: 0;
}

.blog-banner-text p {
    font-size: 0.875rem;
    color: var(--color-text);
}


/* ==============================================
   インパックについて 共通レイアウト
   ============================================== */

/* 下層ページの section-header h2 は最大42px
--------------------------------------------- */
.sub-content .section-header h2 {
    font-size: clamp(1.75rem, calc(1.266rem + 2.066vw), 2.625rem); /* min:28px max:42px */
    margin-bottom: 0;
}

/* section-intro：左=セクション見出し／右=コンテンツ の2カラムレイアウト
   使用ページ: 環境への取り組み / 拠点情報 / 能登事業所
--------------------------------------------- */
.section-intro {
    display: grid;
    grid-template-columns: 340px minmax(0, 960px);
    gap: 60px 80px;
    margin-bottom: 80px;
    align-items: start;
}

html[lang^="en"] .is-noto .section-intro,
html[lang^="zh"] .is-noto .section-intro {
    margin-bottom: 0;
}

/* 拠点情報：左（見出し固定幅）＋右（コンテンツ全体）の2カラム */
.location-layout {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.location-layout-left {
    width: 340px;
    flex-shrink: 0;
}

.location-layout-right {
    flex: 1;
    min-width: 0;
}

.location-intro-text {
    margin-bottom: 40px;
}


/* ==============================================
   会社概要（02_3_company）
   ============================================== */

/* スマホのみ改行（br.sp-br）
--------------------------------------------- */
.sp-br { display: none; }

/* 会社概要テーブル
--------------------------------------------- */
.company-table > div {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
}

.company-table dt {
    font-weight: 700;
    padding: 20px 10px;
    border-bottom: 1px solid var(--color-secondary);
}

.company-table dd {
    margin: 0;
    padding: 20px 10px;
    line-height: 1.8;
    border-bottom: 1px solid #BCBCBC;
}

.company-table > div:first-child dt {
    border-top: 1px solid var(--color-secondary);
}

.company-table > div:first-child dd {
    border-top: 1px solid #BCBCBC;
}


/* 沿革セクション（全幅ベージュ背景）
--------------------------------------------- */
.profile-history {
    background-color: var(--color-bg-beige);
}

.profile-history-inner {
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding: 120px 0 40px;
}


/* 沿革タイムライン
--------------------------------------------- */
.history-list {
    position: relative;
}

.history-list::before {
    content: '';
    position: absolute;
    left: 115px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background-color: var(--color-secondary);
}

.history-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 0 50px;
    padding: 20px 0;
    position: relative;
}

.history-item::before {
    content: '';
    position: absolute;
    left: 105px;
    top: 24px;
    width: 21px;
    height: 21px;
    background: url('../images/about/enkaku_circle.svg') no-repeat center / contain;
    z-index: 1;
}

.history-item dt {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.3;
    white-space: nowrap;
}

.history-item dt span {
    font-size: clamp(1.375rem, calc(1.243rem + 0.563vw), 1.75rem); /* min:22px max:28px */
}

.history-item dd {
    margin-left: 10px;
    padding-top: 2px;
    line-height: 1.8;
}

.history-note {
    text-align: right;
    margin-top: 20px;
}


/* ==============================================
   環境への取り組み（02_2_environment）
   ============================================== */

/* イントロ右カラム
--------------------------------------------- */
.intro-catch {
    font-size: clamp(1.125rem, calc(0.964rem + 0.643vw), 1.5rem);
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.intro-text {
    line-height: 2;
    color: var(--color-text);
}


/* 取り組みカード
--------------------------------------------- */
.env-items {
    display: flex;
    flex-direction: column;
    gap: 50px;

}

.env-item {
    display: grid;
    grid-template-columns: 1fr 490px;
    border: 8px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.env-item-head {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 40px 70px 30px 0;
}

.env-item-badge {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    background-color: #3B9927;
    color: #fff;
    border-radius: 0 50px 50px 0;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.env-item-badge span {
    font-size: clamp(1.25rem, calc(1.074rem + 0.751vw), 1.75rem); /* min:20px max:28px */
    line-height: 1;
}

.env-item-head h3 {
    font-size: clamp(1.375rem, calc(1.2rem + 0.8vw), 1.875rem);
    font-weight: 700;
    line-height: 1.5;
}

.env-item-body p:not(.env-item-badge) {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text);
    padding: 0 70px 30px 40px;
}

.env-item-sdgs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding: 0 0 40px 40px;
}

.env-item-sdgs img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.env-item-photo {
    width: 490px;
    overflow: hidden;
}

.env-item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.env-item-photo--logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.env-item-photo--logo img {
    height: auto;
    object-fit: contain;
}


/* ==============================================
   拠点情報（02_4_location）
   ============================================== */

/* 日本地図
--------------------------------------------- */
.location-japan-map {
    position: relative;
    margin-bottom: 60px;
    background-color: var(--color-bg-gray);
}

.location-japan-map-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    padding: 30px 50px;
}

.location-japan-map-img {
    width: 100%;
    height: auto;
    display: block;
}

.location-japan-map-note {
    position: absolute;
    right: 0;
    bottom: 0;
    color: var(--color-white);
    padding: 10px 20px;
    background-color: var(--color-secondary);
    width: fit-content;
}

/* 拠点ピン
--------------------------------------------- */
.map-pin {
    --stem: 0px;
    --label-x: 0px; /* 吹き出しのみ水平オフセット（正=右、ドット位置は変わらない） */
    position: absolute;
    transform: translate(calc(-50% + var(--label-x)), calc(-100% - var(--stem) - 10px));
    display: inline-block;
    background: var(--color-secondary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    line-height: 1.5;
    transition: opacity 0.2s;
    z-index: 2;
}

/* 縦ステム（ラベル下端から地図ドットまで） */
.map-pin::before {
    content: '';
    position: absolute;
    top: 100%;
    left: calc(50% - var(--label-x));
    transform: translateX(-50%);
    width: 2px;
    height: calc(var(--stem) + 10px);
    background: var(--color-secondary);
}

/* 波紋ドット（地理的位置） */
.map-pin::after {
    content: '';
    position: absolute;
    top: calc(100% + var(--stem) + 10px);
    left: calc(50% - var(--label-x));
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-secondary);
    animation: map-pin-pulse 2s ease-out infinite;
}

@keyframes map-pin-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(219, 0, 42, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(219, 0, 42, 0); }
    100% { box-shadow: 0 0 0 0   rgba(219, 0, 42, 0); }
}

.map-pin:hover {
    opacity: 0.8;
}

/* ラベルをドットの下に配置（逆向き） */
.map-pin--flip {
    transform: translate(calc(-50% + var(--label-x)), calc(var(--stem) + 10px));
}

.map-pin--flip::before {
    top: auto;
    bottom: 100%;
}

.map-pin--flip::after {
    top: auto;
    bottom: calc(100% + var(--stem) + 10px);
}

/* 東京
--------------------------------------------- */
.map-pin--tokyo {
    background: #93442A;
}

.map-pin--tokyo::before {
    background: #93442A;
}

.map-pin--tokyo::after {
    background: #93442A;
    animation-name: map-pin-pulse-tokyo;
}

@keyframes map-pin-pulse-tokyo {
    0%   { box-shadow: 0 0 0 0    rgba(147, 68, 42, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(147, 68, 42, 0); }
    100% { box-shadow: 0 0 0 0    rgba(147, 68, 42, 0); }
}

/* 仙台
--------------------------------------------- */
.map-pin--sendai {
    background: #0076B2;
}

.map-pin--sendai::before {
    background: #0076B2;
}

.map-pin--sendai::after {
    background: #0076B2;
    animation-name: map-pin-pulse-sendai;
}

@keyframes map-pin-pulse-sendai {
    0%   { box-shadow: 0 0 0 0    rgba(0, 118, 178, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(0, 118, 178, 0); }
    100% { box-shadow: 0 0 0 0    rgba(0, 118, 178, 0); }
}

/* 名古屋
--------------------------------------------- */
.map-pin--nagoya {
    background: #86BC43;
}

.map-pin--nagoya::before {
    background: #86BC43;
}

.map-pin--nagoya::after {
    background: #86BC43;
    animation-name: map-pin-pulse-nagoya;
}

@keyframes map-pin-pulse-nagoya {
    0%   { box-shadow: 0 0 0 0    rgba(134, 188, 67, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(134, 188, 67, 0); }
    100% { box-shadow: 0 0 0 0    rgba(134, 188, 67, 0); }
}

/* 大阪
--------------------------------------------- */
.map-pin--osaka {
    background: #EF8200;
}

.map-pin--osaka::before {
    background: #EF8200;
}

.map-pin--osaka::after {
    background: #EF8200;
    animation-name: map-pin-pulse-osaka;
}

@keyframes map-pin-pulse-osaka {
    0%   { box-shadow: 0 0 0 0    rgba(239, 130, 0, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(239, 130, 0, 0); }
    100% { box-shadow: 0 0 0 0    rgba(239, 130, 0, 0); }
}

/* 福岡
--------------------------------------------- */
.map-pin--fukuoka {
    background: #EA6DA4;
}

.map-pin--fukuoka::before {
    background: #EA6DA4;
}

.map-pin--fukuoka::after {
    background: #EA6DA4;
    animation-name: map-pin-pulse-fukuoka;
}

@keyframes map-pin-pulse-fukuoka {
    0%   { box-shadow: 0 0 0 0    rgba(234, 109, 164, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(234, 109, 164, 0); }
    100% { box-shadow: 0 0 0 0    rgba(234, 109, 164, 0); }
}

/* 能登事業所
--------------------------------------------- */
.map-pin--noto {
    background: var(--color-primary);
}

.map-pin--noto::before {
    background: var(--color-primary);
}

.map-pin--noto::after {
    background: var(--color-primary);
    animation-name: map-pin-pulse-noto;
}

@keyframes map-pin-pulse-noto {
    0%   { box-shadow: 0 0 0 0    rgba(0, 50, 136, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(0, 50, 136, 0); }
    100% { box-shadow: 0 0 0 0    rgba(0, 50, 136, 0); }
}

/* 拠点カード一覧
--------------------------------------------- */
.location-cards {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* 個別カード
--------------------------------------------- */
.location-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 8px solid var(--color-border-light);
    border-radius: 4px;
    overflow: hidden;
    min-height: 320px;
    scroll-margin-top: 90px;
}

/* 左カラム：テキスト情報
--------------------------------------------- */
.location-card-info {
    padding: 30px 48px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location-card-name {
    font-size: clamp(1.25rem, calc(1.071rem + 0.714vw), 1.625rem);
    font-weight: 700;
    color: var(--color-primary);
}

.location-card-address {
    line-height: 1.9;
    color: var(--color-text);
}

/* TEL/FAX リスト
--------------------------------------------- */
.location-card-tel {
    display: flex;
    flex-direction: column;
}

.location-card-tel >  p {
    color: var(--color-primary);
    font-weight: 700;
}

.location-card-tel > div + dt {
    margin-top: 20px;
}

.location-card-tel > div {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0 8px;
}


.location-card-tel dt {
    font-weight: 700;
    padding-top: 2px;
}

.location-card-tel dd {
    margin: 0;
    line-height: 1.8;
    font-weight: 700;
}

/* iOS Safari 電話番号自動リンク化の下線・色をリセット */
.location-card-tel a {
    text-decoration: none;
    color: inherit;
}

/* ボタングループ
--------------------------------------------- */
.location-card-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

/* アウトライン（能登事業所詳細）
--------------------------------------------- */
.btn-more--outline {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.btn-more--outline::after {
    background-image: url('../images/nav_arrow_red.svg');
}

.btn-more--outline:hover {
    background: var(--color-secondary);
    color: var(--color-white);
    opacity: 1;
}

.btn-more--outline:hover::after {
    background-image: url('../images/banner_arrow_wh.svg');
}

/* 右カラム：地図
--------------------------------------------- */
.location-card-map {
    position: relative;
    min-height: 320px;
}

.location-card-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}


/* ==============================================
   能登事業所（02_5_noto）
   ============================================== */

/* 工場写真：直下の strength セクションに乗り上げる */
.noto-intro-photo {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin-inline: auto;
    margin-bottom: -250px;
    padding-inline: 20px;
}

.noto-intro-photo img {
    width: 100%;
    height: auto;
    display: block;
}

/* 3つの強み：full-bleed 右余白追加 & 縦並びカード */
.noto-strength {
    padding-top: 400px;
    padding-right: max(20px, calc((100vw - 1400px) / 2));
}


.noto-strength .strength-content {
    width: auto;
    flex: 1;
    min-width: 0;
}

/* カードリスト */
.noto-strength-grid {
    display: flex;
    flex-direction: column;
    gap: 100px;
    counter-reset: strength;
}

/* カード1枚：アイコン左・テキスト右の横並び */
.noto-strength-grid li {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    background: var(--color-white);
    border-radius: 15px;
    padding: 30px;
    counter-increment: strength;
}

/* 右上 STRENGTHS ラベル */
.noto-strength-grid li::before {
    content: 'STRENGTHS';
    position: absolute;
    top: -56px;
    right: 16px;
    font-size: 0.675rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-white);
    line-height: 1;
}

/* 右上 連番 */
.noto-strength-grid li::after {
    content: counter(strength, decimal-leading-zero);
    position: absolute;
    top: -37px;
    right: 8px;
    font-size: 4.625rem;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1;
}

/* アイコン丸背景 */
.noto-strength-icon {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: grid;
    place-items: center;
}

.noto-strength-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}
.noto-strength-grid li:nth-child(3) .noto-strength-icon img {
    width: 50px;
    height: 50px;
}

/* テキストエリア */
.noto-strength-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin-top: 5px;
}

.noto-strength-text h3 {
    font-size: clamp(1.375rem, calc(0.671rem + 1.878vw), 1.5rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.5;
    text-decoration: underline;
    text-decoration-color: rgba(219, 0, 42, 0.2);
    text-decoration-thickness: 14px;
    text-underline-offset: -5px;
    text-decoration-skip-ink: none;
}

.noto-strength-text p {
    font-size: clamp(0.9375rem, calc(0.894rem + 0.188vw), 1.0625rem);
    line-height: 1.8;
    color: var(--color-text);
}

/* 困難を乗り越えセクション */
.noto-story {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 800px;
    margin-inline: auto;
    gap: 60px;
    align-items: center;
    padding-top: 90px;
    margin-bottom: 130px;
    padding-inline: 20px;
}

html[lang^="en"] .noto-story,
html[lang^="zh"] .noto-story {
    padding-top: 45px;
    margin-bottom: 0;
    padding-inline: 0;
}

.noto-story h2 {
    font-size: clamp(1.5rem, calc(1.286rem + 0.857vw), 2rem);
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 24px;
    line-height: 1.4;
}

.noto-story-text p {
    line-height: 2;
}

.noto-story-text p + p {
    margin-top: 1.5em;
}


/* 施設概要・アクセス 共通見出し */
.noto-section-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-primary);
    padding-left: 20px;
    border-left: 5px solid #B2C1DB;
    margin-bottom: 40px;
}

/* 施設概要テーブル */

.noto-facility-table dl > div {
    display: grid;
    grid-template-columns: 120px 1fr;
}

html[lang^="en"] .noto-facility-table dl > div {
    grid-template-columns: 220px 1fr;
}

.noto-facility-table dl > div:first-child dt {
    border-top: 1px solid var(--color-secondary);
}

.noto-facility-table dl > div:first-child dd {
    border-top: 1px solid #BCBCBC;
}

.noto-facility-table dt {
    font-weight: 700;
    padding: 30px 20px;
    border-bottom: 1px solid var(--color-secondary);
}

.noto-facility-table dd {
    margin: 0;
    padding: 30px 20px;
    line-height: 1.8;
    border-bottom: 1px solid #BCBCBC;
}

.noto-facility-table {
    margin-bottom: 60px;
}

/* アクセスマップ */

.noto-access-map-frame {
    position: relative;
    height: 380px;
    margin-bottom: 30px;
}

.noto-access-map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.noto-access-btn {
    display: flex;
    margin-left: auto;
    width: fit-content;
}

/* 施設概要・アクセス 全幅背景 */
.noto-access-wrap {
    background-color: #F9F3ED;
}

.noto-access-inner {
    max-width: 1400px;
    margin-inline: auto;
    padding: 80px 0px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px 80px;
    align-items: start;
    padding-inline: 20px;
}

/* フッター余白なし */
.page-slug-noto .site-footer {
    margin-top: 0;
}

.page-slug-noto .sub-content {
    padding-inline: 0;
    padding-bottom: 0;
}

.page-slug-noto .section-intro {
    padding-inline: 20px;
}





/* ==============================================
   Responsive - Tablet (〜1024px)
   ============================================== */
/* ==============================================
   Responsive - Hamburger (〜1200px)
   ============================================== */
@media (max-width: 1200px) {

    .profile-history-inner {
        padding-top: 60px;
        padding-inline: 20px;
    }

}


/* ==============================================
   Responsive - Tablet (〜1024px)
   ============================================== */
@media (max-width: 1024px) {

    /* 企業理念：2列→1列 */
    .philosophy-box {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .philosophy-items {
        grid-column: auto;
    }

    /* 共通2カラムレイアウト：1列に */
    .section-intro {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    /* 代表メッセージ：2列→1列 */
    .message-wrap {
        grid-template-columns: 250px 1fr;
        gap: 40px;
        padding: 40px;
    }

    .message-image {
        width: 100%;
    }

    /* 代表ブログバナー */
    .president_blog-inner {
        flex-direction: column;
        gap: 40px;
    }

    .president_blog-inner .section-header {
        width: 100%;
    }

    /* 環境への取り組み：2列→1列 */
    .env-item {
        grid-template-columns: 1fr;
    }

    .env-item-photo {
        width: 100%;
        height: auto;
    }

    /* 拠点情報：横並び→縦積み */
    .location-layout {
        flex-direction: column;
        gap: 40px;
    }

    .location-layout-left {
        width: 100%;
    }

    .location-card-map {
        min-height: 280px;
    }

    /* 能登事業所：困難を乗り越えセクション */
    .noto-story {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 10px;
        margin-bottom: 70px;
    }


    /* 工場写真：乗り上げ解除 */
    .noto-intro-photo {
        margin-bottom: -20px;
    }

    /* 3つの強み：padding-top解除 */
    .noto-strength {
        padding-top: 70px;
    }

    /* 施設概要・アクセス：2カラム→1カラム */
    .noto-access-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-inline: auto;
    }
}


/* ==============================================
   Responsive - Mobile (〜768px)
   ============================================== */
@media (max-width: 768px) {
    .noto-story {
        padding-inline: 20px;
    }

    .message-wrap {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .location-japan-map-wrap {
        display: none;
    }

    /* 地図ピン・注記非表示（スマホは地図画像のみ表示） */
    .map-pin,
    .location-japan-map-note {
        display: none;
    }

    /* 拠点カード：2列→1列 */
    .location-card {
        grid-template-columns: 1fr;
    }

    .location-card-info {
        padding: 30px 25px;
    }

    /* 沿革タイムライン */
    .history-item {
        grid-template-columns: 90px 1fr;
        gap: 0 16px;
    }

    .history-list::before {
        left: 93px;
        bottom: 0;
    }

    .history-item::before {
        left: 84px;
    }

    .history-item dt {
        white-space: nowrap;
    }

    .sp-br { display: inline; }

    .company-table > div {
        grid-template-columns: 1fr;
    }

    .company-table > div:first-child dd {
        border-top: none;
    }

    .company-table dt {
        padding: 10px;
        border-top: 1px solid var(--color-secondary);
        border-bottom: 1px solid #BCBCBC;
    }

    .company-table dd {
        padding: 10px;
        border-bottom: none;
    }

    .noto-facility-table dl > div,
    html[lang^="en"] .noto-facility-table dl > div {
        grid-template-columns: 1fr;
    }

    .noto-facility-table dl > div:first-child dd {
        border-top: none;
    }

    .noto-facility-table dt {
        padding: 10px;
        border-top: 1px solid var(--color-secondary);
        border-bottom: 1px solid #BCBCBC;
    }

    .noto-facility-table dd {
        padding: 10px;
        border-bottom: none;
    }

    /* ブログバナー：縦積み */
    .blog-banner {
        grid-template-columns: 1fr;
    }

    .blog-banner-img {
        width: 100%;
        height: auto;
        border-radius: 5px;
    }

    /* 能登アクセスセクション */
    .noto-access-section {
        padding: 60px 0;
    }


    /* 環境への取り組み：badge→h3縦積み・右余白削減・写真を上に */
    .env-item-head {
        flex-direction: column;
        padding: 30px 0 20px;
    }
    
    .env-item-head h3 {
        padding: 0 20px;
    }

    .env-item-body p:not(.env-item-badge) {
        padding: 0 20px 20px 20px;
    }

    .env-item-sdgs {
        padding: 0 0 20px 20px;
    }

    .env-item-sdgs img {
        width: 80px;
        height: auto;
}

    .env-item-photo {
        order: -1;
    }

    /* 能登：3つの強み カード縦積み */
    .noto-strength-grid li {
        flex-direction: column;
        align-items: center;
    }

    .noto-strength-text {
        width: 100%;
    }

    /* 代表メッセージ：写真全幅・署名左寄せ */
    .message-image {
        width: 100%;
    }

    .message-sign {
        padding-right: 0;
        padding-left: 20px;
        text-align: left;
        border-right: none;
        border-left: 5px solid var(--color-secondary);
    }

}
