@charset "utf-8";
/*========================================================================================
  tacs-responsive.css
  tacs-pc.css の「後」に読み込んで、スマホ・タブレット対応を足すためのCSSです。
  tacs-pc.css 自体は変更していないので、他のページには影響しません。
  1361px以上の幅では、従来のPC表示とほぼ同じです。

  ブレークポイント
    1360px以下 : ノートPC・タブレット（固定幅を可変に）
    1024px以下 : タブレット縦・スマホ（ヘッダーを縦並び、作品カードを常時表示）
    640px以下  : スマホ
========================================================================================*/


/* ---------------------------------------------------------
   全幅共通
--------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* Pick up！の画像：幅は変わっても高さは180pxで揃える（はみ出す部分は切り抜き） */
.details li img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* トップページ専用：ページ表示時のフェードイン（JavaScript不要）
   旧：body.fadeout + クリック時に0.8秒待つ処理 → 廃止 */
body.home::after {
  display: none;
}

body.home {
  animation: page-in .5s ease-out both;
}

@keyframes page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ロゴ（h1）：h1の既定の余白を打ち消す */
#nav-logo h1 {
  margin: 0;
  text-align: left;
  font-size: 100%;
}

/* 「Pick up！」「Magazine and TV」の見出し：h1→h2にしたため、h2用の装飾を打ち消す */
h2.head_test {
  display: block;
  color: inherit;
  font-size: 40px;
  margin: 0 auto 10px;
  text-align: center;
}

h2.head_test::before,
h2.head_test::after {
  content: none;
}

/* フッターの各列の見出し（h6の見た目をそのまま再現） */
#footer .footer-head {
  margin: 20px 0 10px;
  color: #FFF;
  font-size: 12px;
  text-align: left;
  text-decoration: underline;
}

/* PDFへのリンク部分 */
.index-pdf {
  text-align: center;
}

.index-2 .index-pdf a.linkF {
  text-decoration: underline;
}

/* index-2の本文 */
.index-2 .index-text {
  margin: 0 0 1em;
}

/* フッターのボタン（プライバシーポリシー・LINK・採用情報）：常に白文字
   tacs1.css に a:visited / a:hover の文字色指定があり、押した後などに色が変わるのを防ぐ */
#footer a.Button2,
#footer a.Button2:link,
#footer a.Button2:visited,
#footer a.Button2:hover,
#footer a.Button2:active {
  color: #FFF;
}

/* フッター右の「さ美」バナー */
#footer2-4 {
  text-align: right;
}

#footer2-4 p {
  margin: 4px 0 0;
}

#footer2-4 a {
  display: inline-block;
}

/* 電話番号（スマホでタップして発信できるようにリンク化） */
ul.inline a.fts14 {
  font-weight: bold;
}


/* ---------------------------------------------------------
   1360px以下：ノートPC・タブレット
   固定幅（1000px・1100px・1260px・1290px など）を可変にする
--------------------------------------------------------- */
@media (max-width: 1360px) {

  /* ヘッダー */
  #nav-in001 {
    width: calc(100% - 390px);
  }
  #nav-in002 {
    width: 100%;
  }
  .list-ul li {
    width: calc(100% / 6);
    box-sizing: border-box;
  }
  .list-ul li a {
    display: block;
  }
  .list-ul li a:hover {
    padding: 0;
  }

  /* メイン画像：画面幅に合わせて切り抜き表示 */
  .box-02 .bgImg {
    background-size: cover;
    background-position: center;
  }

  /* 紹介文の帯 */
  .index-1 {
    height: auto;
    padding: 20px 0;
  }
  .index-2 {
    width: auto;
    max-width: 1100px;
    box-sizing: border-box;
    line-height: 2.2;
  }

  /* Pick up！（作品一覧） */
  .details {
    width: 100%;
    max-width: 1290px;
    box-sizing: border-box;
    padding: 0 16px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  /* 雑誌・講演・地図の3ボタン */
  .entries {
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px 16px;
    box-sizing: border-box;
  }
  .entries > div {
    margin: 0;
    width: min(400px, calc(100% - 32px));
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
  }
  .btn-flat-simple {
    margin: 0;
  }

  /* お知らせ */
  .w-new1 {
    padding: 48px 0;
  }
  div.update1 {
    width: auto;
    max-width: 1200px;
    padding: 0 24px;
    box-sizing: border-box;
  }

  /* 耐候性鋼デザイン家具（3つのカード） */
  .area4 {
    height: auto;
    padding-bottom: 48px;
  }
  #entry {
    width: auto;
    height: auto;
    overflow: visible;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px 16px 0;
    box-sizing: border-box;
  }
  #entry > p.fts24 {
    flex-basis: 100%;
    margin: 0 0 4px;
  }
  .post1,
  .post2,
  .post3 {
    float: none;
    margin: 0;
    position: relative;
    width: min(380px, 100%);
    height: auto;
    aspect-ratio: 380 / 275;
    background-size: 100% 100%;
  }
  .post1-in {
    position: absolute;
    left: 6.5%;
    right: 6.5%;
    bottom: 6%;
    margin: 0;
    width: auto;
    height: auto;
  }
  .kounyu {
    width: 100%;
    padding-top: 32px;
    background: transparent;
  }

  /* フッター */
  #footer {
    height: auto;
    padding-bottom: 20px;
  }
  #footer1 {
    width: auto;
    height: auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
  }
  #footer1 > .contents {
    float: none;
    width: 25%;
    height: auto;
    margin: 20px 0 0;
    padding-right: 12px;
    box-sizing: border-box;
  }
  #footer ul.contents {
    float: none;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
  }
  #footer .contents3 {
    float: none;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
    padding: 0;
  }
  .Button2 {
    float: none;
    margin: 0;
  }
  .after {
    display: none;
  }
  #footer2 {
    width: auto;
    height: auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
  }
  #footer2-1 {
    float: none;
    margin: 0;
    width: 250px;
    height: 105px;
  }
  #footer2-2,
  #footer2-3,
  #footer2-4 {
    float: none;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
  }
  #footer2-4 {
    text-align: left;
  }
}


/* ---------------------------------------------------------
   1024px以下：タブレット縦・スマホ
--------------------------------------------------------- */
@media (max-width: 1024px) {

  /* ヘッダーを縦並びに */
  #header {
    height: auto;
  }
  #nav-in1 {
    float: none;
    width: auto;
    margin: 16px 16px 0;
  }
  #nav-text {
    width: auto;
    text-align: center;
  }
  #nav-logo {
    width: auto;
    text-align: center;
  }
  #nav-logo h1 {
    text-align: center;
  }
  #nav-in001 {
    float: none;
    width: 100%;
    height: auto;
    position: static;
  }
  ul.inline {
    margin: 8px 12px;
    text-align: center;
  }
  ul.inline > li {
    white-space: nowrap;
  }

  /* メインメニュー：3列×2段 */
  #nav-in002 {
    position: static;
    width: 100%;
    height: auto;
    font-size: 15px;
  }
  .list-ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0;
  }
  .list-ul li {
    float: none;
    width: auto;
    margin: 0;
    line-height: 1.4;
    border-top: 1px solid #E8E8E8;
    border-right: 1px solid #E8E8E8;
  }
  .list-ul li:nth-child(3n) {
    border-right: none;
  }
  .list-ul li a,
  .list-ul li a:hover {
    padding: 14px 4px;
  }

  /* メイン画像 */
  .box-02 {
    height: clamp(280px, 56vw, 580px);
  }
  .box-02 .boxString {
    width: 92%;
    box-sizing: border-box;
    padding: 12px;
    text-align: center;
  }
  .box-02 .boxString p {
    font-size: clamp(17px, 4.4vw, 38px);
    line-height: 1.6;
  }

  /* 見出し */
  .head_test-wrap {
    margin-top: 56px;
  }
  h2.head_test {
    font-size: clamp(26px, 6vw, 40px);
  }
  .fts24 {
    font-size: clamp(17px, 4.4vw, 24px);
  }

  /* 作品カード：ホバーが使えない端末向けに、説明を常に表示 */
  .details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
  .details li,
  .details li dl {
    width: 100%;
    height: auto;
  }
  .details li.type1 {
    overflow: visible;
  }
  .details li dl {
    position: static;
    padding: 10px 12px;
  }
  .details li.type1:not(:hover) dl {
    opacity: 1;
    transform: none;
  }
  .details dl dd {
    font-size: 11px;
  }

  /* 上へ戻るボタン */
  .pagetop {
    right: 16px;
    bottom: 16px;
  }
}


/* ---------------------------------------------------------
   640px以下：スマホ
--------------------------------------------------------- */
@media (max-width: 640px) {

  body {
    font-size: 14px;
  }

  .index-2 {
    font-size: 15px;
    line-height: 2;
    padding: 16px;
  }
  .fts20 {
    font-size: 18px;
  }

  .details {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 0 12px;
  }

  .entries > div {
    width: calc(100% - 32px);
    max-width: 400px;
    height: 240px;
  }

  /* お知らせ：日付と本文を縦に並べる */
  div.update1 dt {
    float: none;
    width: auto;
    padding: 16px 0 0;
  }
  div.update1 dd {
    padding: 4px 0 16px;
  }

  /* フッター：2列 */
  #footer1 > .contents {
    width: 50%;
  }
}


/* ---------------------------------------------------------
   作品例ページ（work.shtml）
   ※ tacs1.css の .sakuhin / .list-w / .aiu_navi / .area_box など用
--------------------------------------------------------- */
@media (max-width: 1360px) {

  /* 上のバナーと説明文 */
  .sakuhin {
    background-size: cover;
    background-position: center;
  }
  .sakuhin-area {
    height: auto;
  }
  .sakuhin-tx {
    width: auto;
    max-width: 1260px;
    box-sizing: border-box;
  }

  /* 6枚のカード：折り返して並べる。画像の高さは同じ縦横比で揃える */
  #sakuhin-w {
    width: auto;
    max-width: 1260px;
    height: auto;
    padding: 40px 16px 0;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 30px;
  }
  .list-w {
    float: none;
    margin: 0;
    width: min(380px, 100%);
    height: auto;
    padding-bottom: 6px;
  }
  .img-w img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 380 / 210;
    object-fit: cover;
  }

  /* 「あいうえお順」の帯 */
  .event_b1 {
    width: auto;
    max-width: 1248px;
  }
  .mbn {
    width: auto;
    max-width: 500px;
  }

  /* 50音メニュー */
  .aiu_area {
    width: auto;
    height: auto;
    padding: 20px 16px;
  }
  .aiu_navi {
    width: auto;
  }
  .aiu_navi ul {
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .aiu_navi li {
    float: none;
  }

  /* 行ごとの作品リスト（3列。幅が足りなければ折り返し） */
  .area_01 {
    width: calc(100% - 32px);
    max-width: 900px;
  }
  .area_box {
    width: calc(100% - 32px);
    max-width: 900px;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    padding: 0 0 40px 12px;
  }
  .area_box0,
  .area_box1,
  .area_box2 {
    float: none;
    width: auto;
    flex: 1 1 240px;
    margin: 10px 0 0;
  }
}

@media (max-width: 1024px) {
  /* 50音メニューをタップしやすいボタン風に */
  .aiu_navi ul {
    gap: 8px;
  }
  .aiu_navi li,
  .aiu_navi li + li {
    margin: 0;
    padding: 6px 14px;
    border: 1px solid #1D6DAB;
    border-radius: 4px;
  }
}

@media (max-width: 640px) {
  .sakuhin {
    height: 110px;
  }
  .sakuhin-tx {
    padding: 16px;
  }
  .sakuhin-tx p {
    font-size: 14px;
    line-height: 1.9;
  }
  .area_box0,
  .area_box1,
  .area_box2 {
    flex-basis: 100%;
  }
}


/* ---------------------------------------------------------
   会社案内ページ（annai.shtml）
   ※ tacs1.css の .company / .Submenu / .companynav_* / table.type07〜09 など用
--------------------------------------------------------- */

/* 受賞歴：id="j-box" が5つ重複していたため class="j-box" に変更（見た目は従来と同じ） */
.award-list {
  overflow: hidden;
}
.j-box {
  width: 430px;
  height: 120px;
  margin: 10px 10px 30px 130px;
  float: left;
}
.j-box img {
  float: left;
  margin-right: 20px;
}
.j-box .text {
  overflow: auto;
  font-size: 12px;
  text-align: left;
}
.j-box p {
  margin: 5px;
}

/* 組織図・工場全景（元はHTMLに直接書かれていたstyle） */
.org-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 30px;
}
.org-list li {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}
.org-caption {
  font-size: 18px;
  line-height: 1.6;
}

/* アクセスマップのボタン：id="map_3" が2つ重複していたため class="map-3" に変更 */
.map-3 {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0;
  list-style: none;
}

@media (max-width: 1360px) {

  /* 上のバナーとサブメニュー */
  .company {
    background-size: cover;
    background-position: center;
  }
  .Submenu1,
  div.Sub-nav ul.nl {
    width: auto;
  }

  /* 本文エリア */
  .companynav_contents02,
  .companynav_contents-j {
    width: auto;
    max-width: 1200px;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* 会社沿革 */
  table.tka3 {
    width: 100%;
    max-width: 920px;
  }

  /* 受賞歴：カードを折り返して並べる */
  .award-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px 24px;
    overflow: visible;
  }
  .j-box {
    float: none;
    width: auto;
    height: auto;
    margin: 0;
  }

  /* 組織図・設備 */
  .org-list {
    flex-wrap: wrap;
  }
  .org-list li {
    min-width: 0;
  }
  table.type07,
  table.type08,
  table.type09 {
    margin: 40px auto;
    width: 100%;
    max-width: 880px;
  }

  /* アクセスマップ */
  .companynav_glmap {
    width: auto;
    max-width: 1200px;
    height: auto;
    padding: 30px 16px 0;
    box-sizing: border-box;
  }
  .companynav_glmap iframe {
    width: 100%;
    height: clamp(260px, 56vw, 400px);
  }
}

@media (max-width: 1024px) {

  /* サブメニュー：2列×2段 */
  div.Sub-nav {
    font-size: 14px;
  }
  div.Sub-nav ul.nl li {
    width: 50%;
  }

  /* 見出し：右に寄せていた余白をやめて中央に */
  .companynav_contents01 {
    padding-bottom: 56px;
  }
  .title-g p,
  .title-g01 p {
    margin: 56px 0 32px;
    font-size: 22px;
  }
  .title-g p span,
  .title-g01 p span {
    margin: 0;
  }

  /* 事業所概要の表 */
  .tb1-r01 {
    width: calc(100% - 32px);
  }

  /* 工場規模・管理技術者・技能者の表 */
  table.type07 tbody th {
    width: 34%;
  }
  table.type07 td {
    width: auto;
  }
  table.type08 tbody th {
    width: 38%;
  }
  table.type08 td {
    width: auto;
  }

  /* アクセスマップのボタン：2列 */
  .map-3 {
    flex-wrap: wrap;
  }
  .box003 {
    width: calc(50% - 4px);
  }
}

@media (max-width: 640px) {

  .company,
  .company1 {
    height: 110px;
  }

  .tb1-r01 td {
    padding: 10px 16px;
  }

  /* 会社沿革：日付の下に内容を表示 */
  table.tka3 {
    border-spacing: 0;
  }
  table.tka3 th,
  table.tka3 td {
    display: block;
    width: auto;
    border-bottom: none;
  }
  table.tka3 th {
    padding: 12px 0 0;
  }
  table.tka3 td {
    padding: 0 0 12px 8px;
    border-bottom: 1px solid #ccc;
  }

  /* 表の余白と文字を少し小さく */
  table.type07 thead th,
  table.type07 tbody th,
  table.type07 td,
  table.type08 thead th,
  table.type08 tbody th,
  table.type08 td {
    padding: 12px;
    font-size: 13px;
  }

  /* 主要設備の表（4列）：はみ出す分は横にスクロール */
  table.type09 {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px auto;
  }
  table.type09 thead th,
  table.type09 tbody th,
  table.type09 td {
    padding: 10px;
    font-size: 12px;
  }
  table.type09 tbody th {
    width: 150px;
  }
  table.type09 td {
    width: 50px;
  }
}


/* ---------------------------------------------------------
   造船技術ページ（zou.shtml）
   ※ tacs1.css の .zousen / .zousen01 / #zousen02 / .list / .text1 用
--------------------------------------------------------- */

/* 上の紺色の帯の説明文（元は3行に分けた<li>。1つの段落にまとめた） */
.zousen01 {
  height: auto;
  min-height: 150px;
}
.zousen01 p {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  color: #FFF;
  font-size: 15px;
  line-height: 2.5;
  text-align: center;
}

@media (max-width: 1360px) {
  .zousen {
    background-size: cover;
    background-position: center;
  }

  /* 7枚のカード：折り返して並べる。画像は同じ縦横比で高さを揃える */
  #zousen02 {
    width: auto;
    max-width: 1100px;
    height: auto;
    padding: 50px 16px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 20px;
  }
  #zousen02 .list {
    float: none;
    margin: 0;
    width: min(315px, 100%);
    height: auto;
  }
  #zousen02 .img img {
    display: block;
    margin: 5px 0;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
  }
}

@media (max-width: 1024px) {
  .zousen01 p {
    text-align: left;
    line-height: 2.1;
  }
}

@media (max-width: 640px) {
  .zousen {
    height: 110px;
  }
  .zousen01 p {
    padding: 0 16px;
    font-size: 14px;
  }
}


/* ---------------------------------------------------------
   動きを減らす設定の人向け
--------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body.home {
    animation: none;
  }
  .box-02 .bgImg {
    animation: none;
  }
  .box-02 .src1 {
    opacity: 1;
  }
  .bar:before {
    animation: none;
    width: 100%;
  }
}


/* =========================================================
   作品例ページ（work.shtml）用
   tacs1.css の固定幅（1260px・900px・380px×3列など）を可変にする
========================================================= */

/* ---------------------------------------------------------
   1360px以下
--------------------------------------------------------- */
@media (max-width: 1360px) {

  /* 上のバナー画像と説明文 */
  .sakuhin {
    height: clamp(110px, 16vw, 185px);
    background-size: cover;
    background-position: center;
  }
  .sakuhin-area {
    height: auto;
  }
  .sakuhin-tx {
    width: auto;
    max-width: 1260px;
  }

  /* 6つの大きなカード（耐候性鋼・アルミ合金…） */
  #sakuhin-w {
    width: 100%;
    max-width: 1260px;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .list-w {
    float: none;
    width: 380px;
    max-width: calc(100% - 30px);
    height: auto;
    margin: 40px 15px 0;
    padding-bottom: 8px;
  }
  .img-w a {
    display: block;
  }
  .img-w img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 380 / 210;
    object-fit: cover;
  }

  /* 「あ い う え お 順」の帯 */
  .event_b1 {
    width: auto;
    max-width: 1248px;
  }
  .mbn {
    width: auto;
    max-width: 500px;
  }

  /* あ行・か行…のジャンプメニュー */
  .aiu_area {
    width: auto;
    height: auto;
    padding: 20px 16px 0;
  }
  .aiu_navi {
    width: auto;
    max-width: 1060px;
  }
  .aiu_navi ul {
    padding-left: 0;
    display: flex;
    justify-content: center;
  }
  .aiu_navi li {
    float: none;
  }

  /* 作品名の一覧（3列） */
  .area_01 {
    width: calc(100% - 32px);
    max-width: 900px;
  }
  .area_box {
    width: calc(100% - 32px);
    max-width: 900px;
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
  }
  .area_box0,
  .area_box1,
  .area_box2 {
    float: none;
    width: auto;
    margin: 10px 0 20px;
  }
}


/* ---------------------------------------------------------
   1024px以下：あ行〜わ行のメニューをボタン風の3列に
--------------------------------------------------------- */
@media (max-width: 1024px) {
  .aiu_navi ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .aiu_navi li,
  .aiu_navi li + li {
    margin: 0;
    padding: 0;
    border: 1px solid #1D6DAB;
    border-radius: 4px;
  }
  .aiu_navi li a {
    display: block;
    padding: 8px 4px;
  }
  .sakuhin-tx p {
    font-size: 15px;
  }
}


/* ---------------------------------------------------------
   768px以下：作品名の一覧を1列に
--------------------------------------------------------- */
@media (max-width: 768px) {
  .area_box {
    grid-template-columns: 1fr;
  }
  .area_box0,
  .area_box1,
  .area_box2 {
    margin: 0;
  }
  .area_box0 {
    margin-top: 10px;
  }
}


/* ---------------------------------------------------------
   640px以下
--------------------------------------------------------- */
@media (max-width: 640px) {
  .sakuhin-tx {
    padding: 20px 16px;
  }
  .sakuhin-tx p {
    font-size: 14px;
  }
  .list-w {
    margin-top: 24px;
  }
}
