@charset "UTF-8";

/* 共通部分
-------------------------------*/
html {
    font-size: 100%;
}
body{
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDP Gothick", sans-serif;
    line-height: 1.7;
    color: #cf3304;
}
a{
    text-decoration: none;
}
img{
    max-width: 100%;
}

/*レイアウト
-------------------------------*/
.wrapper {
    max-width: 1120px;
    margin: auto;
    padding: 0 1.5rem;
}
.align-center {
    text-align: center;       
}

/*見出し*/
.font-japanese {
    font-family: 'Noto Sans JP',sans-serif;
    font-weight: 400;
    font-style: normal;
    }
.page-title{
    line-height: 1.4;    
}
.title-large {
    font-size: 3.5rem;
    font-weight: bold;
    }
.title-midium {
    margin-top: 2rem;
    font-size: 1.5rem;    
    }
.title-small {
    margin-top: 0.5rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;    
    }
.line {
    border-right: solid #004add;
    border-bottom: solid #0029dd;
    display: inline;
}
.heading-large {
    font-size: 2rem;
    text-align: left;    
    margin-bottom: 1rem;    
}
.heading-midium {
    font-size: 2rem;
    text-align: left;    
    margin-bottom: 1rem;
    font-weight: 500;
}
.title-img {
    aspect-ratio: 4/1;
    object-fit: cover;
    margin: 1rem 0.5rem 1rem;
    border-radius: 10px;        
}

/*サイドバー*/
.side-menu {
    list-style: none;
    text-align: center;
    margin-bottom: 4rem;
}
.side-menu li {
    border-bottom: 1px solid #c9c2bc;
}
.side-menu a {
    color: #432;
    display: block;
    padding: 1rem;
}
.side-menu a:hover {
    color: #0bd;
}
.dela-gothic-one-regular {
    font-family: "Dela Gothic One", sans-serif;
    font-weight: 500;
    font-style: normal;
  }
  /*.sns-youtube {
      aspect-ratio: 16/9;
  }
  .sns-youtube iframe {
      height: 100%;
  }*/  

/*ボタン*/
.btn {
    display: inline-block;
    font-size: 1.2rem;
    background-color: #4656a1;
    color: #fff;
    border-radius: 12px;    
    transition: .5s;
    min-width: 200px;
    height: 2.5rem;    
    padding: 0.25rem 1rem 0.25rem;
    align-items: center;
    justify-content: center;
}
.container {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    gap: 0.7rem;
}
.btn:hover {
    transform:scale(1.05);
}
.disabled {
    display: inline-block;
    font-size: 1.2rem;
    background-color: #8490c8;
    color: #fff;
    border-radius: 12px;    
    transition: .5s;
    min-width: 200px;
    height: 2.5rem;    
    padding: 0.25rem 1rem 0.25rem;
    align-items: center;
    justify-content: center;
}
/*ヘッダー
-------------------------------*/
.page-header {
    padding-top: .5rem;
}
.logo {
    width: 300px;
}
.main-nav {
    display: flex;
    justify-content: center;
    gap: .55rem;
    font-size: .7rem;
    list-style: none;
    text-align: center;
}
.main-nav a {
    color: #162040;
}
.main-nav a:hover {
    color: #0bd;
}
.nav-disabled {
    color: #2100dddc;
}

/*ヘッダーカバー画像
-------------------------------*/
.cover {
    background-size: cover;
    background-position: center top;
    height: 22.5rem;
}
.sub-cover {
    background-size: cover;
    background-position: center bottom;
    height: 528px;
    margin-bottom: 4rem;
}

/*HOME
-------------------------------*/
.cover-home {
    background-image: url(../images/kapo.jpg); /* 実際のファイル名に変更 */
    background-size: cover;       /* 枠いっぱいに広げる */
    background-position: center;  /* 写真の真ん中を基準にする */
    background-repeat: no-repeat;
    height: 60vh;                 /* 画面の高さの60%くらい使って迫力を出す */
}


.about {
    max-width: 736px;
    padding: .2rem 1.5rem;
    margin: 3rem auto 4rem;
}
.about p {
    margin-bottom: 3rem;
}

/*NEWS
-------------------------------*/
.cover-news {
    background-image: url(../images/cover-news-s.webp)
}

/*記事部分*/
.post {
    margin-bottom: 3rem;
}
.post-title {
    font-weight: normal;
    margin-bottom: 1.25rem;
}
.post-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.post-cat {
    display: flex;
    gap: .5rem;
    list-style: none;
}
.post-cat a {
    color: #faf7f0;
    border-radius: 8px;
    font-size: .875rem;
    padding: .5rem .75rem;
}
.post-cat a:hover {
background-color: #c9c2bc;

}
.post-date {
    font-size: .875rem;
}
.post-thumbnail {
    border-radius: 16px;
    margin-bottom: 1.5rem;
}
.post p {
    margin-bottom: 1.5rem;
    line-height: 2;
}

/*加工サンプル*/
.cover-menu {
    background-image: url(../images/cover-menu-s.webp);
}
.grid {
    display: grid;
    gap: 2rem 1.5rem;
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
    }
.item img {
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 16px;
}
.item p {
    font-size: .875rem;
}
.youtube {
    display: inline-block;
    font-size: 1.5rem;
    background-color: #f3ab3e;
    color: #fff;
    border-radius: 18px;    
    transition: .5s;
    min-width: 30px;
    height: 3.5rem;    
    padding: .75rem 1.5rem;
    align-items: center;
    justify-content: center;
}

/*フッター
-------------------------------*/
.font-english {
    text-align: center;
}
.page-footer {
    background-image: url(../images/tulips.jpg);
    background-size: cover;
    background-position: center;
    padding-top: 12rem;
}
.info {
    width: 100%;
    max-width: 554px;
    margin: auto;
    padding: 0 1.5rem;
    border-spacing: 0;
}
.info th,
.info td {
    border-bottom: 1px solid #c9c2bc;
}
.info th {
    text-align: left;
    font-weight: normal;
    padding: 1rem;
}
.info td {
    padding: 1rem 0;
}
.copyright {
    background-color: #0c4da2;
    text-align: center;
    padding: 2rem 0;
    margin-top: 6rem;
    color: #fff;
}

/*デスクトップ版
-------------------------------*/
@media (min-width: 821px) {
    /*見出し*/    
    .title-large {        
        font-size: 5.5rem;
        padding-left: 15%;       
    }
    .title-midium {
        font-size: 2.5rem;
        padding-left: 15%;        
    }
    .heading-large {
        font-size: 4rem;
    }
    .heading-midium {
        font-size: 3rem;
    }
    .title-img {
        aspect-ratio: 6/1;
        object-fit: cover;
        padding: 2rem 30% 2rem;
        border-radius: 10px;        
    }
    .post-title {
        font-size: 2rem;
    }

    /*ボタン*/   
    .container {
        min-width: 240px;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: .5rem;
        display: flex;
        justify-content: center;
    }
    .jump {
        max-width: 1000px;
        margin: 1rem auto;
    }

    /*ヘッダー*/
    .page-header {
        display: flex;
        justify-content: space-between;
        padding-top: 1.5rem;        
    }
    .main-nav li {
        font-size: 1.2rem;
        margin: 0 10px 0;
    }

    /*ヘッダーカバー画像*/
    .sub-cover {
        height: 800px;
        margin-bottom: 6rem;
    }

    /*HOME*/
    .cover-home {
    background-image: url(../images/kapo2.jpg);
    background-size: cover;
    height: 35vw;    
    }
    .about {
    margin: 4rem auto 0;
    }

    /*NEWS*/
    .cover-news {
        background-image: url(../images/lighthouse.jpg);
    }
    .news-contents {
        display: flex;
        justify-content: space-between;
    }
    .post {
        width: 60%;
        order: 2;
    }

    /*サイドバー*/
    .grid {
        width: 70%;
    }
    .sidebar {
        width: 12%;
        order: 3;
    }
    .ad {
        order: 1;
    }
    .sidebar .heading-medium {
        line-height: 1;
        margin-bottom: 1rem;
    }    
    
    /*MENU*/
    .cover-menu {
        background-image: url(../images/cover-menu-l.webp);
    }
    .grid {
        gap:3rem 2rem;
        grid-template-columns: repeat(3, 1fr)
    }
    .item img {
        margin-bottom: .5rem;
    }
    .item p {
        font-size: 1rem;
    }
    .item-big {
        grid-column: 1/3;
        grid-row: 1/3;
    }
    .item-big img {
        height: 82.4%;
        width: 100%;
    }
    /*.train {
        aspect-ratio: 2/1;
        object-fit: cover;
        border-radius: 16px;       
    }*/

    /*フッター*/
    .page-footer {
    background-image: url(../images/tulips.jpg);
    padding-top: 12rem;
    }
    .info th {
    padding-left: 2.5rem;
    }
}

/* --- スマホ・タブレット向けの修正 --- */

/* 1. YouTubeをスマホ画面に収める */
iframe {
    width: 100% !important; /* 親要素の幅に合わせる */
    height: auto;
    aspect-ratio: 16 / 9; /* 横長比率を維持 */
    margin-bottom: 1rem;
}

/* 2. ボタンのレイアウトを調整 */
.btn, .disabled {
    width: 100%; /* スマホではボタンを横いっぱいに */
    height: auto;
    padding: 0.8rem 1rem; /* 押しやすい高さに */
    line-height: 1.2;
    display: flex; /* 文字を真ん中に */
    align-items: center;
    justify-content: center;
}

/* 3. ヘッダーのロゴをスマホで少し小さく */
.logo {
    max-width: 80%; /* 画面からはみ出さないように */
    height: auto;
}

/* 4. トップタイトルの文字サイズ調整 */
@media (max-width: 820px) {
    .title-large {
        font-size: 2.2rem; /* スマホでちょうどいい大きさに */
    }
    .title-midium {
        font-size: 1.2rem;
    }
    /* YouTubeのサイドバーをスマホではスッキリさせる */
    .news-contents {
        display: flex;
        flex-direction: column; /* 縦に並べる */
    }
}

img{
    object-fit: cover;
}

<style>
/* フォーム全体の整形 */
#contactForm {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin: 20px auto;
}

/* 入力欄（input, textarea, select）の枠とデザイン */
#contactForm input[type="text"],
#contactForm textarea,
#contactForm select {
    border: 1px solid #ccc; /* 枠線をしっかり付ける */
    border-radius: 4px;
    padding: 10px;
    font-size: 1rem;
    margin-top: 5px;
    box-sizing: border-box; /* 幅100%を維持 */
    transition: border-color 0.3s;
}

/* 入力中（フォーカス時）に色を変える */
#contactForm input:focus,
#contactForm textarea:focus,
#contactForm select:focus {
    border-color: #007bff; /* 羽曳野の空のような青に */
    outline: none;
    box-shadow: 0 0 5px rgba(0,123,255,0.2);
}

/* ボタンのデザイン変更 */
.submit-btn {
    display: block;
    width: 100%;
    background: linear-gradient(to bottom, #444, #222); /* 重厚感のある金属的なグラデーション */
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 15px !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 4px 0 #000; /* 立体的なボタン感 */
    transition: all 0.2s;
}

/* ボタンを押した時の動き */
.submit-btn:hover {
    background: linear-gradient(to bottom, #555, #333);
    transform: translateY(2px);
    box-shadow: 0 2px 0 #000;
}

.submit-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}
</style>