/* =========================
   基本設定
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0px;
}

body {
    margin: 0;
    color: #333;
    font-family:
        "Noto Sans JP",
        "Yu Gothic",
        "Meiryo",
        sans-serif;
    line-height: 1.8;
    background-color: #dde2ed;
}


/* =========================
   ヘッダー
========================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;
    height: 70px;
    padding: 0 2% 0 1%;

    display: flex;
    align-items: center;
    justify-content: space-between;
  

    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

header .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

header a {
    max-width: 30%;
    width: auto;
    font-size: clamp(13px, 2.2vw, 16px);
}

header a img {
    display: block;
    max-width: 320px;
    max-height: 60px;
    width: 100%;
    height: auto;
}


/* =========================
   ナビゲーション
========================= */

nav {
    position: static;

    width: auto;
    min-height: 0;
    padding: 0;
    margin-right: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;

    background-color: transparent;
}

nav a {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 22px 4%;

    color: #333;
    text-decoration: none;
    white-space: nowrap;
    
    transition: background-color 0.2s;
}

nav a:hover {
    background-color: #8ea9fa;
}

nav p {
    margin: 0;
}


/* =========================
   ページ全体のレイアウト
========================= */

body {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    padding-top: 70px;
}

main {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0px 30px 60px;

    flex: 1 0 auto;
}


/* =========================
   各セクション
========================= */

section {
    margin-bottom: 200px;
    scroll-margin-top: 120px;

}

#face {
    max-height: 500px;
    display: flex;
    margin-bottom: 100px;
}

#face img {
    max-width: 60%;
    max-height: 500px;
    height: 100%;
    width: auto;

     -webkit-mask-image: linear-gradient(
        to right,
        #000 60%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        #000 60%,
        transparent 100%
    );
}


#face div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
        background-color: #06359c;
}

#face p {
  font-family: '', serif; /* ダイナミックな筆文字フォント */
  font-size: clamp(1.5rem, 3vw, 3.5rem); /* 画面サイズに応じてダイナミックに可変 */
  font-weight: normal;
  color: #FFF; /* 写真に映える白字 */
  text-align: center; /* 複数行になったときの文字揃えを中央に */
  line-height: 1.6; /* 行間をあけて余白の美しさを演出 */
  letter-spacing: 0.1em; /* 文字間を少し空けて上品に */
  margin-left: 5%;
}


#introduction img {
    width: 400px;
    height: auto;
    margin: auto;
}

h1 {
    border-bottom: 4px solid #06359c;
}

section h1 {
    margin: 0 0 40px;
    padding-bottom: 0px;

    font-size: 28px;
    font-weight: bold;
}

section h2 {
    margin: 60px 0 20px;
    padding-left: 8px;

    font-size: 22px;
    border-left: 4px solid #06359c;
}

section p {
    margin: 0 0 20px;
}

#access {
    margin-bottom: 0px;
}

#rinen {
    background-color: #FFF;
}

#rinen p {
    padding: 15px;
    font-family: "HG正楷書体";
    font-size: 1.1rem;
}


#shachou-wrap {
    display: block;
}



#shachou {
    display: flex;
    margin-left: auto;
    margin-right: 10px;
    margin-bottom: 80px;
    width: fit-content;
}
#shachou img {
    width: auto;
    max-width: 200px;
    height: auto;
    margin-left: 25px;
}
#shachou p {
    height: fit-content;
    margin: auto;
    padding-left: 15px;
    font-family: "HGP行書体" , "HG正楷書体";
    font-size: 25px;
}

#shiogotonaiyou div {
    display: flex;
}

#shigotonaiyou img {
    max-width: 420px;
    width: 45%;
    margin: 5px auto;
    padding: 10px;
}



/* =========================
   会社情報の表
========================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

th,
td {
    padding: 12px 16px;
    border: 1px solid #ccc;
    text-align: left;
    vertical-align: top;
}

th {
    width: 28%;
    font-weight: bold;
}

/* =========================
   募集要項の表
========================= */

.youkou {
    margin: auto;
    width: auto;
}



/* =========================
   Googleマップ
========================= */

iframe {
    display: block;
    max-width: 100%;
    margin: 25px 0;
}


/* =========================
   フッター
========================= */

footer {
    width: 100%;
    margin-top: auto;
    padding: 30px;

    background-color: #333;
    color: #fff;
}

footer > div {
    max-width: 1140px;
    margin: 0 auto;
}

.footer_name {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: bold;
}

.footer_address {
    margin: 0;
    font-size: 14px;
}

.copyright {
    margin: 25px 0 0;
    padding-top: 15px;

    border-top: 1px solid #666;

    font-size: 12px;
    text-align: center;
}


/* =========================
   リンク・選択時の視認性
========================= */

a:focus-visible {
    outline: 2px solid #2878c8;
    outline-offset: 3px;
}


/* 印刷時のスタイル設定 */
@media print {
  /* ヘッダーの fixed を解除し、通常配置（上部）に戻す */
  header, .site-header {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    box-shadow: none !important;
    background: none !important; /* 必要に応じて背景色の調整 */
  }

  /* 通常時にfixedヘッダー分の余白（padding）を body に空けている場合、印刷時に消す */
  body {
    padding-top: 0 !important;
  }
}