/* override.css */
body.myClass .header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}
@media (min-width: 576px) { body.myClass .header { padding-left: calc((100% - 540px) / 2); padding-right: calc((100% - 540px) / 2); } }
@media (min-width: 768px) { body.myClass .header { padding-left: calc((100% - 720px) / 2); padding-right: calc((100% - 720px) / 2); } }
@media (min-width: 992px) { body.myClass .header { padding-left: calc((100% - 960px) / 2); padding-right: calc((100% - 960px) / 2); } }
@media (min-width: 1200px) { body.myClass .header { padding-left: calc((100% - 1140px) / 2); padding-right: calc((100% - 1140px) / 2); } }
@media (min-width: 1400px) { body.myClass .header { padding-left: calc((100% - 1320px) / 2); padding-right: calc((100% - 1320px) / 2); } }

/* --- ハンバーガーの親要素を、中身のサイズぴったりに --- */
body.myClass .header .grid-child.container-nav {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

body.myClass .header .grid-child.container-nav .offcanvas-menu-wrapper {
    display: block;
    width: auto;
}

body.myClass .container-header {
    border-bottom: 1px solid #ddd;
}

/*hero*/
.tc-hero-caption h2,
.tc-hero-caption p {
    font-family: 'Shippori Mincho', serif;
}

.tc-hero {
    position: relative; /* これが重要:子要素を絶対配置するための基準 */
}

.tc-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.tc-hero-caption {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0; と同じ */
    display: flex;
    flex-direction: column;   /* 見出し・補足文を縦に並べる */
    align-items: center;      /* 横中央 */
    justify-content: center;  /* 縦中央 */
    gap: 0.5rem;               /* 見出しと補足文の間隔 */
    /* 文字を読みやすくするための暗いオーバーレイ(任意) */
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.35) 50%,
        rgba(0,0,0,0.6) 100%
    );
    color: #fff;
    text-align: center;
    padding: 2rem;
}

.tc-hero-caption h2 {
        font-size: clamp(1.1rem, 5vw, 1.8rem);
    font-weight: bold;
    margin: 0;
    text-shadow:
        -1px -1px 0 rgba(0,0,0,0.7),
         1px -1px 0 rgba(0,0,0,0.7),
        -1px  1px 0 rgba(0,0,0,0.7),
         1px  1px 0 rgba(0,0,0,0.7),
        0 2px 8px rgba(0,0,0,0.6),
        0 0 20px rgba(0,0,0,0.4);
}

.tc-hero-caption p {
    font-size: clamp(0.85rem, 3.5vw, 1.1rem);
    font-weight: bold;
    margin: 0;
    text-shadow:
        -1px -1px 0 rgba(0,0,0,0.7),
         1px -1px 0 rgba(0,0,0,0.7),
        -1px  1px 0 rgba(0,0,0,0.7),
         1px  1px 0 rgba(0,0,0,0.7),
        0 2px 8px rgba(0,0,0,0.6),
        0 0 20px rgba(0,0,0,0.4); /* 背景に負けないように影をつける */
}


/* --- TOPCOOL風 ホーム: スローガン --- */
.tc-slogan {
    text-align: center;
    margin: 2rem 0;
}
.tc-slogan h1 {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: bold;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #1a5fb4;
}

/* --- TOPCOOL風 ホーム: カードグリッド --- */
.tc-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.tc-card {
    display: block;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.tc-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.tc-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.tc-card-body {
    text-align: center;
    padding: 0.9rem 0.5rem 1.1rem;
}
.tc-card-title {
    font-weight: bold;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}
.tc-card-sub {
    font-size: 0.85rem;
    color: #666;
}

/* スマホ: カラム数を落とす */
@media (max-width: 767.98px) {
    .tc-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479.98px) {
    .tc-card-grid { grid-template-columns: 1fr; }
}


body.myClass .container-header{background-color: #FFF;background-image:unset;}

/* --- bottom module: 画面幅いっぱいに広げる --- */
body.myClass .site-grid .container-bottom-a {
    grid-column: full-start / full-end;
}