@charset "utf-8";

/* --- 1. 基本のリセット & 共通設定 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* これが重要！paddingを幅に含める設定 */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px; 
}

body {
    font-family: "Kosugi Maru", sans-serif;
    font-weight: 400;
    line-height: 2.0;
    color: #373737;
    background-color: #b4f0fc;
    width: 100%;
    overflow-x: hidden;
    padding-top: 130px; /* ヘッダーの高さ130pxに合わせる */
    
    /* 📱 iPhoneの文字自動巨大化バグを強制停止する呪文 */
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

/* 全ての画像の基本防衛策（PC版で巨大化するのを防ぐ） */
img {
    max-width: 100%;
    height: auto;
}

h1, h2 {
    font-size: 30px;
    color: #333;
    margin-bottom: 5px;
    text-align: center;
}

.sp-br {
    display: none;
}

h2 {
    border-left: 5px solid #ff9900; /* 太めのオレンジ色の線 */
    padding: 5px 0 5px 15px;       /* 上下5px、左15pxの余白 */
    background: #b4f0fc;           /* 背景色をつけるとさらに目立つ */
    font-size: 30px;
    text-align: left;
}

/* --- 2. 固定ヘッダー本体 --- */
/* スペルミス対策として navber と navbar の両方に効くようにしています */
.navber, .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;    /* width: 100% の代わりにこれを使う */
    height: 130px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-info {
    color: #373737;
    font-size: 15px;     /* 文字サイズを小さめに調整 */
    line-height: 1.7;    /* 行間を調整 */
    text-align: left;  /* 左寄せ */
    margin: 20px 20px;      /* 左右の余白（ロゴやボタンとの間隔） */
}

.header-info p {
    color: #373737;
    margin: 0;           /* 余計な余白を消す */
}

.navber img, .navbar img {
    height: 110px;      /* ％ではなく固定値にしてSafariのバグを防ぐ */
    width: auto;
    object-fit: contain; /* 画像が歪むのを防ぐ */
}

/* --- 3. ハンバーガーボタン（共通） --- */
.hamburger {
    display: block;
    position: relative;
    width: 30px;
    height: 24px;
    z-index: 10000;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #1d9cb4;
    transition: all 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }

/* クリック時の変形 */
.hamburger.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* --- 4. スマホ用レイアウト (1300px以下) --- */
@media screen and (max-width: 1300px) {
    .sp-br { display: inline; }

    main {
        margin: 0 20px 20px 20px;
    }

.header-info {
    color: #373737;
    font-size: 0.7em;     /* 文字サイズを小さめに調整 */
    line-height: 1.7;    /* 行間を調整 */
    text-align: left;  /* 左寄せ */
    margin: 5px 5px;      /* 左右の余白（ロゴやボタンとの間隔） */
}

.header-info p {
    color: #373737;
    margin: 0;           /* 余計な余白を消す */
}

.navber img, .navbar img {
    height: 75%;      /* ％ではなく固定値にしてSafariのバグを防ぐ */
    width: auto;
    object-fit: contain; /* 画像が歪むのを防ぐ */
}


    /* メニューを隠す */
    .gnav {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        transition: all 0.3s;
        z-index: 9998;
        padding-top: 130px;
    }

    .gnav.active {
        right: 0;
    }

    .gnav-navi-1 {
        display: flex;
        flex-direction: column;
        list-style: none;
    }

    .gnav-navi-1 li a {
        display: block;
        padding: 20px;
        text-align: center;
        color: #1d9cb4;
        font-weight: bold;
        text-decoration: none;
        border-bottom: 1px solid #eee;
    }

    /* TOP画像の調整 */
    .top-container {
        width: 100% !important;
        height: 25vh !important;
    }
    .top-container img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    /* タイトル（ほっとできる場所で〜）のサイズ */
    .overlay_title {
        font-size: 1.5rem !important; 
        line-height: 1.4;
        margin-bottom: 8px;
    }

    /* 説明文（お昼ごはんを作ったり〜）のサイズ */
    .overlay_description {
        font-size: 0.85rem !important;
        line-height: 1.6;
        letter-spacing: 0.02em;
    }
}

/* --- 5. PC用レイアウト (1300px以上) --- */
@media screen and (min-width: 1300px) {
    .hamburger {
        display: none !important;
    }

    .gnav {
        position: static !important;
        display: block !important;
        right: auto !important; 
        width: auto !important;
        height: auto !important;
        background: none !important;
        box-shadow: none !important;
        margin-left: auto;
    }

    .gnav-navi-1 {
        display: flex;
        list-style: none;
        background: #1d9cb4;
        border-radius: 5px;
        overflow: hidden;
    }

    .gnav-navi-1 li a {
        display: block;
        padding: 10px 20px;
        color: #fff;
        text-decoration: none;
        font-size: 15px;
        white-space: nowrap;
        transition: background 0.3s;
    }

    .gnav-navi-1 li a:hover {
        background-color: #ff9900;
    }

    .top-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* ーーーーーーーー　写真スライダー　ーーーーーーーーーーーーーー */
.slider-container {
    width: 100%;
    overflow: hidden;
    background-color: #b4f0fc;
    padding: 20px 0;
}

.slider-content {
    display: flex;
    width: max-content;
    animation: loop-animation 40s linear infinite;
}

.slider-content img {
    width: auto !important;
    height: 200px !important;
    aspect-ratio: auto;
    object-fit: contain;
    margin-right: 10px;
    border-radius: 8px;
}

@keyframes loop-animation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.slider-content:hover {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .slider-container {
        padding: 10px 0;
        background-color: #b4f0fc;
    }

    .slider-content img {
        width: auto !important;
        height: 120px !important;
        aspect-ratio: auto !important;
        object-fit: contain !important;
        margin-right: 8px;
    }

    .slider-content {
        animation: loop-animation 25s linear infinite;
    }
}

/* --- 6. コンテンツパーツの設定 --- */
#top {
    position: relative;
    width: 100%;
    padding: 35px 0;
    overflow: hidden;
}

.top-container {
    position: relative;
    width: 100%;  
    max-width: 900px;
    height: 35vh;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.top-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-container::after {
    content: "";
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(29,156,180,0.4);
    z-index: 1;
}

.text-group {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    z-index: 2;
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(29,156,180,0.4);
}

.overlay_title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.overlay_description {
    font-size: 1.2rem;
}

#introduce {
    padding: 20px 0;
    max-width: 800px;
    margin: 0 auto 1.5em auto;
}

.vision-box {
    background-color: #fff;
    border: 2px dashed #1d9cb4;
    border-radius: 20px;
    padding: 30px 30px 10px 30px;
    margin: 30px 0;
}

#introduce h2 {
    font-size: 30px;
    font-weight: 900;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

#introduce p {
    margin-bottom: 1.5em;
}

.next-step {
    background-color: rgba(29,156,180,0.4); 
    padding: 40px;
    border-radius: 20px;
    margin-top: 50px;
}

.next-step h3 {
    color: #1d9cb4;
    font-size: 25px;
    margin-bottom: 20px;
    border-bottom: 2px solid #fff;
    display: inline-block;
}

.support-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.support-menu li {
    background: #fff;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 10px;
}

.contact-button {
    text-align: center;
}

.btn {
    display: inline-block;
    background-color: #fcd21a;
    color: #fff !important;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 4px 0 #d39400;
}

.btn:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #d39400;
    opacity: 0.9;
}

/* ---ーーーーー　　お知らせエリア　　ーーーーー--- */
#news {
    padding: 60px 20px;
    background-color: #b4f0fc;
    max-width: 900px;
    margin: 0 auto;
}

#news h2 {
    text-align: left;
    margin-bottom: 30px;
    color: #333;
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.news-item {
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-link {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.news-link:hover {
    background-color: #f0f8ff;
}

.news-date {
    font-size: 0.9rem;
    color: #888;
    margin-right: 20px;
    flex-shrink: 0;
}

.news-category {
    font-size: 0.75rem;
    background: #3494fa;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}

.news-category.cat-tsushin { background-color: #ff9800; }
.news-category.cat-line { background-color: #06c755; }

.news-title {
    flex-grow: 1;
    margin: 0;
    line-height: 1.5;
}

.news-archive-link {
    text-align: center;
    margin-top: 30px;
}

.news-archive-link a {
    display: inline-block;
    padding: 12px 40px;
    background-color: #3494fa;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: 0.3s;
}

.news-archive-link a:hover {
    background-color: #267ccb;
}

.news-icon {
    margin-left: 10px;
    font-size: 1.2rem;
    color: #3494fa;
    transition: transform 0.3s;
}

.news-link:hover .news-icon {
    transform: translateX(5px);
}

.link-pdf:hover { background-color: #fff9f0; }

.news-header {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.news-header:hover { background-color: #f0f8ff; }

.news-icon {
    margin-left: auto;
    transition: transform 0.3s;
}

.news-item.is-active .news-icon { transform: rotate(45deg); }

.news-content {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    background-color: #fafafa;
}

.news-content-inner {
    padding: 20px 40px;
    border-top: 1px dashed #eee;
    line-height: 1.8;
}

.btn-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #3494fa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* ---ーーーーー　ページネーション　ーーーーー--- */
.pagination {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.page-numbers {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 5px;
    transition: all 0.3s;
}

.page-numbers.current {
    background-color: #3494fa;
    border-color: #3494fa;
    color: #fff;
    font-weight: bold;
}

.page-numbers:not(.current):hover {
    background-color: #f0f8ff;
    border-color: #3494fa;
    color: #3494fa;
}

.page-numbers.next {
    width: auto;
    padding: 0 20px;
}

@media (max-width: 480px) {
    .page-numbers {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
}


/* セパレータ */
.separator {
    width: 100%;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    margin: 30px 0;
    line-height: 0;
}

.separator img {
    display: inline-block !important;
    width: 35px !important;
    height: auto !important;
    margin: 0 9px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .separator {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* --- あいさつ セクション --- */
#hello {
    width: 100%;
    max-width: 900px; 
    margin: 0 auto;
    padding: 70px 20px;
    box-sizing: border-box;
}

#hello p { margin-bottom: 1.5em; }
#hello p:last-child { margin-bottom: 0; }

/*ーーーーーーーーー　　利用規約ページ　　　ーーーーーーーーーー */
.terms-page {
    background-color: #b4f0fc;
    padding: 60px 0px;
}

#terms-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

#terms-content h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
    background-color: #fff;
}

.lead-text {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.rules-group h2 {
    font-size: 1.2rem;
    color: #4A90E2;
    border-left: 4px solid #4A90E2;
    padding-left: 15px;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left;
    background-color: #fff;
}

.rules-group p, .rules-group li {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 10px;
}

.rules-group ul { padding-left: 20px; }

.back-home {
    margin-top: 50px;
    text-align: center;
}

.back-home a {
    display: inline-block;
    padding: 10px 30px;
    background: #4A90E2;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: 0.3s;
}

.back-home a:hover { opacity: 0.8; }

@media (max-width: 768px) {
    #terms-content {
        padding: 20px;
        margin-top: 0px;
    }
    #terms-content h1, .lead-text { text-align: left; }
    .lead-text br { display: none; }
    .rules-group h2 { font-size: 1.1rem; }
}

/* ーーーーーーーー　　　料金セクション全体　　　ーーーーーーーーー */
#fee {
    padding: 30px;
    background-color: #b4f0fc; 
}
#fee h2 {
font-size: 30px;
font-weight: 900;
}


/* 助成金案内エリア */
.support-info {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 10px;
    background-color: #b4f0fc; 
    border: 2px solid #1d9cb4; 
    border-radius: 20px;
    text-align: center!important;
    box-sizing: border-box; /* 修正点: paddingによる幅の突き出しを防止 */
}

.support-info h3 {
    color: #1d9cb4;
    font-size: 1.2rem;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center!important;
}

.support-info p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #444;
    text-align: center!important;
}

/* 外部リンクボタン */
.btn-link {
    display: inline-block;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid #1d9cb4;
    transition: 0.3s;
    text-align: center!important;
}

.btn-link:hover {
    opacity: 0.7;
    border-bottom: 2px solid #1d9cb4;
}

/* 料金表画像エリア */
.fee-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto 5px; /* 修正点: 中央寄せ */
}

.fee-container .image {
    text-align: center;
}

.fee-container img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: block; /* 修正点: 画像下の微細な隙間を排除 */
}

/* --- スマホ用調整 --- */
@media (max-width: 768px) {
    #fee {
        background-color: #b4f0fc;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0; /* 修正点: 0にすると文字が端に張り付くため適度な余白を推奨 */
        box-sizing: border-box;
    }
    
    .support-info,
    .fee-container {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 10px; /* 修正点: 0にすると文字が端に張り付くため適度な余白を推奨 */
        box-sizing: border-box;
    }

    .fee-container .image {
        padding: 0 !important;
        margin: 0 !important;
        width: 100%;
    }

    .fee-container img {
        width: 100% !important;
        max-width: none;
        height: auto;
        display: block;
        border-radius: 10px;
    }

    .support-info h3 {
        font-size: 1rem;
    }

    .support-info p {
        font-size: 0.85rem;
        text-align: left;
    }
}

/* ーーーーーー　　　料金エリア終わり　　　ーーーーーーーーー */


/* ーーーーーーーー　営業時間エリア　ーーーーーーーーーーーーーー */
#open {
    padding: 70px 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

#open h2 {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 30px;
}

#open .image {
    max-width: 900px;
    padding: 10px;
    background-color: #b4f0fc;
    border-radius: 20px;
    margin-bottom: 10px;
}

#open .image img {
    width: 100%;
    max-width: 720px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

#open p {
    font-size: 1.1rem;
    font-weight: bold;
    color: #444;
    line-height: 1.8;
}

@media (max-width: 768px) {
    #open {
        margin: 0px auto 30px; 
        font-size: 0.9rem;
        padding-left: 15px;
        padding-right: 15px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    #open .image {
        padding: 20px;
    }
}

/* ーーーーーーーーーーー　アクセスエリア　ーーーーーーーーーーーーー */
#access {
    max-width: 900px;
    margin: 70px auto 0;
    text-align: center;
}

#access h2 {
    font-size: 30px;
    font-weight: 900;
}

#access h1 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

#access img {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
}

#access h1::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #4A90E2;
    margin: 8px auto 0;
}

.map-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

#access p {
    margin: 10px 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

#access p span {
    background: #4A90E2;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 0.9rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    #access {
        text-align: center;
        padding-bottom: 40px;
    }
    #access img {
        width: 50%;
    }
    #access p {
        text-align: center;
        font-size: 0.95rem;
        margin-bottom: 10px;
        padding: 0 15px;
    }
}

/* ーーーーーーーーーー　比較セクション　ーーーーーーーーーーーーーー */
#hikaku {
    padding: 70px 0;
    background-color: #b4f0fc; 
}

#hikaku h2 {
    font-size: 30px;
    font-weight: 900;
}

@media (max-width: 768px) {
    #hikaku {
        width: 100%;
        padding: 10px 0;
        box-sizing: border-box;
    }
}

.class-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.class-container h2 {
    text-align: left;
    margin-left: 0; 
    padding-left: 0;
}

.class-container h3 {
    color: #3494fa;
    font-size: 1.2em;
}

.class-container .image { text-align: center; }

.class-container img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-top: 30px;
}

@media (max-width: 768px) {
    .class-container {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0;
        box-sizing: border-box;
    }
    .class-container .image {
        padding: 0 !important;
        margin: 0 !important;
        width: 100%;
        text-align: center;
    }
    .class-container img {
        width: 100% !important;
        max-width: none !important;
        height: auto;
        display: block;
        border-radius: 10px;
    }
}

/* ---ーーーーーーー　フッター 　ーーーーーーーーーー--- */
footer {
    color: white;
    background-color: #1d9cb4;
    width: 100%;
    height: 50px;
    padding: 0px;
    text-align: right;
}

/* ーーーーーーーーーーーー　問い合わせページ　ーーーーーーーーーーーーー */
.contact-intro { padding-top: 60px; }

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.form-item { margin-bottom: 20px; }

.form-item label, .label-text {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-item input[type="text"],
.form-item input[type="tel"],
.form-item input[type="email"],
.form-item select,
.form-item textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    box-sizing: border-box;
}

.radio-group {
    display: flex;
    gap: 15px;
    padding: 5px 0;
}

.radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 60px;
}

.form-submit .g-recaptcha {
    background-color: #ED7485 !important;
    color: #fff !important;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
    transition: background-color 0.3s, opacity 0.3s;
}

.form-submit .g-recaptcha:hover {
    background-color: #f83e22 !important;
    opacity: 0.9;
}

.contact-intro {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.news-list {
    margin: 40px auto;
    max-width: 800px;
    padding: 0 20px;
}

@media (max-width: 600px) {
    .contact-intro { font-size: 0.9rem; }
}

/* ーーーーーーーーーーーーーーーーー　代表プロフィールページ　ーーーーーーーーーーー */
.rep-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.rep-image {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.rep-text { text-align: left; }

.representative-greeting {
    border: 2px dashed #1d9cb4;
    border-radius: 20px;
    padding: 35px;
    margin: 0;
    background-color: #fff;
}

.rep-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

@media (max-width: 768px) {
    #hello { padding: 40px 15px; }
    .rep-profile {
        display: flex;
        flex-direction: row;
        text-align: center;
        gap: 15px;
    }
    .rep-image {
        width: 80px !important;
        height: 80px !important;
    }
    .rep-text { text-align: left; }
    .rep-text h3 {
        font-size: 1.1rem;
        margin: 0;
    }
}



/* ===================================================
   📱 スマホ最優先設定エリア（あらゆる端末バグをねじ伏せる）
====================================================== */
@media screen and (max-width: 767px) {
    
    /* 1. ロゴ画像の縮小を完全強制（スペルミス両対応） */
    .navber img, .navbar img {
        height: 60px !important;
        max-height: 60px !important;
        width: auto !important;
        min-width: 0 !important;
        flex-shrink: 1 !important;
        object-fit: contain !important;
    }

    /* 2. お知らせエリアの完全スマホ最適化 */
    .news-link, .news-header {
        display: block !important;       /* 横並びをやめてスッキリ縦に */
        padding: 12px 15px !important;  /* スマホ用のスマートな余白 */
    }
    
    .news-date {
        font-size: 0.8rem !important;    /* 日付を小さくスッキリ */
        color: #888 !important;
        margin-right: 8px !important;
        display: inline-block !important;
    }
    
    .news-category {
        font-size: 0.7rem !important;   /* ロゴ（カテゴリー）を小さくスマートに */
        padding: 2px 6px !important;    /* 枠もコンパクトに縮小 */
        margin-right: 0 !important;
        margin-bottom: 5px !important;
        display: inline-block !important;
        width: auto !important;
        min-width: 0 !important;
    }
    
    .news-header {
        position: relative !important; /* 矢印の位置を決める基準にします */
        padding-right: 35px !important; /* 矢印と文字が重ならないように右側に余白を作る */
    }

    .news-title {
        display: block !important;
        font-size: 0.88rem !important;  
        line-height: 1.4 !important;    
        margin-top: 5px !important;     
        font-weight: normal !important;
        width: 100% !important;
    }
    
    .news-content-inner {
        padding: 15px !important;
        font-size: 0.88rem !important;
    }

    /* ＋マークの代わりに、スマホでも崩れない綺麗な下矢印を右端に配置 */
    .news-icon {
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        right: 15px !important;
        transform: translateY(-50%) !important; /* 縦方向のド中央に配置 */
        font-size: 0.9rem !important;
        color: #3494fa !important; /* クリックできることがわかりやすい青色 */
        font-weight: bold !important;
    }

}






