@charset "UTF-8";

/* ---------- ---------- ----------
変数定義
---------- ---------- ---------- */

:root {
    /* カラー */
    --color-primary: #387d5c;
    --color-secondary: #ffd2d2;
    --color-accent: #c60000;
    --color-text: #333;
    --color-link: #006ad6;
    --color-white: #fff;
    --color-gray: #959595;
    --color-footer: #4c3f3f;

    /* レイアウト */
    --width-content: 1200px;
    --width-narrow: 770px;
    --space-unit: 15px;
    --space-section: 45px;

    /* その他 */
    --flex-gap: 30px;
    --duration: 0.7s;
}

/* var()の中で使う変数名は "必ず" ハイフン2つ（--）から始まる!! */
/* CSSに元々あるプロパティ（color, font-size, display etc.)と区別をするため */

/* ---------- ---------- ----------
ベース
---------- ---------- ---------- */

body {
    font-family: "Yu Gothic", "游ゴシック Medium", "YuGothic", "游ゴシック体", "ヒラギノ角ゴ Pro W3", sans-serif;
    overflow-x: hidden;
}

img {
    display: block; /* 画像をブロック要素に!! [margin: 0 auto] で中央寄せできるようにするため */
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ---------- ---------- ----------
レイアウト
---------- ---------- ---------- */

.wrapper {
    width: var(--width-content); /* [width: 1200px] と同義 */
    margin: 0 auto;
    position: relative;
    padding: 0 var(--space-unit); /* 上下の余白は 0 - 左右の余白は 15px の意 */
    box-sizing: border-box;
}

/* ---------- ---------- ----------
共通コンポーネント
---------- ---------- ---------- */

.sec-ttl {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    padding-bottom: var(--space-section);
}

.lead {
    font-size: 14px;

    line-height: calc(26 / 14); 
    /* フォントサイズが 14px のとき、行の高さを 26px にする */
    /* この記述をすることで、自動的に【行間 約1.85倍】を維持できる */

    text-align: center;
    padding-bottom: var(--space-section); /* [padding-bottom: 45px] と同義 */
}

/* ボタン共通 */
.btn {
    display: block;
    text-align: center;
    font-weight: bold;
    transition: all var(--duration); /* 0.7s かけてじわっと変化 */
    margin: 0 auto;
}

/* プライマリーボタン */
.btn-primary {
    width: 290px;
    height: 55px;
    line-height: 55px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 5px;
}

/* セカンダリーボタン */
.btn-secondary {
    width: 150px;
    height: 45px;
    line-height: 45px;
    border-radius: 5px;
    box-shadow: 0px 2px 3.6px 2.4px rgba(0, 0, 0, 0.16); /* ドロップシャドウ */
    font-size: 15px;
    color: var(--color-text);
}

/* イメージトップボタン */
.pagetop {
    display: none; /* 画面から要素を消してしまう */
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 9999; /* 重なり順を最強（一番手前）にする!! 他のどの要素よりも手前に持ってくるの意 */
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: 50%;
    opacity: 1; /* [opacity] … 不透明度の意!! 1 = 不透明度を100%（くっきり見える状態）にする  */
    /* [display: none] で消した要素を、最終的にくっきり表示させる */
}

.pagetop:before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    border-top: 3px solid var(--color-white);
    border-right: 3px solid var(--color-white);
    translate: 0 20%;
    rotate: -45deg;
    top: calc(50% - 5px);
    left: calc(50% - 5px);
}

.pagetop:hover {
    transition: all var(--duration);  /* 0.7s かけてじわっと変化 */
}

/* ホバー制御 */
@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover,
    .btn-secondary:hover,
    .pagetop a:hover {
        opacity: 0.7;
    /* カーソルを要素の上に乗せて（hover）細かい作業ができるユーザー = PC だけ、
    マウスを乗せた時に少し透ける(opacity: 0.7;)ようにする */
    }
}

@media (hover: none) or (pointer: coarse) {
    /* タッチデバイスでの即時反応 */
    .btn-primary:active,
    .btn-secondary:active,
    .pagetop a:hover {
        opacity: 1;
        /* カーソルを浮かせることができないデバイス or 操作するポインターが粗い（太い）デバイス = SP
        どちらか当てはまった場合に、このCSSの効果を適用*/
    }
}

    /* hover: fine … 細かい（カーソル操作） / coarse … 粗い（指などでの操作） */

/* ---------- ---------- ----------
ヘッダー
---------- ---------- ---------- */

.header{
    padding-bottom: var(--space-unit);
}

.header .wrapper {
    height: 120px;
    display: flex; /* 子要素を横並びに */
    justify-content: space-between; /* 中身を両端に離して配置!! 最初の要素は左端・最後の要素は右端・残りは均等配置 */
    align-items: center; /* 高さを上下・中央に揃える */
}

/* ロゴ */
.logo img {
    margin: 0;
    /* ベース [img] 記述内で【サイト内すべての画像に対して中央配置】としていたルールを打ち消すための記述 */
    /* そのままだとヘッダーロゴまで中央配置されてしまうので、コレ[.logo img]は中央配置しなくてよい!! の意 */
}

/* 検索フォーム */
.search {
    position: relative; /* 基準点・親 */
}

.search input { /* 検索キーワードを入力する "箱" のデザイン */
    width: 230px;
    height: 40px;
    border-radius: 5px; /* 角丸 */
    border: 1px solid var(--color-gray); /* 箱の周りの線 */
    box-sizing: border-box; /* [border-box] を付与することにより、全部コミコミ 230x40px にするの意 */
    font-size: 20px;
    padding-left: 30px;
    /* 左側に 30px の余白を持たせる!! 左側に配置予定の検索アイコンと重なるのを防ぐため */
}

.search-sp {
    display: none;
    /* スマホ用の検索ボタン!! PC用では邪魔だから消しておく */
}

.search-icon {
    position: absolute; /* 親要素[search]の基準点に従って絶対配置 - 入力欄の上に浮かすような状態 */
    top: 10px;
    left: 10px;
    /* 親 [.search] に対して上から 10px, 左から 10px の位置に配置 */
    /* 入力欄の高さが 40px なので [top: 10px] にすることで、だいたい真ん中あたりにアイコンを配置するイメージ */
}

/* グローバルナビ - 横並びのメニュー */
.nav {
    background: var(--color-secondary);
}

.nav-list {
    max-width: 1170px;
    margin: 0 auto; /* 画面の中央に配置 */
    display: flex; /* 子要素 [li] を横並びにする */
    justify-content: space-between;  /* 両端揃え!! */
    gap: var(--flex-gap); /* アイテムの隙間を 30px */
}

.nav-list > li {
    width: calc((100% - var(--flex-gap) * 4) / 5);
    /* var(--flex-gap) * 4 ▶︎ 隙間幅4つの合計幅を計算 */
    /* 100% - ▶︎ 全体の幅から、隙間幅4つ分を引き算。残りが純粋なボタンのスペースになる */
    /* 〜 / 5 ▶︎ 残ったスペースを5等分する */
}

    /* ---------- ---------- ----------
    【計算記号】* （アスタリスク） … 掛け算 (x)
    【計算記号】/ （スラッシュ） … 割り算 (÷)
    ---------- ---------- ---------- */

    /* ---------- ---------- ----------
    【注意点】計算式 calc() を使う際は記号の左右に必ず半角スペースを入れる!!
    正: calc(100% - 30px) / 誤: calc(100%-30px)
    ▶︎ ▶︎ この場合、半角スペースがないと「マイナス 30px」だと勘違いされ計算式が動かなくなる（らしい）
    ---------- ---------- ---------- */

.nav-link {
    display: block; /* リンクを箱型にする */
    height: 60px;
    font-size: 16px;
    font-weight: bold;
    color: var(--color-text);
    text-align: center;
    line-height: 60px; /* 高さ[height]が 60px なので、[line-height]を同じ 60px にすることで文字を上下・中央に配置 */
    transition: all 0.5s;
}

.nav-link:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* ハンバーガーメニュー */
.menu {
    display: none;
    /* SP版では [display: block] */
}

/* ---------- ---------- ----------
メインビジュアル
---------- ---------- ---------- */
.slider {
    margin-bottom: var(--space-section);
}

.slider img {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto; /* 画面の中央に配置 */
}

/* スライダー矢印 カスタマイズ */
.slick-prev{
    left: 20px; /* 前へ戻るボタン - 左端から20px */
    z-index: 1; /* 矢印を [slider img] より手前にするための指示!! ( [slider img] = z-index:0 ) */
    transform: rotateY(180deg); /* 元々は右向きのアイコンを反転させる - 左向きにさせるための指示!! */
}

.slick-next {
    right: 20px; /* 次へ進むボタン - 右端から20px */
}

.slick-prev:before,
.slick-next:before {
    font-family: "Font Awesome 7 Free";
    font-weight: 900; /* 900 = solid の意 */
    content: "\f578"; /* 矢印の表記を【魚マーク】に変更 */
}

/* ---------- ---------- ----------
セクション 01
---------- ---------- ---------- */

.sec-01 {
    padding-bottom: var(--space-section);
}

.card-list {
    display: flex; /* 子要素 [card] - 横並び */
    flex-wrap: wrap; /* 画像幅が足りなくなったら折り返し - 2行目へ */
    justify-content: space-between; /* 両端揃え */
    align-items: flex-start; /* [card] の高さを上揃えにする */
    margin: 0 calc(-1 * var(--space-unit)); /* -1 x 15px = -15px … 左右に -15px 余白を持たせる計算式 */
    padding-bottom: var(--space-section);
}

.card {
    width: 400px;
    box-sizing: border-box; /* [padding] を含めた幅にする */
    padding: 0 var(--space-unit);
}

.card img {
    padding-bottom: var(--space-unit); /* [card img] 下部に 15px の余白 */
}

.card-ttl {
    font-size: 18px;
    line-height: calc(30 / 18); /* 行間 - 約 1.6倍 */
    font-weight: bold;
    text-align: center;
    padding-bottom: var(--space-unit);
}

.card-txt {
    font-size: 14px;
    line-height: calc(26 / 14);  /* 行間 - 約 1.85倍 */
}

/* ---------- ---------- ----------
ムービー
---------- ---------- ---------- */
.movie {
    padding-bottom: var(--space-section);
}

.image-video {
    max-width: 100%; /* 最大 ▶︎ 親要素 - 1200px まで */
    height: auto; /* 高さ自動 */
    margin: 0 auto; /* 中央配置 */
}

/* ---------- ---------- ----------
セクション 02
---------- ---------- ---------- */
.sec-02 {
    background-image: url(../img/sec02-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover; /* 画像の比率を保ったまま、隙間なく全体を埋められる!! - はみ出た部分はトリミング */
    background-position: center;
    padding: var(--space-section) 0;
    color: var(--color-white);
}

.box-list {
    display: flex; /* 子要素 [box] - 横並び */
    flex-wrap: wrap; /* 2行目以降 - 折り返し */
    justify-content: space-between; /* 両端揃え */
}

.box {
    width: calc(50% - var(--space-unit));
    display: flex; /* 中身（画像＆文章）を横並び */
    align-items: stretch; /* 中身の高さを引き延ばして揃える の意 */
    margin-bottom: 30px;
    background: var(--color-white);
}

.box-img {
    width: 30%; /* カードの幅 30% を [box-img] にする */
}

.box img {
    margin: 0; /* 中央寄せ解除 - 左寄せに */
}

.box-content {
    display: flex; /* さらに [flex] 垂直中央揃えのため */
    align-items: center;
    padding: 0 var(--space-unit); /* 左右に 15% 余白を持たせる */
    width: 70%; /* カードの 残70% 分を使用 … 30% 分は [box-img] */
    color: var(--color-text); /* 白背景なので文字は黒系に */
}

.box-ttl {
    font-size: 18px;
    font-weight: bold;
    padding-bottom: var(--space-unit);
}

.box-txt {
    font-size: 14px;
    line-height: calc(26 / 14);
}

/* ---------- ---------- ----------
セクション 03
---------- ---------- ---------- */
.sec-03 {
    padding: var(--space-section) 0;
}

.sec-03 .wrapper {
    width: var(--width-narrow); /* ここだけ幅を 770px */
}

.news-list {
    padding-bottom: 30px;
}

.news-list dt {
    position: absolute;
    padding: var(--space-unit);
    font-size: 14px;
}

.news-list dd {
    padding: var(--space-unit) 0 var(--space-unit) 10em;
    border-bottom: 1px dotted var(--color-text);
    font-size: 14px;
}

.news-list dd a {
    text-decoration: none;
    color: var(--color-link);
}

.news-list dd a:hover {
    text-decoration: underline;
    color: var(--color-text);
}

.new {
    display: inline-block;
    width: 37px;
    height: 19px;
    line-height: 19px;
    border-radius: 3px;
    background: var(--color-accent);
    text-align: center;
    font-size: 12px;
    color: var(--color-white);
    margin-left: 10px;
}

/* ---------- ---------- ----------
フッター
---------- ---------- ---------- */
.footer {
    background: var(--color-secondary);
}

.footer .wrapper {
    padding: var(--space-section) 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--flex-gap);
}

.address {
    width: 200px;
    font-size: 15px;
}

.footer-ttl {
    font-weight: bold;
    padding-bottom: var(--space-unit);
}

.address address {
    line-height: calc(24 / 15);
}

.footer-nav {
    display: flex;
    width: calc(100% - 200px);
    max-width: 870px;
    justify-content: space-between;
    gap: var(--flex-gap);
}

.footer-nav ul {
    width: calc((100% - var(--flex-gap) * 3) / 4);
}

.footer-nav li {
    font-size: 15px;
    line-height: 1.4;
}

.footer-nav li + li {
    margin-top: 8px;
}

.footer-nav a {
    color: var(--color-text);
    text-decoration: none;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.copyright {
    height: 30px;
    line-height: 30px;
    background: var(--color-footer);
    color: var(--color-white);
    text-align: center;
    font-size: 12px;
}

/* アニメーション関連 */
.f-up {
    opacity: 0;
}

.f-up.fadeup {
    animation: fadeupanime 1s forwards;
}

@keyframes fadeupanime {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- ---------- ----------
レスポンシブ - Tablet
---------- ---------- ---------- */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    .wrapper {
        width: 768px;
    }

    .nav-list {
        width: 100%;
    }

    .card {
        width: 33.3333%;
    }

    .box-list {
        justify-content: center;
    }

    .box {
        width: 80%;
    }

    .sec-03 .wrapper {
        width: 100%;
    }

    .footer-nav {
        width: calc(100% - ((var(--flex-gap) + 200px)));
    }
}

/* ---------- ---------- ----------
レスポンシブ - SP版
---------- ---------- ---------- */
@media screen and (max-width: 767px) {
    .wrapper {
        width: 100%;
    }

    .sec-ttl {
        font-size: 24px;
        padding-bottom: var(--space-unit);
    }

    .lead {
        text-align: left;
    }

    /* ヘッダー - SP版 */
    .header .wrapper {
        padding: 0 var(--space-unit);
        display: block;
        height: auto;
    }

    .logo {
        margin: 10px 0;
    }

    .search {
        display: none;
    }

    /* 検索フォーム - PS版 */
    .search-sp {
        display: flex;
        justify-content: center;
        position: relative;
        padding: var(--space-unit) 0;
    }

    .search-sp input {
        width: 230px;
        height: 37px;
        border-radius: 5px;
        border: 1px solid var(--color-gray);
        box-sizing: border-box;
        font-size: 20px;
        padding-left: 30px;
        background: var(--color-white);
    }

    .search-sp input:focus {
        outline: none;
        border: 1px solid var(--color-accent);
    }

    .search-sp .search-icon {
        position: absolute;
        top: calc(50% - 8px);
        left: calc(50% - 108px);
    }

    /* グロナビ - SP版 */
    .nav {
        height: 100%;
        display: none;
    }

    .nav-list {
        width: 100%;
        flex-direction: column;
    }

    .nav-list > li {
        width: 100%;
    }

    /* ハンバーガーメニュー - SP版 */
    .menu {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }

    .menu span {
        display: block;
        height: 3px;
        background: #333;
        position: absolute;
        width: 100%;
        left: 0;
        transition: 0.5s ease-in-out;
        border-radius: 3px;
    }

    .menu span:nth-child(1) {
        top: 5px;
    }

    .menu span:nth-child(2) {
        top: 15px;
    }

    .menu span:nth-child(3) {
        top: 25px;
    }

    .open .menu span:nth-child(1) {
        top: 12px;
        rotate: 135deg;
    }

    .open .menu span:nth-child(2) {
        width: 0;
        left: 50%;
    }

    .open .menu span:nth-child(3) {
        top: 12px;
        rotate: -135deg;
    }

    /* セクション 01 - SP版 */
    .sec-01 {
        padding-bottom: 30px;
    }

    .card-list {
        flex-direction: column;
        padding-bottom: 30px;
    }

    .card {
        width: 100%;
    }

    .card + .card {
        padding-top: 30px;
    }

    /* ムービー - SP版 */
    .movie {
        padding-bottom: 30px;
    }

    /* セクション 02 - SP版 */
    .sec-02 {
        padding: 30px 0;
    }

    .box {
        width: 100%;
        margin-bottom: var(--space-unit);
    }

    .box:last-of-type {
        margin-bottom: 30px;
    }

    .box-ttl {
        font-size: 14px;
    }

    .box-txt{
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* セクション 03 - SP版 */
    .sec-03 {
        width: 100%;
        padding: 30px var(--space-unit);
        box-sizing: border-box;
    }

    .sec-03 .wrapper {
        width: 100%;
    }

    .news-list dd {
        padding-left: 6rem;
    }

    /* フッター */
    .footer .wrapper {
        padding-left: var(--space-unit);
        padding-right: var(--space-unit);
    }

    .footer-nav {
        display: none;
    }

    /* ページトップ - SP版 */
    .pagetop {
        bottom: 20px;
        right: 5px;
    }

    /* スライダー */
    .slick-slide {
        padding: 0;
    }
}