@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Shippori+Mincho+B1:wght@400;500;600;700;800&display=swap');

@font-face {
    font-family: 'GenEiGothicN'; 
    src: url(../font/GenEiGothicN-Regular.woff2) format('woff2'), 
         url(../font/GenEiGothicN-Regular.woff) format('woff');  
    font-weight: normal, bold, 400, 500, 700; 
    font-style: normal; 
    font-display: swap;  
}

:root {
    /* 基本の使用カラー 　var()で指定する*/
    --color-background-dark: #120202;      /* 全体背景の濃いブラウン */
    --color-background-medium: #2a2a26;    /* アコーディオンバー */
    --color-background-medium-hover: #ccc;    /* アコーディオン使用時のホバー */
    --color-primary: #967D2F;             /* 見出し */
    --color-text-light: #F4E7AD;          /* テキスト色 */
    --color-link: #FFFFFF;         /* リンクのテキスト色 */
    --color-text-gray: #666666;  /* コピーライトの色 */

    /* 基本の使用フォント ほぼ旧サイトからコピペ　変更点：有料フォントが使われていた為一部変更　明朝体→Shippori Mincho B1（Googleフォント）、ゴシック2→GenEiGothicN（フリーフォントをダウンロードしてwoff形式に変換してフォルダに格納）*/
    --font-gothic1: "Josefin Sans", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", sans-serif;
    --font-gothic2: "GenEiGothicN", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", sans-serif;
    --font-mincho: "Shippori Mincho B1", "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "ＭＳ 明朝", "MS Mincho", serif; 
}

body {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-gothic2);
  color: var(--color-primary);
  background-color: var(--color-background-dark);
  background-image: url(../img/top/background-img.png);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  font-size: 16px;
  background-size: 100% auto;
  padding-top: 100px; /*ヘッダーの高さ分コンテンツが隠れるので下げておく*/
}



/* コンテンツの幅（メインビジュアル以外）heroコンテンツとそれ以外で幅が違うのでbodyではなくここで指定しておく？ */
.container {
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 30px; 
}

@media (max-width: 768px) {
    .container {
    padding: 20px; 
    }

    body{
        background-image: none;
    }
}

/* 見出しのスタイル */
h1 {
    font-size: 3rem; 
    margin-bottom: 0.8em; 
    font-family: var(--font-gothic1);
    font-weight: 700;
}

h2 {
    font-size: 1.6rem; 
    margin-bottom: 1em;
    font-family: var(--font-gothic1); 
}

h3 {
    font-size: 2rem; 
    margin-bottom: 1em; 
    font-family: var(--font-gothic1); 
    letter-spacing: 0.2em;
    font-weight: 700;
}

h4 {
    font-size: 1.7rem; 
    margin-bottom: 1em; 
    font-weight: 400;
}

h5{
    font-size: 1.8rem;
    color: var(--color-text-light);
    margin-bottom: 1em;
}

p {
    font-size: 1.6rem;
    margin-bottom: 0.2em; 
    line-height: 2;
}

li {
    font-size: 1.6rem;
    margin-bottom: 0.2em; 
    line-height: 2;
}

/* リンクのスタイル */
a {
    color: var(--color-link); 
    text-decoration: none; 
    font-size: 1.6rem;
    line-height: 1.5;
}

a:hover {
    text-decoration: underline; 
    color: var(--color-primary);
    text-decoration: none;
}

.section-title {
    display: flex;
    align-items: center;
}

.section-title::after{
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background-color:var(--color-primary);
    margin-left: 30px;
}

/*==========================================================
    header(ヘッダー)
==========================================================*/
#siteHeader {
    position: fixed; /* 位置を固定　これでスクロール時も追従して見える */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 30; 
    background-color: transparent;
    transition: background-color 0.3s ease;
    padding: 30px 0; 
    box-shadow: none; 
}


#siteHeader.scrolled {
    background-color: var(--color-background-dark); 
}

.header-inner {
    max-width: 1170px; 
    margin: 0 auto;
    padding: 0 30px; 
    align-items: center; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.header-logo a {
    font-family: var(--font-mincho);
    font-size: 2.7rem; 
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-primary); 
    white-space: nowrap; /* 旧サイトとの変更点。ロゴを改行させない*/
}

.nav-desktop{
    margin-left: auto;
}
.nav-desktop ul {
    display: flex;
    gap: 30px; 
    list-style: none; 
    margin: 0;
    padding: 0;
}

.nav-desktop a { 
    font-weight: normal;
    padding: 5px 0;
    position: relative;
    color: var(--color-primary); 
    text-decoration: none; 
    font-size: 1.4rem;
}

.nav-desktop a:hover {
    color: var(--color-text-light); 
}

.hamburger-icon {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    width: 45px;
    aspect-ratio: 1;
    border-radius: 50%;
    border-color: #967D2F;
    background-color: #ffffffbf ;
    z-index: 50;
    cursor: pointer;
}


.hamburger-icon span {/* 三本線を作る */
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 20px; 
    height: 1.5px;
    background-color: var(--color-primary); 
    transition: all 0.3s ease;
}

.hamburger-icon span:nth-of-type(1) {
    translate: -50% calc(-50% - 6px);
}
.hamburger-icon span:nth-of-type(2) {
    translate: -50% -50%;
}
.hamburger-icon span:nth-of-type(3) {
    translate: -50% calc(-50% + 6px);
}

.hamburger-icon.is-open span:nth-of-type(1) {
    translate: -50% -50%;
    rotate: 45deg;
}
.hamburger-icon.is-open span:nth-of-type(2) {
    translate: -50% -50%;
    opacity: 0;
}
.hamburger-icon.is-open span:nth-of-type(3) {
    translate: -50% -50%;
    rotate: -45deg;
}


.nav-mobile{
    display: none;
    position: fixed;
    top: 0;
    transform: translateX(100%); /* 開く前は画面の外（正の値＝右側）に出しておく */
    width: 100%;
    height: 100vh;/* 要素いっぱいではなく、画面いっぱいの高さに広げる */
    background-color: var(--color-link); 
    transition: transform 0.3s ease;/*アニメーションを指定する。今回はtransformの動きを遅→早→遅の順で0.3秒かけて動かす */
    z-index: 40;
    padding-top: 70px
}

.nav-mobile.is-open {
    transform: translateX(0);
}


.nav-mobile li {
    padding: 15px 20px;
}

.nav-mobile a {
    text-decoration: none;
    color:var(--color-primary);
    font-size: 1.8rem;
    display: block;
}

@media (max-width: 950px) {
    .header-logo a{
        font-size: 2rem;
    }    
}

@media (max-width: 768px) { 
    #siteHeader {
        padding: 30px 10px 30px;
        justify-content: space-between; 
        height: 60px;
        padding: 20px 0px;
    }

    .header-logo a{
        font-size: 1.8rem;
    }

    .nav-desktop {
        display: none;
    }

    .nav-mobile {
        display: block;
    }

    .hamburger-icon {
        display: block;
    }

}




/*==========================================================
    main（メインコンテンツ）
==========================================================*/

main {
    padding-bottom: 50px;
    color: var(--color-text-light);
}


/*==========================================================
    footer(フッター)
==========================================================*/
#site-footer {
    background-color: var(--color-background-dark); 
    padding: 40px 20px 20px; 
    color: var(--color-text-light);
    text-align: center; 
}

.footer-top, .footer-middle, .footer-bottom {
    max-width: 1000px; 
    margin: 0 auto;
    padding-bottom: 20px; 
    display: flex; /* flexboxで横並び・配置を制御 */
    align-items: center; 
    justify-content: space-between; 
}

.footer-top {
    margin-bottom: 20px;
}

.footer-logo a {
    font-family: var(--font-mincho);
    font-size: 2.4rem; 
    font-weight: bold;
    color: var(--color-primary);
    white-space: nowrap;
}

.footer-nav ul {
    display: flex;
    gap: 20px; 
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav a {
    font-size: 14px;
    color: var(--color-primary);
}

.footer-nav a:hover{
    color: var(--color-text-light);
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.footer-info {
    text-align: left; 
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--color-text-light); 
    padding-right: 20px; 
}

.footer-info p {
    margin-bottom: 10px; 
    color: var(--color-primary);
}

.footer-banner {
    margin-left: auto; 
}

.footer-banner img {
    max-width: 300px; 
    height: auto;
    display: block;
}

.footer-bottom {
    justify-content: center; 
    padding-top: 10px; 
    border-bottom: none; 
}

.copyright {
    font-size: 1.2rem;
    color: var(--color-text-gray); 
}

@media (max-width: 768px){
    .footer-top{
        display: none;   
    }

    .footer-middle{
        flex-direction: column;
        align-items: center;
        margin: 0;
    }

    .footer-info{
        text-align: center;
    }

    .footer-info p{
        font-size: 1.2rem;
    }

    .footer-banner{
        margin: 0;
        text-align: center;
        padding-top: 5px;
    }

    .footer-banner img{
        width: 250px;
        max-width: 100%;
        display: block;
        margin: 0 auto;
    }
    
}